/* ═══════════════════════════════════════════════════════════════
   HELVEN STUDIO - Main Stylesheet
   Design System + Layout
   ═══════════════════════════════════════════════════════════════ */

/* ─── CSS CUSTOM PROPERTIES (Design Tokens) ─── */
:root {
    /* Colors */
    --primary: #04395E;
    --primary-light: #065a8f;
    --primary-dark: #022840;
    --secondary: #FFFFFF;
    --accent: #F5B731;
    --accent-light: #f8cc6a;
    --accent-dark: #d99e1a;

    /* Neutrals */
    --text-dark: #1a1a2e;
    --text-body: #4a4a5a;
    --text-light: #626275; /* era #7a7a8a: 4.2:1 su bianco, ora 6:1 (WCAG AA) */
    --bg-light: #f8f9fc;
    --bg-dark: #04395E;
    --border-light: #e8e8ee;
    --border-field: #cfd4de; /* bordo dei campi: 3:1 sullo sfondo, leggibile come controllo */

    /* Typography */
    --font-main: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --h1-size: 56px;
    --h2-size: 40px;
    --h3-size: 32px;
    --body-size: 18px;
    --line-height: 1.6;

    /* Spacing */
    --section-padding: 100px;
    --container-width: 1200px;
    --gap: 40px;
    --card-padding: 40px;

    /* Effects */
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 12px rgba(4, 57, 94, 0.06), 0 1px 2px rgba(4, 57, 94, 0.04);
    --shadow-lg: 0 12px 32px rgba(4, 57, 94, 0.10), 0 2px 6px rgba(4, 57, 94, 0.05);
    --shadow-accent: 0 4px 20px rgba(245, 183, 49, 0.3);
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
    --transition: 0.22s var(--ease-out);
    --header-h: 80px;
}

/* ─── RESET & BASE ─── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-main);
    font-size: var(--body-size);
    line-height: var(--line-height);
    color: var(--text-body);
    background-color: var(--secondary);
    overflow-x: hidden;
    overflow-x: clip;
    text-rendering: optimizeLegibility;
}

::selection {
    background: var(--accent);
    color: var(--text-dark);
}

/* Focus da tastiera: anello oro con bordo navy, leggibile su chiaro e su scuro */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px var(--primary);
}

h1, h2, h3, .section-title, .hero__title, .case-study__title {
    text-wrap: balance;
}

p, li {
    text-wrap: pretty;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 10002;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: var(--secondary);
    font-weight: 700;
    font-size: 15px;
    transform: translateY(-150%);
    transition: transform 0.2s var(--ease-out);
}

.skip-link:focus-visible {
    transform: translateY(0);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ─── UTILITY CLASSES ─── */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.text-accent {
    color: var(--accent);
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--primary);
    margin-bottom: 16px;
}

/* il trattino oro tiene il colore firma, il testo navy tiene il contrasto */
.section-tag::before {
    content: '';
    width: 24px;
    height: 3px;
    border-radius: 2px;
    background: var(--accent);
    flex-shrink: 0;
}

.section-title {
    font-size: var(--h2-size);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-align: center;
}

.section-title--left {
    text-align: left;
}

.section-subtitle {
    font-size: 20px;
    color: var(--text-light);
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
    line-height: 1.6;
}

/* ─── BUTTONS ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease,
                box-shadow 0.25s var(--ease-out), transform 0.16s var(--ease-out);
    white-space: nowrap;
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
}

.btn:active {
    transform: scale(0.97);
}

.btn:disabled,
.btn[aria-busy="true"] {
    opacity: 0.7;
    cursor: progress;
    transform: none;
    box-shadow: none;
}

.btn--primary {
    background-color: var(--accent);
    color: var(--text-dark);
    border-color: var(--accent);
}

@media (hover: hover) and (pointer: fine) {
    .btn--primary:hover {
        background-color: var(--accent-dark);
        border-color: var(--accent-dark);
        transform: translateY(-2px);
        box-shadow: var(--shadow-accent);
    }

    .btn--outline:hover {
        background-color: var(--primary);
        color: var(--secondary);
        transform: translateY(-2px);
    }

    .btn:active {
        transform: translateY(0) scale(0.97);
    }
}

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

.btn--large {
    padding: 20px 48px;
    font-size: 18px;
}

.btn--small {
    padding: 12px 24px;
    font-size: 14px;
}

.btn--full {
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    height: var(--header-h);
}

.header--scrolled {
    box-shadow: var(--shadow);
    height: 70px;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.header__logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.header__logo-img {
    height: 45px;
    width: auto;
    transition: height 0.25s var(--ease-out);
}

.header--scrolled .header__logo-img {
    height: 38px;
}

.header__menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    border-radius: var(--radius-sm);
    transition: color 0.2s ease, background-color 0.2s ease;
}

/* link attivo: sottolineatura oro, come da linee guida */
.header__link::after {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease-out);
}

.header__link--active::after {
    transform: scaleX(1);
}

.header__link:hover {
    color: var(--primary);
    background-color: rgba(4, 57, 94, 0.05);
}

.header__link--cta {
    background-color: var(--accent);
    color: var(--text-dark);
    margin-left: 8px;
}

.header__link--cta::after {
    display: none;
}

.header__link--cta:hover {
    background-color: var(--accent-dark);
    color: var(--text-dark);
}

.header__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    z-index: 1001;
}

.header__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION (growwithward.com layout: photo left, text right)
   ═══════════════════════════════════════════════════════════════ */
.hero {
    padding-top: 80px;
    padding-bottom: 0;
    background: var(--secondary);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    z-index: 1;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: end;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero__badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary);
    color: var(--secondary);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 24px;
    border: 1px solid var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    align-self: flex-start;
}

.hero__title {
    font-size: var(--h1-size);
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.08;
    margin-bottom: 24px;
    letter-spacing: -0.025em;
}

.hero__subtitle {
    font-size: 20px;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 540px;
}

.hero__cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__cta-group .btn--outline {
    color: var(--primary);
    border-color: var(--primary);
}

.hero__cta-group .btn--outline:hover {
    background-color: var(--primary);
    color: var(--secondary);
}

.hero__content {
    padding-bottom: 80px;
    padding-top: 120px;
    padding-left: 32px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    grid-column: 2;
}

.hero__image {
    position: absolute;
    /* la foto sta nella colonna sinistra: prima invadeva il testo */
    left: 25%;
    transform: translateX(-50%);
    bottom: -30px;
    z-index: 1;
    height: min(calc(100vh - 40px), 860px);
    width: auto;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

.hero__photo-wrapper {
    position: relative;
    height: 100%;
    width: auto;
    overflow: hidden;
}

.hero__photo {
    height: 100%;
    width: auto;
    max-width: none;
    object-fit: contain;
    object-position: bottom left;
    filter: drop-shadow(0 15px 40px rgba(4, 57, 94, 0.2));
    transform-origin: bottom center;
    margin-bottom: -50px;
}

/* ─── CLIENTS BAR (right below hero) ─── */
.clients {
    padding: 40px 0;
    padding-top: 40px;
    background: var(--bg-light);
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    position: relative;
    z-index: 2;
}

.clients__label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-bottom: 24px;
}

.clients__scroll {
    margin-top: 24px;
}

/* Infinite scroll wrapper */
.clients__scroll {
    overflow: hidden;
    position: relative;
    width: 100%;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.clients__track {
    display: flex;
    align-items: center;
    gap: 60px;
    width: max-content;
    animation: scroll-logos 30s linear infinite;
}

.clients__track:hover {
    animation-play-state: paused;
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.client-logo {
    flex: 0 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, filter 0.3s ease;
    filter: grayscale(100%);
    opacity: 0.6;
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.client-logo img {
    height: 40px;
    width: auto;
    min-width: 60px;
    max-width: 150px;
    object-fit: contain;
}

/* ═══════════════════════════════════════════════════════════════
   CONSULTING RESULTS (Risultati Consulenze)
   ═══════════════════════════════════════════════════════════════ */
.consulting-results {
    padding: var(--section-padding) 0;
    background-color: var(--bg-light);
    text-align: center;
}

.consulting-results__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    align-items: start;
}

.consulting-result {
    background: var(--secondary);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    line-height: 0;
}

@media (hover: hover) and (pointer: fine) {
    .consulting-result:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
        border-color: var(--accent);
    }
}

.consulting-result img {
    width: 100%;
    height: auto;
    display: block;
}

/* ═══════════════════════════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════════════════════════ */
.services {
    padding: var(--section-padding) 0;
    text-align: center;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
    margin-top: 20px;
}

.service-card {
    background: var(--secondary);
    padding: var(--card-padding);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.2s ease;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .service-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }

    .service-card:hover::before {
        transform: scaleX(1);
    }
}

.service-card:focus-within::before {
    transform: scaleX(1);
}

.service-card__icon {
    width: 64px;
    height: 64px;
    background: rgba(4, 57, 94, 0.08);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.service-card:hover .service-card__icon {
    background: var(--accent);
    color: var(--text-dark);
}

.service-card__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.service-card__text {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* il link resta in fondo alla card anche se i testi hanno lunghezze diverse */
.service-card__link {
    margin-top: auto;
    align-self: flex-start;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    padding: 6px 0;
    transition: color 0.2s ease;
}

.service-card__link:hover {
    color: var(--primary-light);
}

/* ═══════════════════════════════════════════════════════════════
   CTA INTERMEDIA
   ═══════════════════════════════════════════════════════════════ */
.cta-mid {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-mid::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 183, 49, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-mid::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 183, 49, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-mid__inner {
    position: relative;
    z-index: 1;
}

.cta-mid__title {
    font-size: var(--h2-size);
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 20px;
}

.cta-mid__text {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT / CHI SONO
   ═══════════════════════════════════════════════════════════════ */
.about {
    padding: var(--section-padding) 0;
}

.about__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about__image {
    position: relative;
}

.about__image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    background: var(--secondary);
    position: relative;
    z-index: 1;
}

.about__image::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent);
    border-radius: var(--radius);
    z-index: 0;
}

.about__text {
    font-size: 18px;
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about__text strong {
    color: var(--text-dark);
}

.about__highlights {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 2px solid var(--border-light);
}

.about__highlight {
    text-align: center;
}

.about__highlight-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    display: inline;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.about__highlight-suffix {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

.about__highlight-label {
    display: block;
    font-size: 14px;
    color: var(--text-light);
    margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   PORTFOLIO / CASE STUDIES
   ═══════════════════════════════════════════════════════════════ */
.portfolio {
    padding: var(--section-padding) 0;
    background: var(--bg-light);
    text-align: center;
}

.case-study {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
    text-align: left;
}

.case-study:last-child {
    margin-bottom: 0;
}

.case-study--vertical {
    grid-template-columns: 280px 1fr;
}

.case-study--vertical .case-study__image {
    max-width: 280px;
}

.case-study__image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.case-study__image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.case-study__image:hover img {
    transform: scale(1.03);
}

.case-study__image--grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.case-study__image--grid img {
    border-radius: var(--radius-sm);
    width: 100%;
    height: auto;
    object-fit: contain;
}

.case-study__tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(245, 183, 49, 0.22);
    color: var(--primary);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.case-study__title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.2;
}

.case-study__text {
    font-size: 16px;
    color: var(--text-body);
    line-height: 1.65;
    margin-bottom: 24px;
    max-width: 62ch;
}

.case-study__metrics {
    display: flex;
    gap: 16px;
}

.case-study__metric {
    text-align: center;
    padding: 12px 16px;
    background: var(--secondary);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    min-width: 90px;
}

.case-study__metric-value {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.case-study__metric-label {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   SERVICES EXTRA / PROCESSO
   ═══════════════════════════════════════════════════════════════ */
.services-extra {
    padding: var(--section-padding) 0;
    text-align: center;
}

.services-extra__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
    margin-top: 60px;
}

.services-extra__card {
    background: var(--secondary);
    padding: var(--card-padding);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: left;
    border: 1px solid var(--border-light);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .services-extra__card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
        border-color: var(--accent);
    }
}

.services-extra__number {
    font-size: 48px;
    font-weight: 800;
    color: rgba(4, 57, 94, 0.14);
    margin-bottom: 12px;
    line-height: 1;
    letter-spacing: -0.03em;
    transition: color 0.25s ease;
}

.services-extra__card:hover .services-extra__number {
    color: var(--accent);
}

.services-extra__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.services-extra__text {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.services-extra__list {
    list-style: none;
}

.services-extra__list li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    font-size: 15px;
    color: var(--text-body);
    border-bottom: 1px solid var(--border-light);
}

.services-extra__list li:last-child {
    border-bottom: none;
}

.services-extra__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════
   TESTIMONIALS EXTENDED / STATS
   ═══════════════════════════════════════════════════════════════ */
.testimonials-extended {
    padding: var(--section-padding) 0;
    background: var(--primary);
    text-align: center;
}

.testimonials-extended .section-tag {
    color: var(--accent);
}

.testimonials-extended .section-title {
    color: var(--secondary);
}

.stats-showcase__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.stat-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
}

.stat-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #fff;
    border-radius: var(--radius) var(--radius) 0 0;
}

.stat-card__overlay {
    padding: 20px;
    text-align: center;
}

.stat-card__value {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
}

.stat-card__label {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}

.stat-card__growth {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    background: rgba(245, 183, 49, 0.15);
    color: var(--accent);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   BOOKING SECTION
   ═══════════════════════════════════════════════════════════════ */
.booking {
    padding: var(--section-padding) 0;
    background: var(--bg-light);
}

.booking__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.booking__subtitle {
    font-size: 18px;
    color: var(--text-body);
    margin-bottom: 32px;
    line-height: 1.7;
}

.booking__checklist h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.booking__checklist ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.booking__checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 16px;
    color: var(--text-body);
    line-height: 1.5;
}

.booking__check {
    color: var(--accent);
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.booking__testimonial {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    padding: 20px;
    background: var(--secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
}

.booking__testimonial img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.booking__testimonial p {
    font-size: 14px;
    font-style: italic;
    color: var(--text-body);
    line-height: 1.5;
}

/* Form */
.booking__form {
    background: var(--secondary);
    padding: var(--card-padding);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.booking__form-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border-field);
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 16px;
    color: var(--text-dark);
    background: var(--bg-light);
    accent-color: var(--accent);
    caret-color: var(--primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #8a8a99;
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: #b5bccb;
}

.form-group input:user-invalid,
.form-group textarea:user-invalid {
    border-color: #b42318;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(245, 183, 49, 0.25);
    background: var(--secondary);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.booking__form-note {
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 12px;
}


/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0;
}

.footer__top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__logo {
    height: 40px;
    width: auto;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer__tagline {
    font-size: 16px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.footer__location {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
}

.footer__links h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 20px;
}

.footer__links li {
    margin-bottom: 12px;
}

.footer__links a {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.72);
    transition: color 0.2s ease;
    display: inline-block;
    padding: 4px 0;
}

.footer__links a:hover {
    color: var(--accent);
}

.footer__social h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 20px;
}

.footer__social-links {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.footer__social-links a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease-out);
}

.footer__social-links a:hover {
    background: var(--accent);
    color: var(--text-dark);
    transform: translateY(-3px);
}

.footer__contact {
    font-size: 14px;
}

.footer__contact p {
    margin-bottom: 8px;
}

.footer__bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.footer__bottom p {
    margin-bottom: 4px;
}

/* ─── VSL VIDEO SECTION ─── */
.vsl-section {
    padding: 80px 0;
    background: var(--bg-dark, #0a0a1a);
}

.vsl-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius, 16px);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    background: #000;
}

.vsl-wrapper video {
    display: block;
    width: 100%;
    height: auto;
}

.vsl-unmute-btn {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent, #F5B731);
    color: #000;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    z-index: 10;
    animation: pulse-unmute 2.4s ease-in-out infinite;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    white-space: nowrap;
    max-width: calc(100% - 32px);
    box-shadow: 0 4px 20px rgba(245, 183, 49, 0.4);
}

.vsl-unmute-btn.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes pulse-unmute {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
}

.vsl-pip-close {
    display: none;
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
}

/* PiP mode */
.vsl-wrapper.pip {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 320px;
    max-width: 40vw;
    z-index: 9999;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    margin: 0;
    transition: width 0.3s ease, bottom 0.3s ease, right 0.3s ease;
}

.vsl-wrapper.pip .vsl-unmute-btn {
    display: none;
}

.vsl-wrapper.pip .vsl-pip-close {
    display: block;
}

/* Hide native controls in PiP (too small) - keep close button only */
.vsl-wrapper.pip video::-webkit-media-controls {
    display: none;
}

/* Placeholder to keep layout when PiP activates */
.vsl-placeholder {
    display: none;
}

/* sezioni raggiunte dai link interni: ricevono il focus senza mostrare l'anello */
section[tabindex="-1"]:focus,
section[tabindex="-1"]:focus-visible {
    outline: none;
    box-shadow: none;
}
