/* =========================================================
   Futura — Custom Stylesheet
   Versione: 0.1 (setup iniziale)
   Caricato via: Bricks → Settings → Custom Code
                 oppure wp_enqueue_style nel child theme

   STRUTTURA:
   1. Design tokens (CSS variables)
   2. Reset / base
   3. Tipografia
   4. Layout & container
   5. Componenti
   6. Utility
   7. Sezioni specifiche
   8. Responsive
   ========================================================= */

/* =========================================================
   0. FONT FACES
   ========================================================= */

@font-face {
    font-family: "Gradient Premium";
    src: url("../fonts/Gradient_Premium_Black.woff2") format("woff2");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Bely";
    src: url("../fonts/Bely_Bold_Italic.woff2") format("woff2");
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "DM Sans";
    src: url("../fonts/dm-sans-v17-latin-regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "DM Sans";
    src: url("../fonts/dm-sans-v17-latin-600.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "DM Sans";
    src: url("../fonts/dm-sans-v17-latin-700.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "DM Sans";
    src: url("../fonts/dm-sans-v17-latin-800.woff2") format("woff2");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */
:root {
    /* --- Colori principali --- */
    --futura-primary: #5a2dff;
    --futura-primary-hover: #4820d4; /* non in Figma — derivato dal purple */
    --futura-secondary: #17171c;
    --futura-accent: #9cf500;

    --futura-text: #484853;
    --futura-text-muted: #484853; /* non in Figma — da aggiornare con valore reale */
    --futura-text-inverse: #f7f8f9;

    --futura-bg: #f7f8f9;
    --futura-bg-alt: #f3ead6;
    --futura-bg-dark: #17171c;

    --futura-border: #e0e0e0; /* non in Figma — invariato */
    --futura-border-strong: #484853;

    /* --- Palette completa (token Figma) --- */
    --futura-color-purple: #5a2dff;
    --futura-color-violet: #8c70e9;
    --futura-color-medium-blue: #2965eb;
    --futura-color-light-blue: #a5dff4;
    --futura-color-lime: #9cf500;
    --futura-color-pink: #fc3efa;
    --futura-color-beige: #f3ead6;
    --futura-color-antracite: #484853;
    --futura-color-black: #17171c;
    --futura-color-menu-bg: #212322;
    --futura-color-white: #f7f8f9;
    --futura-color-yellow: #f4de72;
    --futura-color-orange: #ffd083;

    /* --- Tipografia --- */
    --futura-font-heading: "Gradient Premium", sans-serif;
    --futura-font-accent: "Bely", serif;
    --futura-font-body: "DM Sans", sans-serif;

    --futura-fs-display: clamp(3rem, 5.8vw, 5.5rem); /* 88px desktop */
    --futura-fs-h1: clamp(2.5rem, 5.7vw, 5.375rem); /* 86px desktop */
    --futura-fs-h2: clamp(2rem, 3.7vw, 3.5rem); /* 56px desktop */
    --futura-fs-h3: clamp(1.75rem, 2.8vw, 2.625rem); /* 42px desktop */
    --futura-fs-h4: 2rem; /* 32px */
    --futura-fs-h5: 1.625rem; /* 26px */
    --futura-fs-body: 1.25rem; /* 20px */
    --futura-fs-small: 1rem; /* 16px */
    --futura-fs-tiny: 0.75rem; /* 12px */

    --futura-lh-display: 0.97;
    --futura-lh-tight: 1.2;
    --futura-lh-base: 1.6;
    --futura-lh-loose: 1.8;

    --futura-fw-regular: 400;
    --futura-fw-medium: 500;
    --futura-fw-semibold: 600;
    --futura-fw-bold: 700;
    --futura-fw-extrabold: 800;

    /* --- Spacing --- */
    --futura-space-3xs: 0.25rem; /*  4px */
    --futura-space-2xs: 0.5rem; /*  8px */
    --futura-space-xs: 0.75rem; /* 12px */
    --futura-space-sm: 1rem; /* 16px */
    --futura-space-md: 1.5rem; /* 24px */
    --futura-space-lg: 2rem; /* 32px */
    --futura-space-xl: 3rem; /* 48px */
    --futura-space-2xl: 4rem; /* 64px */
    --futura-space-3xl: 6rem; /* 96px */

    /* --- Layout --- */
    /* max-width e gutter gestiti da Bricks Theme Styles / Settings */
    --futura-container: 1240px;
    --futura-container-narrow: 880px;

    /* --- Radius / Shadow --- */
    --futura-radius-sm: 4px;
    --futura-radius-md: 20px;
    --futura-radius-lg: 50px;
    --futura-radius-xl: 80px;
    --futura-radius-pill: 999px;

    --futura-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
    --futura-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --futura-shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);

    /* --- Transitions --- */
    --futura-transition: 200ms ease;
    --futura-transition-slow: 400ms ease;
}

/* =========================================================
   2. RESET / BASE
   ========================================================= */
.futura-reset *,
.futura-reset *::before,
.futura-reset *::after {
    box-sizing: border-box;
}

/* =========================================================
   3. TIPOGRAFIA
   ========================================================= */

h1,
h2,
h3 {
    font-family: var(--futura-font-heading);
    font-weight: 900;
    color: var(--futura-text);
}

h4 {
    font-family: var(--futura-font-heading);
    font-weight: 900;
    font-style: normal;
    color: var(--futura-color-antracite, #484853);
}

h5,
h6 {
    font-family: var(--futura-font-body);
    font-weight: var(--futura-fw-bold);
    color: var(--futura-text);
}

h1 {
    font-size: var(--futura-fs-h1);
    line-height: var(--futura-lh-display);
}

h2 {
    font-size: var(--futura-fs-h2);
    line-height: var(--futura-lh-tight);
}

/* h2 bianco */
h2.futura-h2--white {
    color: var(--futura-color-white);
}

/* h2 grande — stessa size dell'h1 (86px desktop), usato in sezioni display */
h2.futura-h2--display {
    font-size: var(--futura-fs-h1);
    line-height: var(--futura-lh-display);
}

h3 {
    font-size: var(--futura-fs-h3);
    line-height: var(--futura-lh-tight);
}

h4 {
    font-size: var(--futura-fs-h4);
    line-height: var(--futura-lh-tight);
}

h5 {
    font-size: var(--futura-fs-h5);
    line-height: var(--futura-lh-tight);
}

body,
p,
li,
td,
input,
textarea,
select {
    font-family: var(--futura-font-body);
    font-size: var(--futura-fs-body);
    font-weight: var(--futura-fw-regular);
    line-height: normal;
    color: var(--futura-text); /* #484853 */
}

/* =========================================================
   3b. REVEAL ANIMATIONS
   ========================================================= */

/* Stato iniziale: visibile per default (builder, no-JS, accessibilità).
   Le animazioni si attivano solo quando il JS aggiunge .futura-js all'<html>. */
.futura-reveal {
    transition:
        opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform, filter;
}

html.futura-js .futura-reveal {
    opacity: 0;
    transform: translateY(32px);
    filter: blur(4px);
}

html.futura-js .futura-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Varianti di direzione */
html.futura-js .futura-reveal--left {
    transform: translateX(-40px);
}
html.futura-js .futura-reveal--right {
    transform: translateX(40px);
}
html.futura-js .futura-reveal--left.is-visible,
html.futura-js .futura-reveal--right.is-visible {
    transform: translateX(0);
}

/* Varianti di delay per stagger (sequenze di elementi) */
.futura-reveal--d1 {
    transition-delay: 0.1s;
}
.futura-reveal--d2 {
    transition-delay: 0.2s;
}
.futura-reveal--d3 {
    transition-delay: 0.3s;
}
.futura-reveal--d4 {
    transition-delay: 0.4s;
}
.futura-reveal--d5 {
    transition-delay: 0.5s;
}

/* Nessuna animazione per chi preferisce ridurla (accessibilità) */
@media (prefers-reduced-motion: reduce) {
    html.futura-js .futura-reveal {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
}

/* =========================================================
   4. LAYOUT & CONTAINER
   ========================================================= */

/* Dimensioni e padding gestiti da Bricks Theme Styles / Settings.
   Qui vivono solo le varianti semantiche di colore delle sezioni. */

.futura-section--alt {
    background: var(--futura-bg-alt);
}

.futura-section--dark {
    background: var(--futura-bg-dark);
    color: var(--futura-text-inverse);
}

.futura-section--primary {
    background: var(--futura-primary);
    color: var(--futura-text-inverse);
}

/* =========================================================
   5. COMPONENTI
   ========================================================= */

/* --- Bottoni --- */
.futura-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--futura-space-2xs);
    padding: var(--futura-space-xs) var(--futura-space-md);
    font-family: var(--futura-font-body);
    font-weight: var(--futura-fw-semibold);
    font-size: var(--futura-fs-body);
    line-height: 1;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--futura-radius-pill);
    cursor: pointer;
    transition: var(--futura-transition);
}

.futura-btn--primary {
    background: var(--futura-primary);
    color: var(--futura-text-inverse);
}

.futura-btn--primary:hover {
    background: var(--futura-primary-hover);
}

.futura-btn--secondary {
    background: transparent;
    color: var(--futura-primary);
    border-color: var(--futura-primary);
}

.futura-btn--ghost {
    background: transparent;
    color: var(--futura-primary);
}

.futura-btn--beige {
    background: var(--futura-color-beige);
    color: #484853;
    font-family: var(--futura-font-body);
    font-size: var(--futura-fs-small);
    font-weight: var(--futura-fw-bold);
    line-height: normal;
    border-radius: var(--futura-radius-pill);
    padding: 14px 28px;
    border: none;
    box-shadow: 0 6px 20px rgba(90, 45, 255, 0.18);
    transition:
        background var(--futura-transition),
        box-shadow var(--futura-transition);
}

.futura-btn--beige:hover {
    background: #e8ddc4;
    box-shadow: 0 8px 28px rgba(90, 45, 255, 0.28);
}

/* ── Bottone Pill (CTA — pill a destra, specchiato vs menu trigger) ── */
.futura-btn-pill {
    display: inline-flex;
    align-items: center;
    height: 44px;
    border-radius: 22px;
    background: #212322;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    overflow: hidden; /* clippa pill al container arrotondato → sfondo nero visibile ai bordi */
}
.futura-btn-pill--purple {
    background: var(--futura-primary, #5a2dff);
}
.futura-btn-pill__label {
    flex: 1; /* si stringe quando il pill cresce (JS tiene fisso il container) */
    color: var(--futura-color-white, #f7f8f9);
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: normal;
    white-space: nowrap;
    padding: 0 8px 0 20px;
    text-align: center; /* testo si sposta a sinistra mentre l'area si stringe */
    user-select: none;
    pointer-events: none;
}
.futura-btn-pill__pill {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--pill-w, 74px);
    height: 40px;
    border-radius: 20px;
    background: var(--futura-color-white, #f7f8f9);
    margin: 2px 2px 2px 0;
    color: var(--futura-color-black, #17171c);
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-weight: 800;
    line-height: normal;
    white-space: nowrap;
    flex-shrink: 0;
    transition: width 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: none !important;
}
.futura-btn-pill:hover .futura-btn-pill__pill {
    width: var(--pill-w-hover, 104px);
}

/* Variante invertita: pill a sinistra, label a destra */
.futura-btn-pill--inverted {
    flex-direction: row-reverse;
}
.futura-btn-pill--inverted .futura-btn-pill__pill {
    margin: 2px 0 2px 2px;
}
.futura-btn-pill--inverted .futura-btn-pill__label {
    padding: 0 20px 0 8px;
}

/* --- Card Post (blog / archivio) --- */
.futura-card-post {
    display: flex;
    flex-direction: column;
    gap: var(--futura-space-sm);
    padding: var(--futura-space-md);
    background: var(--futura-bg);
    border: 1px solid var(--futura-border);
    border-radius: var(--futura-radius-md);
    transition: var(--futura-transition);
}

.futura-card-post:hover {
    box-shadow: var(--futura-shadow-md);
}

.futura-card-post__category {
    font-size: var(--futura-fs-tiny);
    font-weight: var(--futura-fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--futura-primary);
}

.futura-card-post__date {
    font-size: var(--futura-fs-small);
    color: var(--futura-text-muted);
}

.futura-card-post__title {
    font-size: var(--futura-fs-h4);
    font-weight: var(--futura-fw-semibold);
    line-height: var(--futura-lh-tight);
}

.futura-card-post__abstract {
    font-size: var(--futura-fs-body);
    color: var(--futura-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Card Strumento (Comparatore / Simulatore) --- */
.futura-card-strumento {
    display: flex;
    flex-direction: column;
    gap: var(--futura-space-sm);
    padding: var(--futura-space-lg);
    background: var(--futura-bg);
    border: 1px solid var(--futura-border);
    border-radius: var(--futura-radius-lg);
    transition: var(--futura-transition);
}

.futura-card-strumento:hover {
    box-shadow: var(--futura-shadow-md);
}

.futura-card-strumento__occhiello {
    font-size: var(--futura-fs-small);
    font-weight: var(--futura-fw-medium);
    color: var(--futura-text-muted);
}

.futura-card-strumento__title {
    font-size: var(--futura-fs-h3);
    font-weight: var(--futura-fw-bold);
    line-height: var(--futura-lh-tight);
}

.futura-card-strumento__text {
    font-size: var(--futura-fs-body);
    color: var(--futura-text-muted);
    line-height: var(--futura-lh-base);
}

/* --- Heading Accent (Bely italic) --- */
.futura-heading-accent,
.futura-heading-accent p {
    font-family: var(--futura-font-accent);
    font-size: clamp(1.75rem, 7.5vw, 2.625rem); /* 28px → 42px */
    font-style: italic;
    font-weight: 700;
    line-height: normal;
    color: var(--futura-color-black);
}

.futura-heading-accent--sm,
.futura-heading-accent--sm p {
    font-family: var(--futura-font-accent);
    font-size: clamp(1.25rem, 4.5vw, 1.625rem); /* 20px → 26px */
    font-style: italic;
    font-weight: 700;
    line-height: normal;
    color: var(--futura-color-black);
}

.futura-heading-accent--sm-white,
.futura-heading-accent--sm-white p {
    font-family: var(--futura-font-accent);
    font-size: clamp(1.25rem, 4.5vw, 1.625rem); /* 20px → 26px */
    font-style: italic;
    font-weight: 700;
    line-height: normal;
    color: var(--futura-color-white, #f7f8f9);
}

.futura-heading-accent--white,
.futura-heading-accent--white p {
    font-family: var(--futura-font-accent);
    font-size: clamp(1.75rem, 7.5vw, 2.625rem); /* 28px → 42px */
    font-style: italic;
    font-weight: 700;
    line-height: normal;
    color: var(--futura-color-white, #f7f8f9);
}

.futura-label,
.futura-label p {
    font-family: var(--futura-font-heading);
    font-size: 24px;
    font-style: normal;
    font-weight: 900;
    line-height: 1.5;
    color: var(--futura-text, #484853);
}

.futura-label-white,
.futura-label-white p {
    font-family: var(--futura-font-heading);
    font-size: 24px;
    font-style: normal;
    font-weight: 900;
    line-height: 1.5;
    color: var(--futura-color-white, #f7f8f9);
}

/* --- Background gradient SVG blob --- */
.futura-bg-blob {
    position: relative;
    overflow: hidden;
}

.futura-bg-blob::before {
    content: "";
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1021px;
    height: 1021px;
    border-radius: 1021px;
    background: rgba(243, 234, 214, 0.7);
    filter: blur(77px);
    pointer-events: none;
    z-index: 0;
}

.futura-bg-blob > * {
    position: relative;
    z-index: 1;
}

/* --- Hero --- */
.futura-hero {
    /* TBD */
}

/* --- Chatbot Widget --- */
.futura-chatbot-widget {
    /* TBD — area embed chatbot AI "Chiedi a Futura"
     Input testuale + domande preset cliccabili */
}

.futura-chatbot-widget__input {
    /* TBD */
}

.futura-chatbot-widget__presets {
    /* TBD — domande rapide preimpostate */
    display: flex;
    flex-wrap: wrap;
    gap: var(--futura-space-2xs);
}

.futura-chatbot-widget__preset-btn {
    /* TBD */
}

/* --- Widget "Trova il tuo fondo" --- */
.futura-widget-trova-fondo {
    /* TBD — campo di ricerca CCNL/settore + risultato */
}

/* --- FAQ Accordion --- */
.futura-faq {
    display: flex;
    flex-direction: column;
    gap: var(--futura-space-2xs);
}

.futura-faq__item {
    border: 1px solid var(--futura-border);
    border-radius: var(--futura-radius-md);
    overflow: hidden;
}

.futura-faq__question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--futura-space-sm);
    padding: var(--futura-space-md);
    background: transparent;
    font-family: var(--futura-font-body);
    font-size: var(--futura-fs-body);
    font-weight: var(--futura-fw-semibold);
    text-align: left;
    border: none;
    cursor: pointer;
    transition: var(--futura-transition);
}

.futura-faq__answer {
    padding: 0 var(--futura-space-md) var(--futura-space-md);
    font-size: var(--futura-fs-body);
    color: var(--futura-text-muted);
    line-height: var(--futura-lh-base);
}

/* --- CTA Box --- */
.futura-cta-box {
    /* TBD */
}

/* --- Waitlist (box coming soon con form) --- */
.futura-waitlist {
    background: var(--futura-bg-dark);
    border-radius: var(--futura-radius-xl);
    padding: var(--futura-space-3xl) var(--futura-space-2xl);
}

.futura-waitlist .futura-waitlist__badge,
.futura-waitlist .futura-waitlist__title,
.futura-waitlist .futura-waitlist__sub,
.futura-waitlist .futura-form {
    max-width: var(--futura-container-narrow);
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.futura-waitlist__badge {
    display: table;
    background: var(--futura-color-lime);
    color: var(--futura-color-black);
    font-family: var(--futura-font-body);
    font-size: var(--futura-fs-tiny);
    font-weight: var(--futura-fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--futura-radius-pill);
    padding: 6px 16px;
    margin-bottom: var(--futura-space-lg);
}

.futura-waitlist__title {
    font-size: var(--futura-fs-h2);
    font-weight: 900;
    color: var(--futura-text-inverse);
    line-height: var(--futura-lh-tight);
    margin: 0 auto var(--futura-space-md);
}

.futura-waitlist__title-em {
    font-family: var(--futura-font-accent);
    font-style: italic;
    color: var(--futura-color-lime);
}

.futura-waitlist__sub {
    font-size: var(--futura-fs-body);
    color: var(--futura-text-inverse);
    max-width: 480px;
    margin: 0 auto var(--futura-space-xl);
}

@media (max-width: 767px) {
    .futura-waitlist {
        padding: var(--futura-space-xl) var(--futura-space-lg);
        border-radius: var(--futura-radius-lg);
    }
}

/* --- Form (Gravity Forms override — Waitlist + Contatti) ---
   Specificità alta + !important per battere il theme framework di GF 2.5+ */

.futura-form .gform_wrapper {
    max-width: 560px;
    margin: 0 auto;
    text-align: left;
}

.futura-form .gform_wrapper .gform_fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--futura-space-md) var(--futura-space-sm) !important;
}

.futura-form .gform_wrapper .gfield {
    margin: 0 !important;
    grid-column: 1 / -1;
}

/* Label */
.futura-form .gform_wrapper .gfield_label {
    font-family: var(--futura-font-body) !important;
    font-size: 1.125rem !important;
    font-weight: var(--futura-fw-semibold) !important;
    color: var(--futura-text-inverse) !important;
    margin-bottom: var(--futura-space-3xs) !important;
    display: block;
}

/* Consenso privacy (checkbox + label allineati) */
.futura-form .gform_wrapper .ginput_container_consent {
    display: flex;
    align-items: center;
    gap: var(--futura-space-xs);
}

.futura-form .gform_wrapper .ginput_container_consent input[type="checkbox"] {
    margin: 0 !important;
    flex-shrink: 0;
}

.futura-form .gform_wrapper .gfield_consent_label,
.futura-form .gform_wrapper .ginput_container_consent label,
.futura-form .gform_wrapper .gfield--type-consent label {
    font-family: var(--futura-font-body) !important;
    font-size: 1.125rem !important;
    font-weight: var(--futura-fw-regular) !important;
    color: var(--futura-text-inverse) !important;
    margin: 0 0 0 var(--futura-space-xs) !important;
    line-height: 1.3;
}

.futura-form .gform_wrapper .gfield--type-consent .gfield_label {
    margin-bottom: var(--futura-space-2xs) !important;
}

.futura-form .gform_wrapper .gfield_required {
    color: var(--futura-color-lime) !important;
    margin-left: 2px;
}

/* Descrizione campo + contatore caratteri */
.futura-form .gform_wrapper .gfield_description,
.futura-form .gform_wrapper .charleft,
.futura-form .gform_wrapper .ginput_counter {
    font-family: var(--futura-font-body) !important;
    font-size: var(--futura-fs-tiny) !important;
    color: rgba(247, 248, 249, 0.5) !important;
    padding: 0 !important;
}

.futura-form .gform_wrapper .gfield_description {
    margin-bottom: var(--futura-space-2xs);
}

/* Campi input / select / textarea */
.futura-form .gform_wrapper input[type="text"],
.futura-form .gform_wrapper input[type="email"],
.futura-form .gform_wrapper select,
.futura-form .gform_wrapper textarea {
    width: 100% !important;
    background: rgba(247, 248, 249, 0.08) !important;
    border: 1.5px solid rgba(247, 248, 249, 0.2) !important;
    border-radius: var(--futura-radius-sm) !important;
    padding: 14px var(--futura-space-md) !important;
    font-family: var(--futura-font-body) !important;
    font-size: 1.125rem !important;
    color: var(--futura-text-inverse) !important;
    outline: none !important;
    transition: border-color 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.futura-form .gform_wrapper textarea {
    min-height: 120px;
    resize: vertical;
    line-height: var(--futura-lh-base);
}

.futura-form .gform_wrapper select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23F7F8F9' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    padding-right: 40px !important;
    cursor: pointer;
}

.futura-form .gform_wrapper input::placeholder,
.futura-form .gform_wrapper textarea::placeholder {
    color: rgba(247, 248, 249, 0.4);
}

.futura-form .gform_wrapper input:focus,
.futura-form .gform_wrapper select:focus,
.futura-form .gform_wrapper textarea:focus {
    border-color: var(--futura-color-purple) !important;
}

.futura-form .gform_wrapper select option {
    background: var(--futura-bg-dark);
    color: var(--futura-text-inverse);
}

/* Bottone submit */
.futura-form .gform_wrapper .gform_footer {
    margin-top: var(--futura-space-xl) !important;
    padding: 0 !important;
    justify-content: center;
}

.futura-form .gform_wrapper input[type="submit"],
.futura-form .gform_wrapper button[type="submit"] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: var(--futura-color-purple) !important;
    color: var(--futura-text-inverse) !important;
    font-family: var(--futura-font-body) !important;
    font-size: 1.125rem !important;
    font-weight: var(--futura-fw-bold) !important;
    border: none !important;
    border-radius: var(--futura-radius-pill) !important;
    padding: 16px var(--futura-space-xl) !important;
    cursor: pointer;
    transition: background 0.2s ease;
    width: 100% !important;
    margin: 0 !important;
}

.futura-form .gform_wrapper input[type="submit"]:hover,
.futura-form .gform_wrapper button[type="submit"]:hover {
    background: var(--futura-primary-hover) !important;
}

/* Errori di validazione */
.futura-form .gform_wrapper .gfield_validation_message,
.futura-form .gform_wrapper .validation_message {
    font-family: var(--futura-font-body) !important;
    font-size: var(--futura-fs-tiny) !important;
    color: var(--futura-color-pink) !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin-top: 4px !important;
}

.futura-form .gform_wrapper .gform_validation_errors {
    display: none !important;
}

.futura-form .gform_wrapper .gfield_error input,
.futura-form .gform_wrapper .gfield_error select,
.futura-form .gform_wrapper .gfield_error textarea {
    border-color: var(--futura-color-pink) !important;
}

/* Messaggio di conferma invio */
.futura-form .gform_confirmation_message {
    font-family: var(--futura-font-body) !important;
    font-size: var(--futura-fs-body) !important;
    color: var(--futura-color-lime) !important;
    text-align: center;
    padding: var(--futura-space-lg) 0;
}

/* Mobile: 1 colonna */
@media (max-width: 767px) {
    .futura-form .gform_wrapper .gform_fields {
        grid-template-columns: 1fr;
    }
}

/* --- Meta (date, categorie, tag) --- */
.futura-meta {
    display: inline-flex;
    align-items: center;
    gap: var(--futura-space-2xs);
    font-size: var(--futura-fs-small);
    color: var(--futura-text-muted);
}

/* --- Link hover (footer + main content) --- */
footer a,
main a:not([class*="pill"]) {
    transition: opacity 0.25s ease;
}

footer a:hover,
main a:not([class*="pill"]):hover {
    opacity: 0.6;
}

/* =========================================================
   6. UTILITY
   ========================================================= */
.futura-text-center {
    text-align: center;
}
.futura-text-muted {
    color: var(--futura-text-muted);
}
.futura-text-white,
.futura-text-white p {
    color: var(--futura-text-inverse, #f7f8f9);
}
.futura-text-green,
.futura-text-green p {
    color: var(--futura-green-lime, #9cf500);
    font-family: var(--futura-font-accent);
    font-size: 22px;
    font-style: italic;
    font-weight: 700;
    line-height: normal;
}

.futura-mt-sm {
    margin-top: var(--futura-space-sm);
}
.futura-mt-md {
    margin-top: var(--futura-space-md);
}
.futura-mt-lg {
    margin-top: var(--futura-space-lg);
}

.futura-mb-sm {
    margin-bottom: var(--futura-space-sm);
}
.futura-mb-md {
    margin-bottom: var(--futura-space-md);
}
.futura-mb-lg {
    margin-bottom: var(--futura-space-lg);
}

/* =========================================================
   7. SEZIONI SPECIFICHE
   ========================================================= */
/* TBD — Home, Chi è Futura, Trova il tuo Futuro, Scopri la Previdenza, Blog, Contatti */

/* --- Complianz cookie banner --- */
#cmplz-manage-consent .cmplz-manage-consent {
    font-size: 18px !important;
}

/* =========================================================
   8. RESPONSIVE
   ========================================================= */

/* Breakpoint e sizing gestiti da Bricks.
   Aggiungere qui solo override CSS custom per breakpoint specifici.

   Tipografia: h1/h2/h3 usano clamp() e scalano automaticamente.
   .futura-heading-accent e varianti usano clamp() — nessun override necessario.
   .futura-label line-height corretta alla radice (1.5) — nessun patch necessario.
*/

@media (max-width: 1024px) {
    /* tablet — nessun override attualmente necessario */
}

@media (max-width: 768px) {
    /* Body e paragrafi: 20px è grande su mobile, scala a 18px */
    body,
    p,
    li,
    td,
    input,
    textarea,
    select {
        font-size: 1.125rem; /* 18px */
    }

    /* h4 e h5: valori fissi, si riducono leggermente */
    h4 {
        font-size: 1.75rem; /* 28px invece di 32px */
    }
    h5 {
        font-size: 1.375rem; /* 22px invece di 26px */
    }

    /* Card titoli */
    .futura-card-post__title {
        font-size: 1.375rem; /* 22px — più leggibile in card strette */
    }
    .futura-card-strumento__title {
        font-size: clamp(1.5rem, 5vw, 2rem); /* riduce il floor su mobile */
    }

    /* Heading accent in testo: line-height più stretto su schermi piccoli */
    .futura-heading-accent,
    .futura-heading-accent p,
    .futura-heading-accent--white,
    .futura-heading-accent--white p {
        line-height: 1.2;
    }

    /* Bottone pill: adatta larghezza su viewport molto stretti */
    .futura-btn-pill__label {
        padding: 0 6px 0 14px;
    }
}

@media (max-width: 1350px) and (min-width: 1024px) {
    .futura-img-2 {
        display: none !important;
    }
}

/* =========================================================
   FUTURA NAV MENU — Bottone + Drawer
   ========================================================= */

/* --- Bottone trigger --- */
.futura-menu-trigger {
    display: inline-flex;
    align-items: center;
    width: 196px;
    height: 44px;
    border-radius: 22px;
    background: #212322;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.25));
    cursor: pointer;
    border: none;
    padding: 0;
    position: relative;
    flex-shrink: 0;
}

/* Pill bianco con hamburger */
.futura-menu-trigger__pill {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 40px;
    border-radius: 20px;
    background: var(--futura-color-white, #f7f8f9);
    margin: 2px 0 2px 2px;
    flex-shrink: 0;
    /* Animazione hover: il pill si allarga verso destra poi torna */
    transition: width 0s;
}

.futura-menu-trigger__pill svg rect {
    fill: #17171c;
}

/* Label "Menu" */
.futura-menu-trigger__label {
    flex: 1;
    text-align: center;
    color: var(--futura-color-white, #f7f8f9);
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: normal;
    padding-right: 4px;
    pointer-events: none;
}

/* Micro-animazione hover: il pill cresce poi torna
.futura-menu-trigger:hover .futura-menu-trigger__pill {
    animation: futura-pill-bounce 0.38s cubic-bezier(0.34, 1.56, 0.64, 1)
        forwards;
}

@keyframes futura-pill-bounce {
    0% {
        width: 74px;
    }
    50% {
        width: 100px;
    }
    100% {
        width: 74px;
    }
}  */

/* --- Overlay scuro sotto il drawer --- */
.futura-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.futura-nav-overlay.is-visible {
    display: block;
}

.futura-nav-overlay.is-active {
    opacity: 1;
}

/* --- Drawer wrapper (si espande dal bottone) --- */
.futura-nav-drawer {
    position: absolute; /* posizionato via JS rispetto al bottone */
    top: 0;
    left: 0;
    width: 196px; /* parte dalla larghezza del bottone */
    height: 44px;
    border-radius: 22px;
    background: #212322;
    z-index: 1000;
    overflow: hidden;
    /* lo stato aperto è gestito da JS con transizione su width/height */
    transition:
        width 0.42s cubic-bezier(0.16, 1, 0.3, 1),
        height 0.42s cubic-bezier(0.16, 1, 0.3, 1),
        border-radius 0.42s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.futura-nav-drawer.is-open {
    /* width e border-radius finali impostati via JS (dipendono dal container) */
    height: 295px;
    border-radius: 20px;
    pointer-events: all;
}

/* Contenuto interno del drawer (nascosto finché non è aperto) */
.futura-nav-drawer__inner {
    opacity: 0;
    transition: opacity 0.2s ease 0.1s;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 70px 110px;
    box-sizing: border-box;
    pointer-events: none;
}

.futura-nav-drawer.is-open .futura-nav-drawer__inner {
    opacity: 1;
    transition: opacity 0.25s ease 0.28s;
    pointer-events: all;
}

/* Brand name "Futura" */
.futura-nav-drawer__brand {
    color: var(--futura-color-white, #f7f8f9);
    font-family: "Gradient Premium", sans-serif;
    font-size: 16px;
    font-weight: 900;
    line-height: normal;
    margin-bottom: 32px;
}

/* Layout a colonne: sinistra (voci principali) + destra (sottomenu) */
.futura-nav-drawer__body {
    display: flex;
    align-items: flex-start;
    gap: 0;
    flex: 1;
}

/* --- Menu principale (colonna sinistra) --- */
.futura-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.futura-nav-menu > li > a {
    color: var(--futura-color-white, #f7f8f9);
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 16px;
    text-decoration: none;
    transition: color 0.18s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.futura-nav-menu > li > a:hover,
.futura-nav-menu > li.is-active > a {
    color: var(--futura-color-purple, #5a2dff);
}

/* Freccia > per voci con sottomenu */
.futura-nav-menu__arrow {
    display: inline-flex;
    align-items: center;
    opacity: 0;
    transform: translateX(-4px);
    transition:
        opacity 0.18s ease,
        transform 0.18s ease;
}

.futura-nav-menu > li.is-active .futura-nav-menu__arrow,
.futura-nav-menu > li:hover .futura-nav-menu__arrow {
    opacity: 1;
    transform: translateX(0);
}

/* --- Separatore verticale tra col sx e col dx --- */
.futura-nav-drawer__sep {
    width: 1px;
    align-self: stretch;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 48px;
    flex-shrink: 0;
}

/* --- Sottomenu (colonna destra) --- */
.futura-nav-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    flex-direction: column;
    gap: 20px;
}

.futura-nav-submenu.is-visible {
    display: flex;
}

.futura-nav-submenu li a {
    color: var(--futura-color-white, #f7f8f9);
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 16px;
    text-decoration: none;
    transition: color 0.18s ease;
    white-space: nowrap;
}

.futura-nav-submenu li a:hover {
    color: var(--futura-color-purple, #5a2dff);
}

/* =========================================================
   BACK-TO-TOP BUTTON
   ========================================================= */

.futura-back-to-top {
    /* posizionamento */
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 990;

    /* struttura pill (speculare a .futura-menu-trigger) */
    display: inline-flex;
    align-items: center;
    height: 44px;
    border-radius: 22px;
    background: #212322;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
    border: none;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    text-decoration: none;

    /* visibilità: nascosto di default, appare con scroll */
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition:
        opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.2s ease;
}

.futura-back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.futura-back-to-top:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
}

/* Pill bianca con la freccia (sinistra) */
.futura-back-to-top__pill {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background: var(--futura-color-white, #f7f8f9);
    margin: 2px 0 2px 2px;
    flex-shrink: 0;
    transition: width 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.futura-back-to-top:hover .futura-back-to-top__pill {
    width: 54px;
}

/* Label "Su" (destra) */
.futura-back-to-top__label {
    color: var(--futura-color-white, #f7f8f9);
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: normal;
    white-space: nowrap;
    padding: 0 16px 0 10px;
    pointer-events: none;
    user-select: none;
}

@media (max-width: 768px) {
    .futura-back-to-top {
        bottom: 20px;
        right: 20px;
    }
}

/* =========================================================
   FUTURA NAV MENU — Bottone + Drawer
   ========================================================= */

/* --- Bottone chiudi --- */
.futura-nav-drawer__close {
    position: absolute;
    top: 27px; /* centrato verticalmente rispetto ai 295px con padding 70px: (295 - 40) / 2 ≈ 127, ma visivamente top 27px rispecchia il Figma */
    right: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 40px;
    border-radius: 70px;
    background: var(--futura-color-white, #f7f8f9);
    border: none;
    cursor: pointer;
    color: var(--futura-color-black, #17171c);
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-weight: 800;
    line-height: normal;
    transition:
        background 0.18s ease,
        color 0.18s ease;
    z-index: 2;
}

.futura-nav-drawer__close:hover {
    background: #e8e8e8;
}
