* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-dark:    #111111;
    --bg-surface: #1a1a1a;
    --bg-card:    #202020;
    --yellow:     #e5a93b;
    --yellow-dk:  #c8911e;
    --text:       #f0f0f0;
    --muted:      #999999;
    --border:     #2c2c2c;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg-dark);
    color: var(--text);
    font-family: 'Segoe UI', system-ui, sans-serif;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ── HEADER ── */
header {
    background: var(--bg-surface);
    border-bottom: 2px solid var(--yellow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo img { height: 38px; width: auto; display: block; }

nav { display: flex; gap: 0.25rem; }

nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.45rem 0.9rem;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}
nav a:hover { color: var(--yellow); background: rgba(229,169,59,0.07); }

/* ── HERO ── */
#home {
    min-height: 55vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #131313 0%, #1e1c16 60%, #1a1510 100%);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

#home::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 80% 50%, rgba(229,169,59,0.06) 0%, transparent 70%);
}

.hero-inner {
    max-width: 750px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    display: inline-block;
    background: rgba(229,169,59,0.12);
    color: var(--yellow);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: 2px;
    margin-bottom: 1.5rem;
}

.hero-inner h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    color: var(--text);
}

.hero-inner h1 em {
    font-style: normal;
    color: var(--yellow);
}

.hero-inner p {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 560px;
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    background: var(--yellow);
    color: #111;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.85rem 2.2rem;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--yellow-dk); transform: translateY(-1px); }

/* ── SECTIONS ── */
section { padding: 5rem 2rem; }

.section-inner { max-width: 1200px; margin: 0 auto; }

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

.section-lead {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 680px;
    margin-bottom: 2.5rem;
}

/* ── CHI SIAMO ── */
#chisiamo {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about-text p { color: var(--muted); margin-bottom: 1rem; max-width: 760px; }
.about-text strong { color: var(--text); }

/* ── SERVIZI ── */
#servizi { background: var(--bg-dark); }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2rem;
    transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--yellow); transform: translateY(-3px); }

.card h3 { font-size: 1.05rem; margin-bottom: 0.75rem; }
.card p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

/* ── MISSION ── */
#mission {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.mission-text p { color: var(--muted); margin-bottom: 1rem; max-width: 760px; }

/* ── CONTATTI ── */
#contatti { background: var(--bg-dark); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 4rem;
    align-items: start;
    margin-top: 2rem;
}

.contact-info p { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.5rem; }
.contact-info a { color: var(--yellow); text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

.info-block {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}
.info-block:last-child { border-bottom: none; margin-bottom: 0; }

.info-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: 0.5rem;
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2.5rem;
}
.contact-form h3 { font-size: 1.1rem; margin-bottom: 1.5rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 0.7rem 0.9rem;
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--yellow);
}
.form-group textarea { resize: vertical; min-height: 110px; }

.privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.privacy-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 3px;
    accent-color: var(--yellow);
}
.privacy-check label { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.privacy-check a { color: var(--yellow); }

#form-response {
    padding: 0.85rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: none;
}
#form-response.success { background: rgba(52,168,83,0.12); border: 1px solid rgba(52,168,83,0.3); color: #4caf7d; }
#form-response.error   { background: rgba(207,69,69,0.1);  border: 1px solid rgba(207,69,69,0.3);  color: #e07070; }

/* ── FOOTER ── */
footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 3rem 2rem 2rem;
    margin-top: auto;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-brand img { height: 34px; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.85rem; color: var(--muted); max-width: 340px; line-height: 1.6; }

.footer-col h5 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: 1rem;
}
.footer-col p,
.footer-col a {
    font-size: 0.85rem;
    color: var(--muted);
    text-decoration: none;
    display: block;
    margin-bottom: 0.4rem;
    line-height: 1.6;
}
.footer-col a:hover { color: var(--yellow); }

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--muted);
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--yellow); }

/* ── MOBILE ── */
@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
    .grid-3 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .nav-wrap { padding: 0 1rem; }
    section { padding: 3.5rem 1.25rem; }
    .hero-inner { padding: 3rem 1.25rem; }
}
