/* ═══════════════════════════════════════
   VALGAIA — Landing "Coming soon"
   Hub produttori del Roero · Torino e Milano
   ═══════════════════════════════════════ */

:root {
    --verde-roero:   #2F4A33; /* primario: titoli, footer */
    --verde-salvia:  #8FA383; /* dettagli, bordi, icone */
    --crema:         #F1EADB; /* background pagina */
    --sabbia:        #E4DDC7; /* sezioni alternate, card */
    --terracotta:    #C2552F; /* accento: CTA, link */
    --terracotta-sc: #A8421F; /* hover CTA */
    --inchiostro:    #2A2520; /* testo principale */
    --grano:         #E0A458; /* accento caldo: badge */

    --maxw: 1080px;
    --maxw-narrow: 720px;
    --radius: 12px;
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.125rem); /* 17 → 18px */
    line-height: 1.6;
    color: var(--inchiostro);
    background: var(--crema);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-display);
    color: var(--verde-roero);
    line-height: 1.15;
    margin: 0;
    font-weight: 600;
}

p { margin: 0; }

a { color: var(--terracotta); }
a:hover { color: var(--terracotta-sc); }

.link { font-weight: 500; }

.section-title {
    font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.125rem); /* 26 → 34px */
    margin-bottom: 1.25rem;
    text-align: center;
}

/* Accessibilità: label nascoste ma leggibili da screen reader */
.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

/* Focus visibile (WCAG) */
:focus-visible {
    outline: 3px solid var(--terracotta);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ═══════════════ TOP BAR ═══════════════ */
.topbar {
    background: var(--crema);
    border-bottom: 1px solid var(--sabbia);
}
.topbar__inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: 0.01em;
    color: var(--verde-roero);
}
.badge {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--inchiostro);
    background: var(--grano);
    padding: 0.35em 0.85em;
    border-radius: 999px;
}

/* ═══════════════ HERO ═══════════════ */
.hero {
    position: relative;
    overflow: hidden;
}
.hero__media {
    position: absolute;
    inset: 0;
    background-image: url('../assets/hero.jpg');
    background-size: cover;
    background-position: center 60%;
    background-color: var(--verde-roero); /* fallback finché manca la foto */
}
.hero__overlay {
    position: absolute;
    inset: 0;
    /* overlay verde leggero per leggibilità del testo bianco */
    background: linear-gradient(180deg, rgba(47,74,51,0.55) 0%, rgba(47,74,51,0.78) 100%);
}
.hero__inner {
    position: relative;
    z-index: 1;
    max-width: var(--maxw-narrow);
    margin: 0 auto;
    padding: clamp(4rem, 10vw, 7rem) 1.5rem clamp(3rem, 8vw, 5rem);
    text-align: center;
    color: var(--crema);
}
.hero__kicker {
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.875rem;
    color: var(--grano);
    margin-bottom: 1rem;
}
.hero__title {
    color: var(--crema);
    font-size: clamp(2.5rem, 1.6rem + 4.2vw, 4rem); /* 40 → 64px */
    text-wrap: balance;
}
.hero__subtitle {
    margin: 1.25rem auto 0;
    max-width: 36em;
    font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.1875rem);
    color: #F4EFE4;
}
.hero__microcopy {
    margin-top: 1.25rem;
    font-size: 0.9375rem;
    color: #E6DFCF;
}

/* ═══════════════ EMAIL FORM ═══════════════ */
.email-form {
    margin: 2rem auto 0;
    max-width: 540px;
    text-align: left;
}
.email-form__hp { position: absolute; left: -9999px; }
.email-form__row {
    display: flex;
    gap: 0.6rem;
}
.email-form__input {
    flex: 1 1 auto;
    min-width: 0;
    font: inherit;
    padding: 0.85rem 1rem;
    border: 1px solid var(--verde-salvia);
    border-radius: var(--radius);
    background: #fff;
    color: var(--inchiostro);
}
.email-form__input::placeholder { color: #9a9384; }

.email-form__consent {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-top: 0.85rem;
    font-size: 0.875rem;
    line-height: 1.45;
}
/* su hero il testo del consenso è su sfondo scuro */
.hero .email-form__consent { color: #EDE7D8; }
.hero .email-form__consent .link { color: #F0C58A; }
.email-form__consent input { margin-top: 0.2rem; flex: 0 0 auto; }

.email-form__msg {
    margin-top: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    min-height: 1.2em;
}
.email-form__msg.is-ok { color: #DDF0D0; }
.prefooter .email-form__msg.is-ok,
.values .email-form__msg.is-ok { color: var(--verde-roero); }
.email-form__msg.is-error { color: #FFD9C9; }
.prefooter .email-form__msg.is-error { color: var(--terracotta-sc); }

/* ═══════════════ BOTTONI ═══════════════ */
.btn {
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    border: none;
    border-radius: var(--radius);
    padding: 0.85rem 1.5rem;
    white-space: nowrap;
    transition: background-color 0.15s ease;
}
.btn--primary {
    background: var(--terracotta);
    color: var(--crema);
}
.btn--primary:hover { background: var(--terracotta-sc); }
.btn[disabled] { opacity: 0.6; cursor: default; }

/* ═══════════════ VALUE PROPS ═══════════════ */
.values { padding: clamp(3rem, 8vw, 5rem) 1.5rem; }
.values__inner {
    max-width: var(--maxw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.value { text-align: center; }
.value__icon {
    display: inline-flex;
    width: 56px; height: 56px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--sabbia);
    color: var(--verde-roero);
    margin-bottom: 1rem;
}
.value__icon svg { width: 28px; height: 28px; }
.value__title { font-size: 1.25rem; margin-bottom: 0.5rem; }
.value__text { color: #4a443c; }

/* ═══════════════ COME FUNZIONERÀ ═══════════════ */
.how {
    background: var(--sabbia);
    padding: clamp(3rem, 8vw, 5rem) 1.5rem;
}
.how__inner { max-width: var(--maxw); margin: 0 auto; }
.steps {
    list-style: none;
    margin: 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    counter-reset: step;
}
.step {
    background: var(--crema);
    border: 1px solid #d8d0bb;
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
}
.step__num {
    display: inline-flex;
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--terracotta);
    color: var(--crema);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.step__title { font-size: 1.1875rem; margin-bottom: 0.4rem; }
.step__text { color: #4a443c; }

/* ═══════════════ BANDA ZONE E GIORNI ═══════════════ */
.band {
    background: var(--verde-roero);
    padding: clamp(2rem, 5vw, 3rem) 1.5rem;
}
.band__text {
    max-width: var(--maxw-narrow);
    margin: 0 auto;
    text-align: center;
    color: var(--crema);
    font-size: clamp(1.1875rem, 1rem + 1vw, 1.5rem);
    font-family: var(--font-display);
}
.band__text strong { color: var(--grano); font-weight: 600; }

/* ═══════════════ LA CASCINA ═══════════════ */
.cascina { padding: clamp(3rem, 8vw, 5rem) 1.5rem; }
.cascina__inner {
    max-width: var(--maxw-narrow);
    margin: 0 auto;
    text-align: center;
}
.cascina__text { color: #4a443c; font-size: 1.1875rem; }

/* ═══════════════ PREFOOTER ═══════════════ */
.prefooter {
    background: var(--sabbia);
    padding: clamp(3rem, 8vw, 5rem) 1.5rem;
}
.prefooter__inner {
    max-width: var(--maxw-narrow);
    margin: 0 auto;
    text-align: center;
}
.prefooter__text { color: #4a443c; max-width: 34em; margin: 0 auto; }

/* ═══════════════ FOOTER ═══════════════ */
.footer {
    background: var(--verde-roero);
    color: var(--crema);
    padding: 2.5rem 1.5rem;
}
.footer__inner {
    max-width: var(--maxw);
    margin: 0 auto;
    text-align: center;
}
.footer__brand {
    font-family: var(--font-display);
    font-size: 1.375rem;
    display: block;
    margin-bottom: 0.5rem;
}
.footer__legal { font-size: 0.875rem; color: #cfd8c9; }
.footer__legal .link { color: var(--grano); }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 760px) {
    .values__inner,
    .steps { grid-template-columns: 1fr; }
    .email-form__row { flex-direction: column; }
    .btn--primary { width: 100%; }
}
