/* ==========================================================================
   pages.css — South Flowers
   Aggiunte al tema base (style.min.css): header di navigazione, footer,
   e stili per le pagine di contenuto (membership, faq, about).
   Questo file NON e' minificato: e' pensato per essere leggibile e modificabile.
   ========================================================================== */

/* --- Header / navigazione ------------------------------------------------ */

.site-head {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 24px;
    background: linear-gradient(to bottom, rgba(0, 24, 23, .95) 0%, rgba(0, 24, 23, .75) 60%, rgba(0, 24, 23, 0) 100%);
}

.site-head .brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-head .brand img {
    height: 28px;
    width: auto;
}

.brand-name {
    font-family: "Bebas Neue", sans-serif;
    font-size: 20px;
    line-height: 1;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-nav a {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    opacity: .75;
    transition: opacity .25s ease-out, color .25s ease-out;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    opacity: 1;
    color: var(--mint);
}

@media screen and (max-width: 575px) {
    .site-head {
        padding: 10px 14px;
    }

    .brand-name {
        display: none;
    }

    .site-nav {
        gap: 14px;
    }

    .site-nav a {
        font-size: 10px;
        letter-spacing: 1px;
    }
}

/* --- Claim in home ------------------------------------------------------- */

.claim {
    position: relative;
    z-index: 99;
    max-width: 620px;
    margin: 0 auto 28px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--light);
}

.claim-links {
    position: relative;
    z-index: 99;
    margin-top: 28px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--g-500);
}

.claim-links a {
    color: var(--mint);
}

/* --- Pagine di contenuto ------------------------------------------------- */

.page {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
    padding: 140px 24px 100px;
}

/* il tema base blocca la selezione del testo: sui contenuti la riabilitiamo */
.page,
.page * {
    user-select: text;
}

.page-head {
    margin-bottom: 56px;
}

.page-head em {
    font-family: "PP Editorial New", serif;
    font-size: 18px;
    color: var(--mint);
    margin-bottom: 8px;
}

.page h1 {
    font-size: clamp(48px, 9vw, 88px);
    line-height: .95;
    text-shadow: none;
    margin-bottom: 20px;
}

.page-intro {
    font-size: 16px;
    line-height: 1.7;
    color: var(--light);
    max-width: 640px;
}

.prose h2 {
    font-family: "Spline Sans", sans-serif;
    font-size: 15px;
    letter-spacing: 3px;
    line-height: 1.5;
    color: var(--mint);
    margin: 52px 0 14px;
}

.prose h3 {
    font-family: "Spline Sans", sans-serif;
    font-size: 13px;
    letter-spacing: 2px;
    line-height: 1.5;
    text-shadow: none;
    color: var(--white);
    margin: 32px 0 10px;
}

.prose p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--g-300);
    margin-bottom: 16px;
    max-width: 680px;
}

.prose a {
    color: var(--mint);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose ul {
    margin: 0 0 24px;
    max-width: 680px;
}

.prose li {
    position: relative;
    list-style: none;
    padding-left: 22px;
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--g-300);
}

.prose li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mint);
}

.prose ol {
    counter-reset: step;
    margin: 0 0 24px;
    max-width: 680px;
}

.prose ol li {
    padding-left: 34px;
}

.prose ol li::before {
    counter-increment: step;
    content: counter(step) ".";
    top: 0;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    color: var(--mint);
    font-size: 14px;
    font-weight: 700;
}

.prose li b {
    display: inline;
    font-family: "Spline Sans", sans-serif;
    font-size: 15px;
    color: var(--white);
}

/* riquadro informativo */
.callout {
    border: 1px solid var(--forest);
    border-radius: 24px;
    padding: 24px 28px;
    margin: 32px 0;
    background: rgba(0, 24, 23, .6);
}

.callout h2 {
    margin-top: 0;
}

.callout p:last-child {
    margin-bottom: 0;
}

.page .cta {
    margin: 40px 0 0;
}

/* --- Segnaposto da compilare -------------------------------------------- */

.todo {
    display: inline;
    background: #ffd84d;
    color: #1b1b1b;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
}

.todo-note {
    border: 1px dashed #ffd84d;
    border-radius: 12px;
    padding: 14px 18px;
    margin: 24px 0;
    font-size: 13px;
    line-height: 1.6;
    color: #ffd84d;
}

/* --- Footer -------------------------------------------------------------- */

.site-foot {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--forest);
    margin-top: 40px;
    padding: 40px 24px 60px;
}

.site-foot .foot-wrap {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: space-between;
}

.foot-title {
    font-family: "Bebas Neue", sans-serif;
    font-size: 22px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 6px;
}

.site-foot p,
.site-foot address,
.site-foot a {
    font-size: 13px;
    line-height: 1.8;
    color: var(--g-500);
}

.site-foot a:hover {
    color: var(--mint);
}

.foot-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.foot-legal {
    max-width: 820px;
    margin: 32px auto 0;
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--g-700);
}

/* il bottone non deve ereditare la sottolineatura dei link di testo */
.prose a.cta,
.site-foot a,
.site-nav a,
.brand {
    text-decoration: none;
}

.todo-note b {
    display: block;
    font-family: "Spline Sans", sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

/* ==========================================================================
   Un solo font su tutto il sito: Spline Sans e le sue declinazioni (400/700).
   Sostituisce Bebas Neue nei titoli e PP Editorial New nei testi enfatizzati.
   ========================================================================== */

h1,
h2,
h3,
h4,
b,
strong,
em,
.brand-name,
.foot-title,
.page-head em,
.prose h2,
.prose h3 {
    font-family: "Spline Sans", sans-serif;
}

h1,
h3 {
    font-weight: 700 !important;
    letter-spacing: -.02em;
    text-shadow: none;
}

.intro h1 {
    white-space: normal;
    font-size: clamp(40px, 6.4vw, 78px);
    line-height: 1.02;
}

.farm h3 {
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.1;
}

.page h1 {
    font-weight: 700 !important;
    font-size: clamp(38px, 5.4vw, 64px);
    line-height: 1.05;
}

b,
strong,
em {
    font-family: "Spline Sans", sans-serif;
    font-weight: 400 !important;
    font-size: 17px;
    letter-spacing: .5px;
}

.box-txt em.mint,
.page-head em {
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.brand-name,
.foot-title {
    font-weight: 700;
    letter-spacing: 1.5px;
}

.brand-name {
    font-size: 15px;
}

.foot-title {
    font-size: 16px;
}

/* --- Nota orari, fuori dalle caselle contatti ---------------------------- */

.contact-note {
    position: relative;
    z-index: 99;
    margin-top: -40px;
    margin-bottom: var(--gap);
    text-align: center;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--g-500);
}

.contact-note a {
    color: var(--g-500);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-note a:hover {
    color: var(--mint);
}

/* --- I fiori del cursore restano sotto al testo -------------------------- */

.flower {
    z-index: -1 !important;
}

.intro h2 {
    margin-top: 16px;
}

/* --- Le decorazioni in primo piano non devono coprire il testo dell'hero ---
   Il livello .pattern.over sta a z-index 999 e passava sopra al titolo
   (su mobile una foglia copriva la S di "SOUTH"). Alziamo il blocco di testo
   sopra quel livello: le foglie continuano a scorrere, ma dietro alla scritta. */

.site-head {
    z-index: 1100;
}

/* ATTENZIONE: non rendere posizionato `.intro > div`. I fiori del cursore sono
   figli di quel div e sono in position:absolute; il loro contenitore di
   riferimento deve restare <body>, altrimenti si muovono solo dentro l'intro.
   Alziamo quindi i singoli elementi di testo, che dei fiori sono fratelli. */

.intro img,
.intro h1,
.intro h2,
.intro .claim,
.intro strong,
.intro small,
.intro .cta,
.intro .claim-links {
    position: relative;
    z-index: 1000;
}

/* ==========================================================================
   Form "Register your interest" (register.html)
   ========================================================================== */

.wl-form {
    max-width: 640px;
}

.wl-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.wl-form .field {
    margin: 0 0 32px;
    border: 0;
    padding: 0;
    min-width: 0;
}

.wl-form label,
.wl-form legend {
    display: block;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--mint);
    margin-bottom: 10px;
    line-height: 1.5;
}

.wl-form .req {
    color: var(--g-500);
}

.wl-form input[type=text],
.wl-form input[type=tel],
.wl-form input[type=email] {
    display: block;
    width: 100%;
    padding: 12px 0;
    font-family: "Spline Sans", sans-serif;
    font-size: 17px;
    color: var(--white);
    border-bottom: 1px solid var(--g-600);
    transition: border-color .2s ease-out;
}

.wl-form input[type=text]:focus,
.wl-form input[type=tel]:focus,
.wl-form input[type=email]:focus {
    outline: none;
    border-bottom-color: var(--mint);
}

.wl-form input::placeholder {
    color: var(--g-700);
}

/* Si' / No come pulsanti a pillola */
.choice {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.choice input[type=radio] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.choice label {
    margin: 0;
    padding: 10px 24px;
    border: 1px solid var(--forest);
    border-radius: 99px;
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--light);
    cursor: pointer;
    transition: background .2s ease-out, border-color .2s ease-out, color .2s ease-out;
}

.choice input[type=radio]:checked+label {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
}

.choice input[type=radio]:focus-visible+label {
    outline: 2px solid var(--mint);
    outline-offset: 2px;
}

.wl-form .field-note {
    font-size: 13px;
    line-height: 1.6;
    color: var(--g-500);
    margin: 0 0 12px;
    text-transform: none;
    letter-spacing: 0;
}

.wl-form .field-warn {
    color: #ffd84d;
    margin-top: 12px;
}

.wl-form .field-error {
    font-size: 13px;
    color: #ff9e9e;
    margin: 8px 0 0;
    min-height: 0;
}

.wl-form .field-error:empty {
    display: none;
}

.has-error input[type=text],
.has-error input[type=tel],
.has-error input[type=email] {
    border-bottom-color: #ff9e9e;
}

.field-consent {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 12px 14px;
    align-items: start;
}

.field-consent input[type=checkbox] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--green);
}

.field-consent label {
    text-transform: none;
    letter-spacing: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--g-300);
    margin: 0;
}

.field-consent .field-error {
    grid-column: 1 / -1;
}

.wl-form button.cta {
    margin: 8px 0 0;
    color: var(--white);
    font-family: "Spline Sans", sans-serif;
    letter-spacing: .5px;
}

.wl-form button.cta:disabled {
    opacity: .6;
}

.form-status {
    margin-top: 24px;
    padding: 18px 22px;
    border-radius: 16px;
    border: 1px solid var(--forest);
    font-size: 15px;
    line-height: 1.6;
    color: var(--light);
}

.form-error {
    border-color: #ff9e9e;
    color: #ffd0d0;
}

.form-success {
    border-color: var(--green);
    background: rgba(30, 161, 56, .08);
}

.form-success h2 {
    margin-top: 0;
    color: var(--mint);
}

.form-success p:last-child {
    margin-bottom: 0;
}

.form-success b {
    display: inline;
    font-family: "Spline Sans", sans-serif;
    font-size: inherit;
    font-weight: 700 !important;
    color: var(--white);
}

/* --- Una domanda alla volta (attivato dal JS con .wl-stepped) ------------ */

.wl-progress {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 36px;
}

.wl-progress-text {
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--g-500);
    white-space: nowrap;
}

.wl-progress-bar {
    flex: 1;
    height: 2px;
    background: var(--forest);
    border-radius: 2px;
    overflow: hidden;
}

.wl-progress-bar i {
    display: block;
    height: 100%;
    width: 0;
    background: var(--mint);
    transition: width .35s ease-out;
}

/* senza JS: niente barra, niente pulsanti di navigazione, tutte le domande visibili */
.wl-form:not(.wl-stepped) .wl-progress,
.wl-form:not(.wl-stepped) #wl-back,
.wl-form:not(.wl-stepped) #wl-next,
.wl-form:not(.wl-stepped) .wl-hint {
    display: none;
}

.wl-stepped .wl-steps {
    position: relative;
    min-height: 150px;
}

/* il tema base forza display:flex sui .cta: [hidden] deve vincere comunque */
.wl-nav [hidden] {
    display: none !important;
}

.wl-stepped .step {
    display: none;
}

.wl-stepped .step.is-active {
    display: block;
    animation: wl-in .35s ease-out both;
}

.wl-stepped .step.is-leaving {
    display: block;
    position: absolute;
    inset: 0;
    pointer-events: none;
    animation: wl-out .3s ease-in both;
}

.wl-stepped.dir-back .step.is-active {
    animation-name: wl-in-back;
}

.wl-stepped.dir-back .step.is-leaving {
    animation-name: wl-out-back;
}

@keyframes wl-in       { from { opacity: 0; transform: translateX(40px);  } to { opacity: 1; transform: none; } }
@keyframes wl-out      { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(-40px); } }
@keyframes wl-in-back  { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes wl-out-back { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(40px);  } }

@media (prefers-reduced-motion: reduce) {
    .wl-stepped .step.is-active,
    .wl-stepped .step.is-leaving {
        animation: none;
    }
}

/* nella modalita' a passi la domanda e' grande, come un titolo */
.wl-stepped .step .field>label,
.wl-stepped .step legend {
    font-family: "Spline Sans", sans-serif;
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 14px;
}

.wl-stepped .step .field {
    margin-bottom: 8px;
}

.wl-stepped .choice label {
    padding: 14px 32px;
    font-size: 14px;
}

.wl-stepped input[type=text],
.wl-stepped input[type=tel],
.wl-stepped input[type=email] {
    font-size: 22px;
    padding: 14px 0;
}

.wl-stepped .field-consent label {
    font-size: 16px;
    font-weight: 400;
    color: var(--g-300);
}

.wl-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.wl-nav .cta {
    margin: 0;
}

.wl-back {
    font-family: "Spline Sans", sans-serif;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--g-500);
    cursor: pointer;
    padding: 12px 0;
}

.wl-back:hover {
    color: var(--mint);
}

.wl-hint {
    margin-top: 14px;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--g-700);
}

.wl-hint b {
    display: inline;
    font-family: inherit;
    font-size: inherit;
    color: var(--g-500);
    font-weight: 700 !important;
}

/* sul telefono niente tastiera: il suggerimento "Enter" non ha senso */
@media (hover: none) {
    .wl-hint {
        display: none;
    }
}

@media screen and (max-width: 575px) {
    .wl-stepped .wl-steps {
        min-height: 130px;
    }

    .wl-nav .cta {
        width: 100%;
        max-width: none;
    }

    .wl-back {
        order: 2;
    }
}
