/* ==========================================================================
   vivaCER — Foglio di stile condiviso
   Palette: sage #a8b8a3 · oro #c4a882 · verde scuro #2c3a2c · crema #faf8f4
   ========================================================================== */

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

:root {
    /* Palette */
    --sage: #a8b8a3;
    --gold: #c4a882;
    --dark: #2c3a2c;
    --cream: #faf8f4;
    --cream-soft: #f5f2ec;
    --line: #e8e1d5;
    --text-soft: #6a7a6a;
    --text-medium: #4a5a4a;

    /* Spaziatura fluida per padding sezioni e container */
    --section-pad: clamp(56px, 9vw, 100px);
    --container-pad: clamp(18px, 4vw, 24px);

    /* Safe area iOS */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Quicksand', sans-serif;
    background-color: var(--cream);
    color: var(--dark);
    line-height: 1.55;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent; /* niente highlight blu al tap su iOS */
    text-rendering: optimizeLegibility;
}

/* Disabilita selezione testo su elementi puramente decorativi */
.tag, .stat-label, .timeline-number, .footer-tagline {
    -webkit-user-select: none;
    user-select: none;
}

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

a { color: inherit; }

button { font-family: inherit; }

/* ===== LAYOUT ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

section { padding: 80px 0; }

.text-center { text-align: center; }

/* ===== SCROLL REVEAL (premium con scale + cubic-bezier) ===== */
.reveal {
    opacity: 0;
    transform: translateY(50px) scale(0.98);
    transition: opacity 0.85s cubic-bezier(0.2, 0.9, 0.3, 1.2),
                transform 0.85s cubic-bezier(0.2, 0.9, 0.3, 1.2);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Stagger automatico sui figli dei grid quando il parent ha .reveal */
.reveal .cards-grid > *,
.reveal .value-grid > *,
.reveal .team-grid > *,
.reveal .doc-grid > *,
.reveal .partner-grid > *,
.reveal .news-grid > *,
.reveal .info-strip > *,
.reveal .footer-top > *,
.reveal.stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.reveal.active .cards-grid > *,
.reveal.active .value-grid > *,
.reveal.active .team-grid > *,
.reveal.active .doc-grid > *,
.reveal.active .partner-grid > *,
.reveal.active .news-grid > *,
.reveal.active .info-strip > *,
.reveal.active .footer-top > *,
.reveal.active.stagger > * {
    opacity: 1;
    transform: translateY(0);
}

.reveal.active .cards-grid > *:nth-child(1),
.reveal.active .value-grid > *:nth-child(1),
.reveal.active .team-grid > *:nth-child(1),
.reveal.active .info-strip > *:nth-child(1),
.reveal.active.stagger > *:nth-child(1) { transition-delay: 0.05s; }
.reveal.active .cards-grid > *:nth-child(2),
.reveal.active .value-grid > *:nth-child(2),
.reveal.active .team-grid > *:nth-child(2),
.reveal.active .info-strip > *:nth-child(2),
.reveal.active.stagger > *:nth-child(2) { transition-delay: 0.12s; }
.reveal.active .cards-grid > *:nth-child(3),
.reveal.active .value-grid > *:nth-child(3),
.reveal.active .info-strip > *:nth-child(3),
.reveal.active.stagger > *:nth-child(3) { transition-delay: 0.19s; }
.reveal.active .cards-grid > *:nth-child(4),
.reveal.active .value-grid > *:nth-child(4),
.reveal.active .info-strip > *:nth-child(4),
.reveal.active.stagger > *:nth-child(4) { transition-delay: 0.26s; }
.reveal.active .value-grid > *:nth-child(5),
.reveal.active.stagger > *:nth-child(5) { transition-delay: 0.33s; }
.reveal.active .value-grid > *:nth-child(6),
.reveal.active.stagger > *:nth-child(6) { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal .cards-grid > *,
    .reveal .value-grid > *,
    .reveal .team-grid > *,
    .reveal .doc-grid > *,
    .reveal .partner-grid > *,
    .reveal .news-grid > *,
    .reveal .info-strip > *,
    .reveal.stagger > * { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ===== SCROLL PROGRESS BAR (in alto) ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    z-index: 1001;
    pointer-events: none;
}

.scroll-progress-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #a8b8a3 0%, #c4a882 100%);
    transform: scaleX(0);
    transform-origin: left center;
    box-shadow: 0 0 8px rgba(196, 168, 130, 0.45);
    transition: transform 0.1s linear;
}

/* ===== HEADER (con shrink al scroll) ===== */
header.site-header {
    padding: 16px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(250, 248, 244, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    border-bottom: 1px solid rgba(168, 184, 163, 0.15);
    transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}

header.site-header.scrolled {
    background: rgba(250, 248, 244, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 8px 0;
}

header.site-header.scrolled .logo-img {
    height: 48px;
    transition: height 0.3s ease;
}

header.site-header .logo-img {
    transition: height 0.3s ease;
}

header.site-header.scrolled .logo-tagline {
    opacity: 0;
    transform: translateX(-10px);
}

header.site-header .logo-tagline {
    transition: opacity 0.3s, transform 0.3s;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    height: 65px;
    width: auto;
}

.logo-tagline {
    font-size: 0.9rem;
    color: #7a8a7a;
    margin-left: 14px;
    font-weight: 400;
    border-left: 1px solid #c4a88260;
    padding-left: 18px;
}

@media (max-width: 600px) {
    .logo-tagline { display: none; }
    .logo-img { height: 50px; }
}

/* ===== NAV DESKTOP ===== */
.nav-desktop {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-desktop a {
    text-decoration: none;
    color: #4a5a4a;
    font-weight: 500;
    transition: color 0.2s, border-color 0.2s;
    font-size: 0.98rem;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.nav-desktop a:hover,
.nav-desktop a.active {
    color: #a8b8a3;
    border-bottom-color: #a8b8a3;
}

.nav-desktop a i {
    margin-right: 6px;
    color: #a8b8a3;
    font-size: 0.9rem;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a::after {
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 6px;
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.nav-dropdown:hover > a::after {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    border-radius: 20px;
    padding: 14px;
    min-width: 230px;
    box-shadow: 0 25px 50px -12px rgba(44, 58, 44, 0.18);
    border: 1px solid #e8e1d5;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
    padding: 10px 14px;
    border-radius: 12px;
    border: none !important;
    transition: background 0.2s, color 0.2s;
    font-size: 0.95rem;
}

.nav-dropdown-menu a:hover {
    background: #faf8f4;
    color: #2c3a2c;
}

.nav-dropdown-menu a i {
    width: 18px;
    text-align: center;
}

/* CTA in nav */
.nav-cta {
    background: #a8b8a3;
    color: #2c3a2c !important;
    padding: 10px 22px !important;
    border-radius: 50px;
    font-weight: 600 !important;
    border: none !important;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.nav-cta:hover {
    background: #c4a882;
    color: #2c3a2c !important;
    border: none !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(196, 168, 130, 0.3);
}

/* Icon button */
.btn-icon {
    background: #ffffffd0;
    backdrop-filter: blur(8px);
    color: #4a5a4a;
    font-weight: 500;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid #e0d8cc;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: white;
    border-color: #c4a882;
    transform: translateY(-2px);
}

.btn-icon i {
    margin: 0 !important;
    font-size: 1.1rem;
}

/* ===== MENU MOBILE ===== */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.menu-toggle span {
    width: 100%;
    height: 2.5px;
    background: #4a5a4a;
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
    background: #a8b8a3;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background: #a8b8a3;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(250, 248, 244, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    padding: 40px;
    overflow-y: auto;
}

.mobile-menu.active { right: 0; }

.mobile-menu a {
    font-size: 1.18rem;
    text-decoration: none;
    color: #2c3a2c;
    font-weight: 500;
    padding: 10px 14px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 14px;
    opacity: 0;
    transform: translateX(50px);
}

.mobile-menu.active a {
    animation: slideIn 0.5s forwards;
}

.mobile-menu.active a:nth-child(1)  { animation-delay: 0.06s; }
.mobile-menu.active a:nth-child(2)  { animation-delay: 0.10s; }
.mobile-menu.active a:nth-child(3)  { animation-delay: 0.14s; }
.mobile-menu.active a:nth-child(4)  { animation-delay: 0.18s; }
.mobile-menu.active a:nth-child(5)  { animation-delay: 0.22s; }
.mobile-menu.active a:nth-child(6)  { animation-delay: 0.26s; }
.mobile-menu.active a:nth-child(7)  { animation-delay: 0.30s; }
.mobile-menu.active a:nth-child(8)  { animation-delay: 0.34s; }
.mobile-menu.active a:nth-child(9)  { animation-delay: 0.38s; }
.mobile-menu.active a:nth-child(10) { animation-delay: 0.42s; }
.mobile-menu.active a:nth-child(11) { animation-delay: 0.46s; }
.mobile-menu.active a:nth-child(12) { animation-delay: 0.50s; }
.mobile-menu.active a:nth-child(13) { animation-delay: 0.54s; }

@keyframes slideIn {
    to { opacity: 1; transform: translateX(0); }
}

.mobile-menu a i {
    color: #a8b8a3;
    width: 30px;
    text-align: center;
}

.mobile-menu a:hover { color: #a8b8a3; }

.mobile-menu a.mobile-cta {
    background: #a8b8a3;
    color: #2c3a2c;
    padding: 14px 28px;
    border-radius: 50px;
    margin-top: 10px;
}

@media (max-width: 1000px) {
    .nav-desktop { display: none; }
    .menu-toggle { display: flex; }
}

/* ===== HERO HOME (centrato, immagine sfondo) ===== */
.hero {
    min-height: 100vh;
    padding: 120px 0 80px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
    background-color: #2c3a2c;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1509391366360-2e959784a276?w=1600&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-color: #2c3a2c;
    filter: blur(8px) brightness(0.45);
    transform: scale(1.1);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(44, 58, 44, 0.6) 0%, rgba(168, 184, 163, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    color: white;
    animation: heroFadeIn 1.2s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

@keyframes heroFadeIn {
    0%   { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-content .tag {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 28px;
    color: white;
}

.hero h1 strong {
    font-weight: 600;
    color: #c4a882;
}

.hero p {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 36px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    gap: 20px;
    margin-top: 48px;
    flex-wrap: wrap;
    justify-content: center;
}

.stat-item {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    padding: 16px 32px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
}

.stat-number {
    font-size: 2rem;
    font-weight: 500;
    color: #c4a882;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* ===== SUB-HERO (pagine interne) — versione originale che funziona con URL Unsplash o file locali ===== */
.sub-hero {
    padding: 180px 0 90px;
    position: relative;
    text-align: center;
    overflow: hidden;
    color: white;
    isolation: isolate;
    background-color: #2c3a2c;
}

.sub-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-image: var(--sub-hero-bg, url('https://images.unsplash.com/photo-1466611653911-95081537e5b7?w=1600&auto=format&fit=crop'));
    background-color: #2c3a2c;
    filter: brightness(0.7);
    z-index: 0;
    transform: scale(1.05);
}

/* Sfondi sub-hero per pagina (percorsi relativi al CSS, compatibili con tutti i browser) */
.sub-hero-chi-siamo::before { background-image: url('../bg-chi-siamo.jpg'); }
.sub-hero-soluzioni::before { background-image: url('../bg-soluzioni.jpg'); background-position: center 75%; }
.sub-hero-aziende::before { background-image: url('../bg-soluzioni-aziende.jpg'); }
.sub-hero-comuni::before { background-image: url('../bg-soluzioni-comuni.jpg'); }
.sub-hero-famiglie::before { background-image: url('../bg-soluzioni-famiglie.jpg'); background-position: center 75%; }

.sub-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(44, 58, 44, 0.55) 0%, rgba(168, 184, 163, 0.25) 100%);
    z-index: 1;
}

.sub-hero > .container {
    position: relative;
    z-index: 2;
}

.sub-hero .tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    margin-bottom: 18px;
}

.sub-hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 500;
    color: white;
    margin-bottom: 18px;
    line-height: 1.15;
}

.sub-hero h1 strong {
    color: #c4a882;
    font-weight: 600;
}

.sub-hero p {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.92);
    max-width: 760px;
    margin: 0 auto 24px;
}

/* Breadcrumb */
.breadcrumb {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover { color: #c4a882; }

.breadcrumb .sep { opacity: 0.6; }

.breadcrumb .current {
    color: #c4a882;
    font-weight: 500;
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #a8b8a3;
    color: #2c3a2c;
    font-weight: 500;
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    border: none;
    font-size: 1.05rem;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary:hover {
    background: #9aab95;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(168, 184, 163, 0.3);
}

.btn-primary.gold {
    background: #c4a882;
}

.btn-primary.gold:hover {
    background: #b59770;
    box-shadow: 0 15px 25px rgba(196, 168, 130, 0.35);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: white;
    font-weight: 500;
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
    font-size: 1.05rem;
    cursor: pointer;
    font-family: inherit;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: white;
    transform: translateY(-2px);
}

.btn-outline.dark {
    color: #2c3a2c;
    border-color: #a8b8a3;
}

.btn-outline.dark:hover {
    background: rgba(168, 184, 163, 0.12);
    border-color: #c4a882;
    color: #2c3a2c;
}

.btn-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ===== TITOLI / TAG ===== */
.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 400;
    color: #2c3a2c;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-subtitle {
    color: #6a7a6a;
    font-size: 1.05rem;
    max-width: 720px;
    margin: 0 auto 40px;
}

.text-center .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.tag {
    background: #e8e1d5;
    color: #5a6a5a;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.tag.gold {
    background: #c4a88220;
    color: #6a5a4a;
    border: 1px solid #c4a88240;
}

/* ===== FEATURE ROW ===== */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin: 40px 0;
}

.feature-row.reverse > :first-child {
    order: 2;
}

.feature-image {
    border-radius: 50% 30% 50% 30% / 40% 50% 40% 50%;
    overflow: hidden;
    box-shadow: 0 30px 40px -15px rgba(44, 58, 44, 0.1);
    border: 2px solid white;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-image.rounded {
    border-radius: 30px;
}

.feature-content h3 {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    font-weight: 400;
    color: #2c3a2c;
    margin-bottom: 20px;
}

.feature-content p {
    color: #6a7a6a;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e8e1d5;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #4a5a4a;
}

.feature-list li i {
    color: #a8b8a3;
    margin-top: 6px;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .feature-row {
        grid-template-columns: 1fr;
    }
    .feature-row.reverse > :first-child { order: initial; }
    .feature-image {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* ===== CARDS GRID ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.cards-grid.two-cols { grid-template-columns: repeat(2, 1fr); }
.cards-grid.four-cols { grid-template-columns: repeat(4, 1fr); }

.card {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 30px -10px rgba(44, 58, 44, 0.06);
    border: 1px solid #e8e1d5;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 40px -12px rgba(44, 58, 44, 0.12);
}

.card-img {
    height: 200px;
    overflow: hidden;
    background: #e8e1d5;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.card:hover .card-img img { transform: scale(1.05); }

.card-content {
    padding: 28px 26px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content h4 {
    font-size: 1.4rem;
    font-weight: 500;
    color: #2c3a2c;
    margin-bottom: 12px;
}

.card-content p {
    color: #6a7a6a;
    margin-bottom: 18px;
}

.card-link {
    color: #a8b8a3;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    transition: color 0.2s, gap 0.2s;
}

.card-link:hover {
    color: #c4a882;
    gap: 12px;
}

@media (max-width: 1000px) {
    .cards-grid,
    .cards-grid.four-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .cards-grid,
    .cards-grid.two-cols,
    .cards-grid.four-cols {
        grid-template-columns: 1fr;
    }
}

/* ===== TIMELINE VANTAGGI ===== */
.benefits-timeline {
    background: linear-gradient(135deg, #f5f2ec 0%, #faf8f4 100%);
    border-radius: 60px;
    padding: 60px 40px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.benefits-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 184, 163, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.benefits-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.benefits-header .tag {
    background: #c4a88220;
    color: #6a5a4a;
    border: 1px solid #c4a88240;
}

.benefits-header h3 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 400;
    color: #2c3a2c;
    margin-top: 16px;
}

.timeline-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    top: 60px;
    left: 15%;
    right: 15%;
    height: 3px;
    background: linear-gradient(90deg, #a8b8a3 0%, #c4a882 50%, #a8b8a3 100%);
    z-index: 0;
}

.timeline-item {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
    max-width: 250px;
}

.timeline-icon {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 20px 30px -10px rgba(44, 58, 44, 0.1);
    border: 3px solid white;
    position: relative;
}

.timeline-icon::after {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a8b8a3, #c4a882);
    opacity: 0.3;
    z-index: -1;
}

.timeline-icon i {
    font-size: 2.8rem;
    color: #a8b8a3;
}

.timeline-item h4 {
    font-size: 1.5rem;
    font-weight: 500;
    color: #2c3a2c;
    margin-bottom: 12px;
}

.timeline-number {
    font-size: 2rem;
    font-weight: 400;
    color: #c4a882;
    margin: 12px 0;
    line-height: 1.2;
}

.timeline-item p {
    color: #6a7a6a;
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .benefits-timeline {
        padding: 40px 24px;
        border-radius: 40px;
    }
    .timeline-container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    .timeline-line { display: none; }
    .timeline-item {
        max-width: 300px;
        display: flex;
        flex-direction: row;
        text-align: left;
        gap: 20px;
        align-items: center;
    }
    .timeline-icon {
        width: 80px;
        height: 80px;
        margin: 0;
        flex-shrink: 0;
    }
    .timeline-icon i { font-size: 2.2rem; }
    .timeline-content { flex: 1; }
    .timeline-item h4 { font-size: 1.3rem; margin-bottom: 6px; }
    .timeline-number { font-size: 1.6rem; margin: 6px 0; }
}

@media (max-width: 480px) {
    .timeline-item {
        flex-direction: column;
        text-align: center;
        max-width: 250px;
    }
    .timeline-icon { margin: 0 auto 16px; }
    .timeline-content { text-align: center; }
}

/* ===== QUOTE FULL (CTA dark) ===== */
.quote-full {
    background: #2c3a2c;
    border-radius: 50px 20px 50px 20px;
    padding: 60px 50px;
    margin: 40px 0;
    color: #e8e1d5;
    position: relative;
    overflow: hidden;
}

.quote-full::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: url('https://images.unsplash.com/photo-1508514177221-188b1cf16e9d?w=300&auto=format&fit=crop') center/cover;
    border-radius: 50%;
    opacity: 0.08;
}

.quote-full h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 400;
    color: white;
    max-width: 800px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.quote-full p {
    font-size: 1.15rem;
    color: #d0d8c8;
    max-width: 700px;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.quote-full .btn-primary {
    background: #c4a882;
    color: #2c3a2c;
    position: relative;
    z-index: 1;
}

.quote-full .btn-primary:hover {
    background: #b59770;
}

@media (max-width: 700px) {
    .quote-full { padding: 40px 28px; border-radius: 30px; }
}

/* ===== FAQ GRID (home) ===== */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.faq-item {
    background: white;
    border-radius: 25px;
    padding: 24px 28px;
    margin-bottom: 16px;
    border: 1px solid #e8e1d5;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item:hover {
    border-color: #c4a88260;
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
}

.faq-item p:first-child {
    font-weight: 600;
    font-size: 1.1rem;
    color: #2c3a2c;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.faq-item p:first-child i { color: #a8b8a3; }

.faq-item p:last-child {
    color: #6a7a6a;
    padding-left: 38px;
}

@media (max-width: 900px) {
    .faq-grid { grid-template-columns: 1fr; }
}

/* ===== ACCORDION (pagina FAQ) ===== */
.accordion {
    max-width: 900px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.accordion-item {
    background: white;
    border: 1px solid #e8e1d5;
    border-radius: 24px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.accordion-item:hover { border-color: #c4a88260; }

.accordion-item.open {
    border-color: #a8b8a3;
    box-shadow: 0 15px 30px -10px rgba(168, 184, 163, 0.2);
}

.accordion-trigger {
    width: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 22px 28px;
    text-align: left;
    font-size: 1.08rem;
    font-weight: 600;
    color: #2c3a2c;
    display: flex;
    align-items: center;
    gap: 16px;
    line-height: 1.4;
    transition: color 0.2s;
}

.accordion-trigger:hover { color: #a8b8a3; }

.accordion-trigger .acc-ico {
    color: #a8b8a3;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.accordion-trigger .acc-chevron {
    margin-left: auto;
    color: #a8b8a3;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.accordion-item.open .acc-chevron {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion-content-inner {
    padding: 0 28px 24px 64px;
    color: #6a7a6a;
    font-size: 1rem;
    line-height: 1.65;
}

.accordion-content-inner p { margin-bottom: 12px; }
.accordion-content-inner p:last-child { margin-bottom: 0; }

.accordion-content-inner ul,
.accordion-content-inner ol {
    margin: 8px 0 12px 20px;
}

.accordion-content-inner li { margin-bottom: 6px; }

.accordion-content-inner strong { color: #2c3a2c; }

@media (max-width: 600px) {
    .accordion-trigger { padding: 18px 20px; font-size: 1rem; gap: 12px; }
    .accordion-content-inner { padding: 0 20px 20px 48px; }
}

/* ===== FAQ TABS ===== */
.faq-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 30px 0 10px;
}

.faq-tab {
    background: white;
    border: 1px solid #e8e1d5;
    color: #4a5a4a;
    padding: 10px 22px;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.faq-tab:hover { border-color: #a8b8a3; }

.faq-tab.active {
    background: #a8b8a3;
    color: #2c3a2c;
    border-color: #a8b8a3;
}

/* ===== TEAM CARDS ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
    margin-top: 40px;
}

.team-card {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid #e8e1d5;
    display: grid;
    grid-template-columns: 220px 1fr;
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 50px -15px rgba(44, 58, 44, 0.12);
}

.team-photo {
    background: #e8e1d5;
    position: relative;
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info {
    padding: 28px 26px;
}

.team-info .role {
    display: inline-block;
    background: #c4a88220;
    color: #6a5a4a;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.team-info h3 {
    font-size: 1.35rem;
    color: #2c3a2c;
    font-weight: 600;
    margin-bottom: 10px;
}

.team-info p {
    color: #6a7a6a;
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .team-grid { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
    .team-card { grid-template-columns: 1fr; }
    .team-photo { height: 260px; }
}

/* ===== VALORI (icon cards) ===== */
.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 40px 0;
}

.value-card {
    background: white;
    border-radius: 24px;
    padding: 32px 26px;
    border: 1px solid #e8e1d5;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 40px -15px rgba(44, 58, 44, 0.1);
}

.value-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, #e8efe5 0%, #f0e7d5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #a8b8a3;
    font-size: 1.6rem;
}

.value-card h4 {
    font-size: 1.2rem;
    color: #2c3a2c;
    font-weight: 600;
    margin-bottom: 10px;
}

.value-card p {
    color: #6a7a6a;
    font-size: 0.98rem;
}

@media (max-width: 900px) {
    .value-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .value-grid { grid-template-columns: 1fr; }
}

/* ===== STEPS (Come funziona) ===== */
.steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 50px;
}

.step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 30px;
    align-items: flex-start;
    background: white;
    border-radius: 26px;
    padding: 32px 32px;
    border: 1px solid #e8e1d5;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 40px -15px rgba(44, 58, 44, 0.1);
}

.step-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a8b8a3, #c4a882);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
}

.step h3 {
    font-size: 1.4rem;
    color: #2c3a2c;
    margin-bottom: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 14px;
}

.step h3 i {
    color: #c4a882;
    font-size: 1.1rem;
}

.step p {
    color: #6a7a6a;
    font-size: 1rem;
    line-height: 1.65;
}

.step ul {
    margin-top: 12px;
    list-style: none;
}

.step ul li {
    padding: 6px 0;
    color: #4a5a4a;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.step ul li i {
    color: #a8b8a3;
    margin-top: 6px;
}

@media (max-width: 600px) {
    .step {
        grid-template-columns: 1fr;
        padding: 28px 22px;
        gap: 16px;
    }
}

/* ===== INFO STRIP / NUMERI ===== */
.info-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    background: white;
    border-radius: 30px;
    padding: 40px;
    border: 1px solid #e8e1d5;
    box-shadow: 0 25px 40px -15px rgba(44, 58, 44, 0.06);
}

.info-strip .info {
    text-align: center;
    padding: 0 12px;
    border-right: 1px solid #e8e1d5;
}

.info-strip .info:last-child { border-right: none; }

.info-strip .info .big {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: #c4a882;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 6px;
}

.info-strip .info .lbl {
    color: #6a7a6a;
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .info-strip {
        grid-template-columns: repeat(2, 1fr);
        padding: 30px;
        gap: 20px;
    }
    .info-strip .info:nth-child(2) { border-right: none; }
    .info-strip .info { padding: 10px 0; }
}

@media (max-width: 500px) {
    .info-strip { grid-template-columns: 1fr; }
    .info-strip .info { border-right: none; border-bottom: 1px solid #e8e1d5; padding-bottom: 16px; }
    .info-strip .info:last-child { border-bottom: none; padding-bottom: 0; }
}

/* ===== TABELLA COMPARATIVA ===== */
.compare-table-wrapper {
    overflow-x: auto;
    margin-top: 30px;
    border-radius: 24px;
    background: white;
    border: 1px solid #e8e1d5;
    box-shadow: 0 20px 30px -10px rgba(44, 58, 44, 0.05);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.compare-table th,
.compare-table td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid #e8e1d5;
    font-size: 0.98rem;
}

.compare-table th {
    background: #faf8f4;
    color: #2c3a2c;
    font-weight: 600;
}

.compare-table th:first-child { border-top-left-radius: 24px; }
.compare-table th:last-child { border-top-right-radius: 24px; }

.compare-table tr:last-child td { border-bottom: none; }

.compare-table td i.fa-check { color: #a8b8a3; }
.compare-table td i.fa-xmark { color: #d8c0a0; }

.compare-table td.feature {
    font-weight: 500;
    color: #4a5a4a;
}

/* ===== FORM ===== */
.form-card {
    background: white;
    border-radius: 30px;
    padding: 44px 40px;
    border: 1px solid #e8e1d5;
    box-shadow: 0 30px 50px -20px rgba(44, 58, 44, 0.08);
    max-width: 760px;
    margin: 40px auto 0;
}

.form-card h3 {
    font-size: 1.5rem;
    color: #2c3a2c;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-card .help {
    color: #6a7a6a;
    margin-bottom: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full { grid-column: 1 / -1; }

.form-group label {
    font-size: 0.92rem;
    color: #4a5a4a;
    font-weight: 500;
}

.form-group .req {
    color: #c4a882;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: #faf8f4;
    border: 1.5px solid #e8e1d5;
    border-radius: 14px;
    padding: 13px 16px;
    font-family: inherit;
    font-size: 1rem;
    color: #2c3a2c;
    transition: border-color 0.2s, background 0.2s;
    outline: none;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #a8b8a3;
    background: white;
}

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

.form-group .hint {
    color: #8a9a8a;
    font-size: 0.82rem;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #4a5a4a;
    font-size: 0.92rem;
}

.checkbox-group input {
    width: auto;
    margin-top: 4px;
    accent-color: #a8b8a3;
}

.form-actions {
    margin-top: 28px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 700px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-card { padding: 32px 24px; border-radius: 24px; }
}

/* Form steps (multi-step) */
.form-steps {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.form-step-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 50px;
    background: #faf8f4;
    border: 1px solid #e8e1d5;
    color: #6a7a6a;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.form-step-pill .num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e8e1d5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #6a7a6a;
}

.form-step-pill.active {
    background: #a8b8a3;
    color: #2c3a2c;
    border-color: #a8b8a3;
}

.form-step-pill.active .num {
    background: #2c3a2c;
    color: white;
    border-color: #2c3a2c;
}

.form-step-pill.done .num {
    background: #c4a882;
    color: white;
    border-color: #c4a882;
}

/* ===== CONTACT CARDS ===== */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 40px;
}

.contact-card {
    background: white;
    border-radius: 24px;
    padding: 30px 26px;
    border: 1px solid #e8e1d5;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 40px -15px rgba(44, 58, 44, 0.1);
}

.contact-card .ico {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8efe5, #f0e7d5);
    color: #a8b8a3;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.contact-card h4 {
    color: #2c3a2c;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.contact-card a,
.contact-card p {
    color: #6a7a6a;
    text-decoration: none;
    font-size: 0.98rem;
    word-break: break-word;
}

.contact-card a:hover { color: #c4a882; }

@media (max-width: 800px) {
    .contact-cards { grid-template-columns: 1fr; }
}

/* ===== MAP placeholder ===== */
.map-placeholder {
    margin-top: 40px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #e8e1d5;
    height: 320px;
    background: linear-gradient(135deg, #e8efe5 0%, #f5f2ec 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6a7a6a;
    flex-direction: column;
    gap: 10px;
}

.map-placeholder i {
    font-size: 2.6rem;
    color: #a8b8a3;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #a8b8a3;
    color: #2c3a2c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.3s;
    box-shadow: 0 8px 20px rgba(168, 184, 163, 0.3);
    border: 2px solid white;
    z-index: 998;
}

.back-to-top.visible { opacity: 1; visibility: visible; }

.back-to-top:hover {
    background: #9aab95;
    transform: translateY(-5px);
}

/* Su mobile: se il cookie banner è visibile, alza il back-to-top per evitare overlap */
@media (max-width: 600px) {
    body:has(.cookie-banner.show) .back-to-top.visible {
        bottom: 220px;
    }
}

/* ===== FOOTER ===== */
footer.site-footer {
    background: linear-gradient(180deg, #2c3a2c 0%, #1a2a1a 100%);
    color: #e0e8d8;
    padding: 60px 0 0;
    margin-top: 80px;
    border-radius: 60px 60px 0 0;
    position: relative;
    overflow: hidden;
}

footer.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #a8b8a3, #c4a882, #a8b8a3);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(168, 184, 163, 0.2);
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo-img {
    height: 65px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    margin-bottom: 24px;
}

.footer-tagline {
    font-size: 1.2rem;
    color: #c4a882;
    margin-bottom: 16px;
    font-weight: 400;
}

.footer-description {
    color: #b0c0b0;
    margin-bottom: 24px;
    line-height: 1.6;
    max-width: 350px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c0ccc0;
    text-decoration: none;
    transition: background 0.3s, color 0.3s, transform 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-social a:hover {
    background: #c4a882;
    color: #2c3a2c;
    transform: translateY(-3px);
}

.footer-links h4,
.footer-newsletter h4 {
    color: #c4a882;
    font-weight: 500;
    margin-bottom: 24px;
    font-size: 1.15rem;
}

.footer-links ul { list-style: none; }

.footer-links li { margin-bottom: 12px; }

.footer-links a {
    color: #c0ccc0;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.footer-links a i {
    font-size: 0.75rem;
    color: #a8b8a3;
    transition: transform 0.2s;
}

.footer-links a:hover { color: #c4a882; }
.footer-links a:hover i { transform: translateX(5px); }

.footer-newsletter p {
    color: #b0c0b0;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1;
    min-width: 180px;
    padding: 13px 18px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-family: 'Quicksand', sans-serif;
    outline: none;
    transition: border-color 0.3s, background 0.3s;
}

.newsletter-form input::placeholder { color: #a0b0a0; }

.newsletter-form input:focus {
    border-color: #c4a882;
    background: rgba(255, 255, 255, 0.08);
}

.newsletter-form button {
    padding: 13px 22px;
    border-radius: 50px;
    border: none;
    background: #a8b8a3;
    color: #2c3a2c;
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.newsletter-form button:hover {
    background: #c4a882;
    transform: translateY(-2px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    color: #90a090;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: #90a090;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-bottom-links a:hover { color: #c4a882; }

.footer-contact-info {
    display: flex;
    gap: 26px;
    color: #90a090;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.footer-contact-info span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-contact-info i { color: #a8b8a3; }

@media (max-width: 1100px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .footer-brand { grid-column: 1 / -1; }
    .footer-description { max-width: 100%; }
}

@media (max-width: 700px) {
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-bottom-links { justify-content: center; }
    .footer-contact-info { flex-direction: column; gap: 10px; align-items: center; }
    footer.site-footer { padding: 40px 0 0; border-radius: 40px 40px 0 0; }
    .footer-logo-img { height: 55px; }
    .footer-brand { align-items: center; text-align: center; }
    .footer-description { text-align: center; }
    .footer-social { justify-content: center; }
}

/* ===== UTILITY ===== */
.bg-cream { background: #f5f2ec; }
.bg-white { background: white; }

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #c4a88240, transparent);
    margin: 60px 0;
}

.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

/* ===== NEWS / BLOG CARDS ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.news-grid.featured {
    grid-template-columns: 2fr 1fr 1fr;
}

.news-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #e8e1d5;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 50px -15px rgba(44, 58, 44, 0.12);
}

.news-card .news-img {
    height: 200px;
    background: #e8e1d5;
    overflow: hidden;
    position: relative;
}

.news-card .news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card:hover .news-img img { transform: scale(1.06); }

.news-card.large .news-img { height: 320px; }

.news-card .news-cat {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(44, 58, 44, 0.92);
    color: white;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
}

.news-card .news-body {
    padding: 24px 24px 26px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card .news-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #8a9a8a;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.news-card .news-meta i { color: #c4a882; }

.news-card h3 {
    font-size: 1.2rem;
    color: #2c3a2c;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 10px;
}

.news-card.large h3 { font-size: 1.55rem; }

.news-card p {
    color: #6a7a6a;
    font-size: 0.95rem;
    margin-bottom: 18px;
    line-height: 1.55;
}

.news-card .news-link {
    color: #a8b8a3;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    font-size: 0.95rem;
    transition: gap 0.2s, color 0.2s;
}

.news-card:hover .news-link {
    color: #c4a882;
    gap: 12px;
}

@media (max-width: 1000px) {
    .news-grid,
    .news-grid.featured { grid-template-columns: repeat(2, 1fr); }
    .news-card.large { grid-column: span 2; }
}

@media (max-width: 700px) {
    .news-grid,
    .news-grid.featured { grid-template-columns: 1fr; }
    .news-card.large { grid-column: span 1; }
    .news-card.large .news-img { height: 220px; }
}

/* News filter pills (reuse faq-tabs) */
.news-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 30px 0 20px;
}

/* ===== PROGETTI PLACEHOLDER ===== */
.placeholder-card {
    background: linear-gradient(135deg, #f5f2ec 0%, #faf8f4 100%);
    border: 1.5px dashed #c4a88260;
    border-radius: 30px;
    padding: 60px 40px;
    text-align: center;
    margin: 40px 0;
}

.placeholder-card .ph-icon {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #c4a882;
    font-size: 2rem;
    box-shadow: 0 20px 30px -10px rgba(196, 168, 130, 0.2);
}

.placeholder-card h3 {
    font-size: 1.6rem;
    color: #2c3a2c;
    font-weight: 500;
    margin-bottom: 14px;
}

.placeholder-card p {
    color: #6a7a6a;
    max-width: 600px;
    margin: 0 auto 24px;
}

/* Progetto card */
.project-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #e8e1d5;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 50px -15px rgba(44, 58, 44, 0.12);
}

.project-card .project-img {
    height: 200px;
    background: #e8e1d5;
    overflow: hidden;
    position: relative;
}

.project-card .project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card .project-status {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255, 255, 255, 0.95);
    color: #2c3a2c;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.project-status.active {
    background: #a8b8a3;
    color: #2c3a2c;
}

.project-status.upcoming {
    background: #c4a88230;
    color: #6a5a4a;
    border: 1px solid #c4a88260;
}

.project-status .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.project-card .project-body {
    padding: 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-card h4 {
    font-size: 1.3rem;
    color: #2c3a2c;
    font-weight: 600;
    margin-bottom: 6px;
}

.project-card .project-loc {
    color: #8a9a8a;
    font-size: 0.9rem;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-card .project-loc i { color: #a8b8a3; }

.project-card p {
    color: #6a7a6a;
    font-size: 0.95rem;
    margin-bottom: 18px;
}

.project-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding-top: 18px;
    margin-top: auto;
    border-top: 1px solid #e8e1d5;
}

.project-stats .ps {
    text-align: center;
}

.project-stats .ps-num {
    font-size: 1.1rem;
    font-weight: 600;
    color: #c4a882;
    line-height: 1.2;
}

.project-stats .ps-lbl {
    font-size: 0.75rem;
    color: #8a9a8a;
    margin-top: 4px;
}

/* ===== LEGAL / DOC PAGES ===== */
.doc-content {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 24px;
    color: #4a5a4a;
    line-height: 1.75;
    font-size: 1rem;
}

.doc-content h2 {
    font-size: 1.6rem;
    font-weight: 500;
    color: #2c3a2c;
    margin: 48px 0 14px;
    padding-top: 12px;
    border-top: 1px solid #e8e1d5;
}

.doc-content h2:first-child {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

.doc-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3a2c;
    margin: 28px 0 10px;
}

.doc-content p,
.doc-content ul,
.doc-content ol {
    margin-bottom: 14px;
}

.doc-content ul,
.doc-content ol {
    padding-left: 22px;
}

.doc-content li {
    margin-bottom: 6px;
}

.doc-content strong {
    color: #2c3a2c;
    font-weight: 600;
}

.doc-content a {
    color: #c4a882;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.doc-content a:hover { color: #a89260; }

.doc-meta {
    background: #faf8f4;
    border-left: 3px solid #c4a882;
    padding: 14px 22px;
    border-radius: 0 14px 14px 0;
    margin: 0 0 32px;
    font-size: 0.92rem;
    color: #6a7a6a;
}

.doc-toc {
    background: white;
    border: 1px solid #e8e1d5;
    border-radius: 20px;
    padding: 24px 28px;
    margin-bottom: 40px;
}

.doc-toc h4 {
    font-size: 0.95rem;
    color: #2c3a2c;
    margin-bottom: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.doc-toc ol {
    list-style: none;
    counter-reset: toc;
    padding: 0;
    margin: 0;
}

.doc-toc li {
    counter-increment: toc;
    margin-bottom: 8px;
}

.doc-toc li::before {
    content: counter(toc) ". ";
    color: #c4a882;
    font-weight: 600;
}

.doc-toc a {
    color: #4a5a4a;
    text-decoration: none;
    transition: color 0.2s;
}

.doc-toc a:hover { color: #c4a882; }

/* ===== INCENTIVE / HIGHLIGHT BOX ===== */
.highlight-box {
    background: linear-gradient(135deg, rgba(168, 184, 163, 0.1) 0%, rgba(196, 168, 130, 0.1) 100%);
    border: 1px solid #c4a88240;
    border-radius: 24px;
    padding: 30px 32px;
    margin: 30px 0;
    display: flex;
    gap: 22px;
    align-items: flex-start;
}

.highlight-box .hb-ico {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c4a882;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 10px 20px -8px rgba(196, 168, 130, 0.3);
}

.highlight-box h4 {
    color: #2c3a2c;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 1.15rem;
}

.highlight-box p {
    color: #4a5a4a;
    font-size: 0.98rem;
    margin: 0;
}

@media (max-width: 600px) {
    .highlight-box {
        flex-direction: column;
        padding: 24px;
    }
}

/* ===== PARTNERSHIP / LOGOS strip ===== */
.partners-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    padding: 30px 20px;
    background: white;
    border-radius: 24px;
    border: 1px solid #e8e1d5;
    margin-top: 30px;
}

.partners-strip .partner {
    color: #8a9a8a;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    opacity: 0.8;
    transition: opacity 0.2s, color 0.2s;
}

.partners-strip .partner:hover {
    opacity: 1;
    color: #c4a882;
}

/* ==========================================================================
   PREMIUM v2 — Nav dropdown extended, mega menu, document cards, partner grid,
   article (post) layout, badges, 404 hero, in-page TOC.
   ========================================================================== */

/* Multiple dropdowns on the same row */
.nav-dropdown-menu.wide {
    min-width: 280px;
}

/* Article (news/blog single post) */
.article-hero {
    padding: 170px 0 50px;
    background: linear-gradient(180deg, #f5f2ec 0%, #faf8f4 100%);
    position: relative;
}

.article-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: #6a7a6a;
    font-size: 0.92rem;
    margin: 22px 0 18px;
    align-items: center;
}

.article-meta-row .dot { width: 4px; height: 4px; border-radius: 50%; background: #c4a882; display: inline-block; }
.article-meta-row .author {
    display: inline-flex; align-items: center; gap: 10px;
    background: white; padding: 6px 14px 6px 6px; border-radius: 50px;
    border: 1px solid #e8e1d5;
}
.article-meta-row .author .avatar {
    width: 28px; height: 28px; border-radius: 50%;
    background: linear-gradient(135deg, #a8b8a3, #c4a882); color: white;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.78rem; font-weight: 600;
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px 40px;
    color: #3a4a3a;
    line-height: 1.85;
    font-size: 1.08rem;
}

.article-body h2 {
    font-size: 1.7rem;
    font-weight: 500;
    color: #2c3a2c;
    margin: 44px 0 14px;
}
.article-body h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3a2c;
    margin: 30px 0 10px;
}
.article-body p { margin-bottom: 18px; }
.article-body a {
    color: #c4a882;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.article-body a:hover { color: #a89260; }
.article-body strong { color: #2c3a2c; font-weight: 600; }
.article-body blockquote {
    border-left: 4px solid #c4a882;
    background: #faf8f4;
    margin: 28px 0;
    padding: 18px 26px;
    border-radius: 0 16px 16px 0;
    color: #4a5a4a;
    font-style: italic;
}
.article-body ul, .article-body ol { margin: 0 0 20px 22px; }
.article-body li { margin-bottom: 8px; }

.article-cover {
    max-width: 900px;
    margin: 0 auto 40px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 50px -20px rgba(44, 58, 44, 0.15);
}
.article-cover img { width: 100%; display: block; }

/* Avatar founders fallback */
.avatar-initials {
    width: 100%;
    height: 100%;
    min-height: 220px;
    background: linear-gradient(135deg, #a8b8a3 0%, #c4a882 100%);
    color: white;
    font-size: 3rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.05em;
}

/* Badge / pill */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #4a5a4a;
    border: 1px solid #e8e1d5;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
}

.pill.success { background: #e8efe5; color: #4a5a4a; border-color: #a8b8a360; }
.pill.gold { background: #c4a88215; color: #6a5a4a; border-color: #c4a88240; }

/* Document / file card (trasparenza) */
.doc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.doc-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: white;
    border: 1px solid #e8e1d5;
    border-radius: 22px;
    padding: 20px 22px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.doc-card:hover {
    transform: translateY(-4px);
    border-color: #c4a88260;
    box-shadow: 0 20px 30px -12px rgba(44, 58, 44, 0.08);
}

.doc-card .doc-ico {
    width: 56px; height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #e8efe5, #f0e7d5);
    color: #c4a882;
    font-size: 1.5rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.doc-card h4 {
    font-size: 1.05rem;
    color: #2c3a2c;
    font-weight: 600;
    margin-bottom: 4px;
}

.doc-card p {
    color: #6a7a6a;
    font-size: 0.88rem;
    margin: 0;
}

.doc-card .doc-arrow {
    margin-left: auto;
    color: #a8b8a3;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.doc-card:hover .doc-arrow { transform: translateX(4px); color: #c4a882; }

@media (max-width: 800px) { .doc-grid { grid-template-columns: 1fr; } }

/* Partner grid premium */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.partner-card {
    background: white;
    border: 1px solid #e8e1d5;
    border-radius: 22px;
    padding: 28px 22px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.partner-card:hover {
    transform: translateY(-6px);
    border-color: #c4a88260;
    box-shadow: 0 25px 40px -15px rgba(44, 58, 44, 0.1);
}

.partner-card .p-logo {
    width: 64px; height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8efe5, #f0e7d5);
    color: #c4a882;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
}

.partner-card h4 {
    font-size: 1.05rem;
    color: #2c3a2c;
    font-weight: 600;
    margin-bottom: 6px;
}

.partner-card p {
    color: #6a7a6a;
    font-size: 0.88rem;
    margin: 0;
}

@media (max-width: 900px) { .partner-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .partner-grid { grid-template-columns: 1fr; } }

/* Banner CTA secondario (per intermezzi) */
.banner-cta {
    background: linear-gradient(135deg, rgba(168, 184, 163, 0.12), rgba(196, 168, 130, 0.12));
    border: 1px solid #c4a88240;
    border-radius: 30px;
    padding: 36px 40px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: center;
    margin: 30px 0;
}

.banner-cta h3 {
    font-size: 1.4rem;
    color: #2c3a2c;
    font-weight: 500;
    margin-bottom: 6px;
}

.banner-cta p {
    color: #4a5a4a;
    margin: 0;
}

@media (max-width: 700px) {
    .banner-cta { grid-template-columns: 1fr; padding: 28px; text-align: center; }
}

/* In-page TOC (right rail) */
.toc-card {
    background: white;
    border: 1px solid #e8e1d5;
    border-radius: 22px;
    padding: 22px 24px;
    position: sticky;
    top: 110px;
}

.toc-card h5 {
    font-size: 0.85rem;
    color: #2c3a2c;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.toc-card ul { list-style: none; }
.toc-card li { margin-bottom: 8px; }
.toc-card a {
    color: #4a5a4a;
    text-decoration: none;
    font-size: 0.95rem;
    border-left: 2px solid transparent;
    padding-left: 12px;
    display: block;
    transition: color 0.2s, border-color 0.2s;
}

.toc-card a:hover, .toc-card a.active {
    color: #c4a882;
    border-color: #c4a882;
}

/* Layout 2 colonne con TOC laterale */
.with-aside {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 50px;
    align-items: flex-start;
}

@media (max-width: 1000px) {
    .with-aside { grid-template-columns: 1fr; }
    .toc-card { position: static; }
}

/* 404 hero */
.error-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 24px 80px;
    background: linear-gradient(180deg, #f5f2ec 0%, #faf8f4 100%);
}

.error-hero .err-num {
    font-size: clamp(6rem, 18vw, 12rem);
    font-weight: 500;
    background: linear-gradient(135deg, #a8b8a3, #c4a882);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 0.9;
    margin-bottom: 16px;
}

.error-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: #2c3a2c;
    font-weight: 500;
    margin-bottom: 16px;
}

.error-hero p {
    color: #6a7a6a;
    max-width: 540px;
    margin: 0 auto 30px;
}

/* Calcolatore / risultato (incentivi) */
.calc-card {
    background: white;
    border-radius: 30px;
    padding: 36px 32px;
    border: 1px solid #e8e1d5;
    box-shadow: 0 30px 50px -20px rgba(44, 58, 44, 0.08);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: center;
    margin-top: 30px;
}

.calc-card .calc-out {
    background: linear-gradient(135deg, #f5f2ec, #faf8f4);
    border-radius: 22px;
    padding: 28px;
    text-align: center;
}

.calc-card .calc-out .label {
    color: #6a7a6a;
    font-size: 0.92rem;
    margin-bottom: 8px;
}

.calc-card .calc-out .big-num {
    font-size: clamp(2.4rem, 5vw, 3.2rem);
    color: #c4a882;
    font-weight: 500;
    line-height: 1;
}

.calc-card .calc-out .sub {
    color: #4a5a4a;
    font-size: 0.92rem;
    margin-top: 10px;
}

@media (max-width: 800px) {
    .calc-card { grid-template-columns: 1fr; padding: 28px 22px; }
}

/* ===== COOKIE BANNER PREMIUM (3 azioni + modale + FAB) ===== */
.cookie-banner {
    position: fixed;
    left: 24px;
    bottom: 24px;
    max-width: 460px;
    background: white;
    border: 1px solid #e8e1d5;
    border-radius: 24px;
    box-shadow: 0 25px 50px -15px rgba(44, 58, 44, 0.25),
                0 10px 25px -10px rgba(0, 0, 0, 0.1);
    padding: 26px 24px;
    z-index: 9999;
    font-size: 0.92rem;
    line-height: 1.55;
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner .cookie-icon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #2c3a2c;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 10px;
}

.cookie-banner .cookie-icon i {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8efe5, #f0e7d5);
    color: #c4a882;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.cookie-banner p {
    color: #4a5a4a;
    margin: 0 0 18px;
}

.cookie-banner p a {
    color: #c4a882;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-banner p a:hover { color: #a89260; }

.cookie-banner .cookie-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cookie-banner button {
    border-radius: 50px;
    padding: 10px 18px;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    border: 1px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.cookie-banner button:hover {
    transform: translateY(-2px);
}

.cookie-banner button.primary {
    background: #a8b8a3;
    color: #2c3a2c;
}

.cookie-banner button.primary:hover {
    background: #9aab95;
    box-shadow: 0 10px 18px -8px rgba(168, 184, 163, 0.4);
}

.cookie-banner button.secondary {
    background: transparent;
    color: #4a5a4a;
    border-color: #e8e1d5;
}

.cookie-banner button.secondary:hover {
    border-color: #c4a882;
    color: #c4a882;
}

.cookie-banner button.link {
    background: transparent;
    color: #c4a882;
    text-decoration: underline;
    text-underline-offset: 3px;
    padding: 10px 6px;
}

.cookie-banner button.link:hover {
    color: #a89260;
}

@media (max-width: 600px) {
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
        padding: 20px 18px;
        border-radius: 20px;
    }
}

/* Modale "Personalizza" */
.cookie-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1.2rem;
}

.cookie-modal.show {
    display: flex;
    animation: cookieFadeIn 0.3s;
}

@keyframes cookieFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cookie-modal-content {
    background: white;
    border-radius: 24px;
    padding: 36px 32px;
    max-width: 540px;
    width: 100%;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-modal-content h2 {
    font-size: 1.6rem;
    color: #2c3a2c;
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.cookie-modal-content > p {
    color: #6a7a6a;
    margin-bottom: 24px;
    line-height: 1.6;
}

.cookie-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid #e8e1d5;
}

.cookie-toggle-row:last-of-type {
    border-bottom: none;
}

.cookie-toggle-row strong {
    display: block;
    color: #2c3a2c;
    font-weight: 600;
    margin-bottom: 4px;
}

.cookie-toggle-row small {
    color: #6a7a6a;
    font-size: 0.85rem;
    line-height: 1.45;
}

/* Toggle switch */
.cookie-switch {
    position: relative;
    flex-shrink: 0;
    width: 48px;
    height: 28px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-switch span {
    position: absolute;
    inset: 0;
    background: #e0d8cc;
    border-radius: 50px;
    transition: background 0.25s;
    cursor: pointer;
}

.cookie-switch span::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s;
}

.cookie-switch input:checked + span {
    background: #a8b8a3;
}

.cookie-switch input:checked + span::before {
    transform: translateX(20px);
}

.cookie-switch input:disabled + span {
    background: #c4a882;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Floating Action Button (riapri preferenze) */
.cookie-fab {
    position: fixed;
    left: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e8e1d5;
    box-shadow: 0 10px 22px -8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    color: #c4a882;
    font-size: 1.25rem;
    z-index: 9998;
    transition: transform 0.25s, box-shadow 0.25s;
}

.cookie-fab.show {
    display: flex;
}

.cookie-fab:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 28px -10px rgba(196, 168, 130, 0.4);
}

@media (max-width: 600px) {
    .cookie-fab {
        left: 12px;
        bottom: 12px;
        width: 44px;
        height: 44px;
    }
}

/* Footer adjustments — 4 cols evenly */
@media (min-width: 1101px) {
    .footer-top.four-cols {
        grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    }
}

/* ===== PAGE TRANSITIONS (fade out al cambio pagina) ===== */
body {
    transition: opacity 0.4s ease;
}

body.page-leaving {
    opacity: 0;
}

/* skip-link a11y */
.skip-link {
    position: absolute;
    top: -42px;
    left: 12px;
    background: #2c3a2c;
    color: white;
    padding: 10px 16px;
    border-radius: 12px;
    z-index: 2001;
    text-decoration: none;
    font-weight: 500;
    transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* Focus visible per a11y */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #c4a882;
    outline-offset: 3px;
}

/* ===== TOAST (form submit) ===== */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    background: #2c3a2c;
    color: #e8e1d5;
    padding: 16px 28px;
    border-radius: 50px;
    font-weight: 500;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    z-index: 2000;
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast i { color: #a8b8a3; }

.toast.show { transform: translateX(-50%) translateY(0); }

/* ==========================================================================
   PREMIUM POLISH LAYER — Tipografia, mobile, safe-area, touch states.
   ========================================================================== */

/* ===== TIPOGRAFIA FLUIDA & SPAZIATURE ===== */
section { padding: var(--section-pad) 0; }

.container,
.container-narrow {
    padding-left: max(var(--container-pad), var(--safe-left));
    padding-right: max(var(--container-pad), var(--safe-right));
}

h1 { letter-spacing: -0.02em; }
h2 { letter-spacing: -0.015em; }
h3 { letter-spacing: -0.01em; }
.section-title { letter-spacing: -0.02em; line-height: 1.15; }
.hero h1 { letter-spacing: -0.025em; }

/* ===== TAP TARGETS / TOUCH STATES ===== */
a, button, input, select, textarea, label.cookie-switch, .menu-toggle {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Tutti i bottoni e link di azione devono avere almeno 44px di area touch */
.btn-primary, .btn-outline, .btn-icon, .nav-cta, .card-link, .news-link {
    min-height: 44px;
}

/* Cursore pointer ovunque sia interattivo */
button, [role="button"], .accordion-trigger {
    cursor: pointer;
}

/* ===== HEADER & NAV — REFINEMENT ===== */
header.site-header {
    padding-top: max(16px, var(--safe-top));
}

/* Su mobile: header compatto di base + ancor più compatto al scroll */
@media (max-width: 1000px) {
    header.site-header { padding: 12px 0; }
    header.site-header.scrolled { padding: 6px 0; }
    header.site-header .logo-img { height: 56px; }
    header.site-header.scrolled .logo-img { height: 42px; }
}

@media (max-width: 600px) {
    header.site-header .logo-img { height: 48px; }
    header.site-header.scrolled .logo-img { height: 38px; }
}

/* ===== MOBILE MENU PREMIUM ===== */
.mobile-menu {
    padding: calc(80px + var(--safe-top)) 28px calc(28px + var(--safe-bottom));
    justify-content: flex-start;
    gap: 2px;
    background: linear-gradient(180deg, rgba(250, 248, 244, 0.98) 0%, rgba(245, 242, 236, 0.98) 100%);
}

.mobile-menu a {
    width: 100%;
    max-width: 380px;
    border-radius: 16px;
    padding: 16px 18px;
    font-size: 1.15rem;
    transition: background 0.2s, color 0.3s, transform 0.3s;
    position: relative;
}

.mobile-menu a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 184, 163, 0.2), transparent);
}

.mobile-menu a:last-child::after { display: none; }

.mobile-menu a:active {
    background: rgba(168, 184, 163, 0.15);
}

.mobile-menu a:hover { color: var(--gold); }

.mobile-menu a i {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(168, 184, 163, 0.15);
    color: var(--sage);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.mobile-menu a.mobile-cta {
    margin-top: 16px;
    padding: 18px 32px;
    background: linear-gradient(135deg, var(--sage), #95a890);
    color: var(--dark);
    border-radius: 50px;
    box-shadow: 0 10px 25px -8px rgba(168, 184, 163, 0.5);
    font-weight: 600;
    justify-content: center;
}

.mobile-menu a.mobile-cta::after { display: none; }

.mobile-menu a.mobile-cta i {
    background: rgba(44, 58, 44, 0.15);
    color: var(--dark);
}

/* ===== HERO MOBILE OPTIMIZATION ===== */
@media (max-width: 768px) {
    .hero { min-height: 90vh; min-height: 90svh; padding: 110px 0 60px; }
    .hero h1 { font-size: clamp(2.1rem, 8vw, 3rem); margin-bottom: 20px; }
    .hero p { font-size: clamp(1rem, 3.5vw, 1.15rem); margin-bottom: 28px; }
    .hero-stats { gap: 12px; margin-top: 36px; }
    .hero-stats .stat-item { padding: 12px 20px; }
    .hero-stats .stat-number { font-size: 1.5rem; }
    .hero-stats .stat-label { font-size: 0.82rem; }
}

@media (max-width: 480px) {
    .hero { padding: 100px 0 50px; }
    .hero .tag { font-size: 0.78rem; padding: 5px 14px; }
    .hero-stats { flex-direction: column; align-items: center; width: 100%; }
    .hero-stats .stat-item { width: 100%; max-width: 280px; }
    .btn-row { width: 100%; flex-direction: column; align-items: stretch; }
    .btn-row .btn-primary,
    .btn-row .btn-outline { justify-content: center; width: 100%; padding: 14px 24px; }
}

/* ===== SUB-HERO MOBILE ===== */
@media (max-width: 768px) {
    .sub-hero { padding: 130px 0 60px; }
    .sub-hero h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); }
    .sub-hero p { font-size: clamp(0.98rem, 2.5vw, 1.1rem); }
    .sub-hero .breadcrumb { font-size: 0.82rem; }
    .sub-hero .btn-row { flex-direction: column; align-items: stretch; }
    .sub-hero .btn-row .btn-primary,
    .sub-hero .btn-row .btn-outline { justify-content: center; }
}

/* ===== CARDS, TIMELINE, INFO STRIP ===== */
@media (max-width: 768px) {
    .card-content { padding: 24px 22px; }
    .card-content h4 { font-size: 1.25rem; }
    .timeline-icon { width: 70px; height: 70px; }
    .timeline-icon i { font-size: 1.9rem; }
    .timeline-number { font-size: 1.5rem; }
}

@media (max-width: 600px) {
    .info-strip { padding: 26px 22px; border-radius: 24px; }
    .info-strip .info .big { font-size: 1.7rem; }
    .info-strip .info .lbl { font-size: 0.85rem; }
}

/* ===== FEATURE ROW MOBILE ===== */
@media (max-width: 900px) {
    .feature-row { gap: 36px; }
    .feature-image { border-radius: 50% 30% 50% 30% / 40% 50% 40% 50%; max-width: 360px; }
    .feature-content h3 { font-size: clamp(1.6rem, 4.5vw, 2rem); }
}

/* ===== BENEFITS TIMELINE ===== */
@media (max-width: 768px) {
    .benefits-timeline { padding: 36px 22px; border-radius: 32px; }
    .benefits-header h3 { font-size: clamp(1.7rem, 5vw, 2rem); }
}

/* ===== QUOTE-FULL ===== */
@media (max-width: 768px) {
    .quote-full { padding: 36px 26px; border-radius: 30px 16px 30px 16px; }
    .quote-full h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
    .quote-full p { font-size: 1rem; }
    .quote-full .btn-row { flex-direction: column; align-items: stretch !important; }
    .quote-full .btn-row .btn-primary,
    .quote-full .btn-row .btn-outline { justify-content: center; }
}

/* ===== SECTIONS BG-CREAM con border-radius ridotto su mobile ===== */
@media (max-width: 768px) {
    .bg-cream[style*="border-radius"] { border-radius: 32px !important; margin: 0 12px !important; }
    section { padding: 56px 0; }
}

/* ===== FORM MOBILE ===== */
@media (max-width: 700px) {
    .form-card { padding: 28px 22px; border-radius: 24px; }
    .form-card h3 { font-size: 1.3rem; }
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* evita zoom su iOS */
        padding: 14px 16px;
    }
    .form-actions { flex-direction: column; }
    .form-actions .btn-primary,
    .form-actions .btn-outline { justify-content: center; width: 100%; }
    .form-step-pill { font-size: 0.85rem; padding: 8px 14px; }
}

/* ===== ACCORDION MOBILE ===== */
@media (max-width: 600px) {
    .accordion-trigger { font-size: 0.98rem; padding: 16px 18px; gap: 12px; }
    .accordion-trigger .acc-ico { font-size: 1rem; }
    .accordion-content-inner { padding: 0 18px 18px 46px; font-size: 0.95rem; }
}

/* ===== FOOTER MOBILE PREMIUM ===== */
@media (max-width: 700px) {
    footer.site-footer {
        padding: 50px 0 0;
        border-radius: 40px 40px 0 0;
        padding-bottom: var(--safe-bottom);
    }
    .footer-top { gap: 36px; padding-bottom: 36px; }
    .footer-tagline { font-size: 1.05rem; }
    .footer-description { font-size: 0.95rem; }
    .footer-links h4,
    .footer-newsletter h4 { margin-bottom: 16px; font-size: 1.05rem; }
    .footer-links li { margin-bottom: 10px; }
    .footer-links a { font-size: 0.93rem; }
    .footer-social { gap: 12px; }
    .footer-social a { width: 38px; height: 38px; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
        font-size: 16px;
        justify-content: center;
    }
    .footer-bottom { padding: 22px 0; gap: 16px; }
    .footer-bottom-links a { font-size: 0.85rem; }
}

/* ===== BACK-TO-TOP MOBILE ===== */
@media (max-width: 600px) {
    .back-to-top {
        width: 46px;
        height: 46px;
        bottom: max(20px, var(--safe-bottom));
        right: max(16px, var(--safe-right));
    }
}

/* ===== CARD ANIMATION SU TOUCH ===== */
@media (hover: none) {
    /* Su dispositivi touch, niente effetto persistente al "hover" */
    .card:hover,
    .value-card:hover,
    .team-card:hover,
    .doc-card:hover,
    .partner-card:hover,
    .contact-card:hover,
    .project-card:hover,
    .news-card:hover { transform: none; box-shadow: 0 20px 30px -10px rgba(44, 58, 44, 0.06); }

    /* Ma diamo un feedback al tap */
    .card:active,
    .value-card:active,
    .team-card:active,
    .doc-card:active,
    .partner-card:active,
    .contact-card:active,
    .news-card:active { transform: scale(0.98); transition: transform 0.15s; }

    /* Niente magnetic buttons su touch */
    .btn-primary:hover, .nav-cta:hover { transform: none; }
}

/* ===== COOKIE BANNER SAFE-AREA ===== */
.cookie-banner {
    bottom: max(24px, calc(var(--safe-bottom) + 12px));
    left: max(24px, var(--safe-left));
}

.cookie-fab {
    bottom: max(24px, calc(var(--safe-bottom) + 12px));
    left: max(24px, var(--safe-left));
}

/* ===== SCROLL PROGRESS — più sottile su mobile ===== */
@media (max-width: 768px) {
    .scroll-progress { height: 2.5px; top: var(--safe-top); }
}

/* ===== TAGS / PILL — più leggibili ===== */
@media (max-width: 600px) {
    .tag { font-size: 0.78rem; padding: 5px 14px; }
}

/* ===== PARTNERS STRIP / GRID ===== */
@media (max-width: 600px) {
    .partners-strip { gap: 24px; padding: 24px 16px; border-radius: 18px; }
    .partners-strip .partner { font-size: 0.95rem; }
}

/* ===== SCROLL SNAP per le card-grid su mobile (effetto carousel) ===== */
@media (max-width: 600px) {
    .reveal .cards-grid > *,
    .reveal .value-grid > *,
    .reveal .team-grid > *,
    .reveal .partner-grid > *,
    .reveal .news-grid > * {
        will-change: auto; /* meno carico su mobile */
    }
}

/* ===== LANDSCAPE PHONE ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero { min-height: 100vh; padding: 90px 0 30px; }
    .hero h1 { font-size: 2rem; margin-bottom: 14px; }
    .hero p { margin-bottom: 18px; font-size: 0.95rem; }
    .hero-stats { margin-top: 22px; flex-direction: row; }
    .mobile-menu { padding-top: 60px; padding-bottom: 20px; }
    .mobile-menu a { font-size: 1rem; padding: 8px 14px; }
}

/* ===== HIGH DENSITY / RETINA TWEAKS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body { -webkit-font-smoothing: subpixel-antialiased; }
    .footer-logo-img,
    .logo-img { image-rendering: -webkit-optimize-contrast; }
}

/* ===== SCROLLBAR PERSONALIZZATA (desktop) ===== */
@media (min-width: 1001px) {
    ::-webkit-scrollbar { width: 10px; height: 10px; }
    ::-webkit-scrollbar-track { background: var(--cream); }
    ::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, var(--sage), var(--gold));
        border-radius: 10px;
        border: 2px solid var(--cream);
    }
    ::-webkit-scrollbar-thumb:hover { background: var(--gold); }
    /* Firefox */
    html { scrollbar-color: var(--sage) var(--cream); scrollbar-width: thin; }
}

/* ===== SELECTION COLOR ===== */
::selection { background: rgba(196, 168, 130, 0.35); color: var(--dark); }
::-moz-selection { background: rgba(196, 168, 130, 0.35); color: var(--dark); }

/* ===== UTILITY: scroll-margin sui breadcrumb / anchor jumps ===== */
section[id], [id^="step-"] { scroll-margin-top: 100px; }

/* ===== DARK MODE rispetto preferenze utente (palette adattata) ===== */
@media (prefers-color-scheme: dark) {
    /* Solo barra status, non cambia tutto il sito (mantieni cream-light) */
    /* Se in futuro volessi dark mode completo, ti basta override su body */
}

/* ===== DESKTOP ULTRA-WIDE ===== */
@media (min-width: 1600px) {
    .container { max-width: 1400px; }
    .hero h1 { font-size: 5rem; }
    .section-title { font-size: 3.2rem; }
}

/* ==========================================================================
   WOW LAYER — Effetti cinematici, glow, parallax sottile, page-load orchestration.
   ========================================================================== */

/* ===== ANIMATED GRADIENT MESH (sfondo body sottile) ===== */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 15% 25%, rgba(168, 184, 163, 0.10), transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(196, 168, 130, 0.08), transparent 45%),
        radial-gradient(circle at 60% 10%, rgba(168, 184, 163, 0.06), transparent 50%);
    z-index: -1;
    animation: meshFloat 18s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes meshFloat {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(2%, -1%) scale(1.03); }
    100% { transform: translate(-1%, 2%) scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
    body::before { animation: none; }
}

/* ===== HERO TEXT REVEAL CINEMATICO ===== */
.hero h1 {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 50%, #f0e7d5 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero h1 strong {
    background: linear-gradient(135deg, #d4ba8e 0%, #c4a882 50%, #a8946d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    position: relative;
    display: inline-block;
}

.hero h1 strong::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #c4a882, transparent);
    animation: underlineGrow 2s 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes underlineGrow {
    to { width: 100%; }
}

/* ===== HERO HOME — particle dots floating ===== */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.35), transparent),
        radial-gradient(1px 1px at 60% 70%, rgba(196, 168, 130, 0.6), transparent),
        radial-gradient(2px 2px at 80% 20%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1.5px 1.5px at 30% 80%, rgba(168, 184, 163, 0.6), transparent),
        radial-gradient(1px 1px at 70% 45%, rgba(255, 255, 255, 0.4), transparent);
    background-size: 100% 100%;
    z-index: 2;
    pointer-events: none;
    animation: particlesFloat 25s linear infinite;
    opacity: 0.7;
}

@keyframes particlesFloat {
    0%   { transform: translateY(0) translateX(0); }
    50%  { transform: translateY(-20px) translateX(10px); }
    100% { transform: translateY(0) translateX(0); }
}

/* ===== CTA GLOW PREMIUM ===== */
.btn-primary {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.45) 50%,
        transparent 100%);
    transition: left 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

.btn-primary:hover::before {
    left: 100%;
}

.nav-cta {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.nav-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent);
    transform: translateX(-100%);
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-cta:hover::before { transform: translateX(100%); }

/* ===== CARDS — bordo gradient sottile al hover ===== */
.card,
.value-card,
.team-card,
.contact-card,
.doc-card,
.partner-card,
.news-card,
.project-card,
.faq-item {
    position: relative;
    isolation: isolate;
}

.card::before,
.value-card::before,
.team-card::before,
.contact-card::before,
.doc-card::before,
.partner-card::before,
.news-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, var(--sage), var(--gold));
    -webkit-mask:
        linear-gradient(white 0 0) content-box,
        linear-gradient(white 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: 1;
}

.card:hover::before,
.value-card:hover::before,
.team-card:hover::before,
.contact-card:hover::before,
.doc-card:hover::before,
.partner-card:hover::before,
.news-card:hover::before {
    opacity: 1;
}

/* ===== IMAGE ZOOM ELEGANTE su card ===== */
.card-img img,
.news-card .news-img img,
.project-card .project-img img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card:hover .card-img img,
.news-card:hover .news-img img,
.project-card:hover .project-img img {
    transform: scale(1.08);
    filter: brightness(1.05) saturate(1.1);
}

/* ===== TIMELINE ICONS — pulse sottile ===== */
.timeline-icon {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-icon::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1.5px dashed rgba(196, 168, 130, 0.35);
    animation: pulseRing 3s ease-in-out infinite;
}

.timeline-item:hover .timeline-icon { transform: translateY(-5px) scale(1.05); }

@keyframes pulseRing {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50%      { transform: scale(1.1); opacity: 0.2; }
}

/* ===== VALUE-ICON glow al hover ===== */
.value-icon {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.value-card:hover .value-icon,
.step:hover .value-icon,
.card:hover .value-icon {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 12px 28px -10px rgba(196, 168, 130, 0.5);
}

/* ===== NUMBER COUNTER PREP — fluido durante l'animazione ===== */
[data-counter] {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* ===== PAGE-LOAD ORCHESTRATION ===== */
@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

body:not(.page-leaving) {
    animation: pageFadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== TAG PILL — shimmer sottile ===== */
.tag {
    position: relative;
    overflow: hidden;
}

.tag::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: translateX(-100%);
}

.tag:hover::before { animation: shimmer 1.2s; }

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

/* ===== SECTION DIVIDER decorativo (curva morbida ad arco) ===== */
.bg-cream[style*="border-radius"] {
    position: relative;
}

/* ===== FOOTER — glow alla CTA ===== */
.footer-tagline {
    background: linear-gradient(135deg, var(--gold), #e0c498);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ===== SOCIAL ICONS — pulse al hover ===== */
.footer-social a {
    position: relative;
    overflow: visible;
}

.footer-social a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--gold);
    transform: scale(1);
    opacity: 0;
    z-index: -1;
    transition: transform 0.4s, opacity 0.4s;
}

.footer-social a:hover::after {
    transform: scale(1.5);
    opacity: 0;
    animation: socialPulse 0.6s;
}

@keyframes socialPulse {
    0%   { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* ===== LOGO — sottile bobbing al hover ===== */
.logo-area:hover .logo-img {
    transform: scale(1.05) rotate(-2deg);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo-img { transition: transform 0.4s; }

/* ===== ACCORDION PREMIUM ===== */
.accordion-item {
    transform: scale(1);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.accordion-item.open {
    transform: scale(1.005);
}

/* ===== BTN ICON (contact) — pulse al hover ===== */
.btn-icon {
    position: relative;
}

.btn-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid var(--sage);
    opacity: 0;
}

.btn-icon:hover::after {
    animation: btnIconRing 0.8s;
}

@keyframes btnIconRing {
    0%   { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ===== SECTION TITLE — animated underline =====
   Il titolo resta block (default H2) → il .tag sopra di lui resta su riga separata.
   L'underline appare centrato sotto il titolo grazie a position absolute + transform. */
.section-title {
    position: relative;
    padding-bottom: 14px;
}

.text-center .section-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--sage), var(--gold));
    border-radius: 2px;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.8s 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.text-center.reveal.active .section-title::after,
.text-center .reveal.active .section-title::after,
.reveal.active.text-center .section-title::after {
    transform: translateX(-50%) scaleX(1);
}


/* ===== STATS COUNTER — glow morbido ===== */
.stat-number,
.info-strip .info .big,
.timeline-number {
    background: linear-gradient(135deg, var(--gold), #e0c498);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-stats .stat-item {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.3s;
}

.hero-stats .stat-item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.18);
}

/* ===== STEP — barra di progresso laterale ===== */
.step {
    position: relative;
}

.step::before {
    content: "";
    position: absolute;
    left: 0;
    top: 24px;
    bottom: 24px;
    width: 3px;
    background: linear-gradient(180deg, var(--sage), var(--gold));
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.4s;
}

.step:hover::before { opacity: 1; }

/* ===== BREADCRUMB → polish ===== */
.breadcrumb a {
    position: relative;
    transition: color 0.2s;
}

.breadcrumb a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s;
}

.breadcrumb a:hover::after { width: 100%; }

/* ===== ENTRY ANIMATIONS PER HERO PARALLAX ===== */
.hero-content {
    transition: transform 0.1s linear;
}

/* ===== FORM FIELD FOCUS — glow ===== */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    background: white;
    box-shadow: 0 0 0 4px rgba(196, 168, 130, 0.15);
    outline: none;
}

/* ===== ACCORDION CHEVRON — animation più morbida ===== */
.acc-chevron { transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); }

/* ===== Riduzione effetti su prefers-reduced-motion ===== */
@media (prefers-reduced-motion: reduce) {
    body::before,
    .hero::before,
    .timeline-icon::before,
    .footer-social a::after,
    .btn-icon::after,
    .hero h1 strong::after { animation: none !important; }
}

/* ==========================================================================
   iubenda — nascondi il banner default (usiamo il nostro custom)
   ========================================================================== */
#iubenda-cs-banner,
.iubenda-cs-container,
#iub-cs-container,
#iubenda-iframe,
.iub-cs-container,
.iubenda-tp-btn,
[id^="iubenda-cs"],
[class^="iub-cs"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
