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

:root {
    --navy: #0c1a3a;
    --navy-mid: #162850;
    --navy-light: #1e3565;
    --gold: #c9a227;
    --gold-light: #d4af37;
    --gold-dark: #b8941f;
    --text: #1e293b;
    --text-muted: #64748b;
    --bg: #f8fafc;
    --bg-card: #ffffff;
    --bg-alt: #f1f5f9;
    --border: #e2e8f0;
    --shadow: 0 4px 20px rgba(12, 26, 58, 0.08);
    --shadow-lg: 0 20px 50px rgba(12, 26, 58, 0.14);
    --icon-bg: #e8f0fa;
    --icon-color: #1e3565;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.65;
    color: var(--text);
    background-color: var(--bg);
    overflow-x: hidden;
}

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

.loading-sections,
.error-sections {
    text-align: center;
    padding: 4rem 24px;
    color: var(--text-muted);
}

.error-sections {
    color: #b91c1c;
}

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--navy);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
    padding: 0 24px;
}

.nav-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-decoration: none;
}

.nav-brand-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.nav-brand-sub {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.75rem;
    align-items: center;
}

.nav-link {
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #fff;
}

.nav-link.active {
    color: #fff;
}

.nav-link::after {
    display: none;
}

.nav-link.nav-cta {
    background: var(--gold);
    color: var(--navy) !important;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-link.nav-cta:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==================== SEZIONI COMUNI ==================== */
.section {
    padding: 3.5rem 0;
    min-height: auto;
}

.section > .container {
    width: 100%;
}

.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--gold);
    margin-bottom: 0.85rem;
    text-align: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
    line-height: 1.2;
    text-align: center;
}

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

.section-intro {
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    text-align: center;
}

.section-header {
    width: 100%;
    text-align: center;
    margin-bottom: 1rem;
    display: block;
}

.section-header .section-eyebrow,
.section-header .section-title,
.section-header .section-intro {
    text-align: center;
    width: 100%;
}

.section-header .section-intro {
    margin-left: auto;
    margin-right: auto;
    max-width: 600px;
}

/* ==================== HOME / HERO ==================== */
.home-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: #fff;
    background: var(--navy);
    padding-top: 72px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-bg picture {
    position: absolute;
    inset: 0;
    display: block;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    right: 0;
    width: 105%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0.90;
    transform: translateX(20%);
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--navy) 35%, rgba(12, 26, 58, 0.6) 70%, rgba(12, 26, 58, 0.3) 100%);
    pointer-events: none;
}

.home-section .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 72px);
    justify-content: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

@media (max-width: 768px) {
    .hero-bg-img {
        opacity: 0.55;
    }
    .home-section .hero-content {
        text-align: center;
        max-width: 100%;
    }
    .home-section .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .home-section .hero-cta {
        justify-content: center;
    }
    .home-section .hero-eyebrow {
        text-align: left;
    }
    .home-section .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem 2rem;
        justify-items: center;
        text-align: center;
    }
    .home-section .hero-stats .stat {
        align-items: center;
        min-width: 0;
    }
}

.hero-content {
    max-width: 700px;
    animation: fadeInUp 0.8s ease;
}

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: #fff;
}

.hero-content h1 .highlight {
    color: var(--gold);
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 540px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0;
}

/* Stats in fondo all'hero */
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: auto;
    padding-top: 3rem;
    padding-bottom: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.15rem;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-dot {
    width: 28px;
    height: 44px;
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    position: relative;
}

.scroll-dot::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--gold);
    border-radius: 2px;
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollDot {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(10px); opacity: 0.3; }
}

/* ==================== PROBLEMA BAR ==================== */
.problema-bar {
    background: var(--bg-card);
    padding: 4rem 0;
    border-bottom: 1px solid var(--border);
}

.problema-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.problema-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--bg);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.problema-item:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.problema-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(201, 162, 39, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.problema-item h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.35rem;
}

.problema-item p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: all 0.25s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-gold {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
    font-weight: 700;
}

.btn-gold:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 162, 39, 0.35);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-light:hover {
    border-color: #fff;
    color: #fff;
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
    font-weight: 700;
}

.btn-primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 162, 39, 0.3);
}

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

.btn-outline:hover {
    background: var(--navy);
    color: #fff;
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* ==================== IL METODO ==================== */
/* Sopra e sotto il pannello: bianco */
.metodo-section {
    background: #fff;
    color: var(--navy);
    padding: 2.5rem 0 2.75rem;
    position: relative;
    overflow-x: hidden;
}

.metodo-container {
    max-width: 1200px;
    margin: 0 auto;
}

.metodo-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 0;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid rgba(12, 26, 58, 0.12);
}

.metodo-section .section-eyebrow {
    color: var(--gold);
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    margin-bottom: 0.75rem;
}

.metodo-section .section-title {
    color: var(--navy);
    font-size: clamp(1.75rem, 3.2vw, 2.15rem);
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

.metodo-section .section-intro {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.55;
    margin-bottom: 0;
}

/* Indicatore “continua qui”: freccia verso il blocco navy */
.metodo-flow-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.1rem 0 0.4rem;
    color: var(--gold);
}

.metodo-flow-indicator svg {
    display: block;
    animation: metodo-flow-bounce 2s ease-in-out infinite;
}

@keyframes metodo-flow-bounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(4px); opacity: 0.85; }
}

/* Sfondo navy da bordo a bordo (tra inizio e fine del blocco metodo) */
.metodo-timeline-wrap {
    position: relative;
    padding: 2rem 1.5rem 2.25rem;
    background: var(--navy);
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    box-sizing: border-box;
    overflow: hidden;
}

/* Striscia dorata sopra il pannello card */
.metodo-timeline-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent 5%, var(--gold) 50%, transparent 95%);
    opacity: 0.95;
}

/* Striscia dorata sotto il pannello card */
.metodo-timeline-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent 5%, var(--gold) 50%, transparent 95%);
    opacity: 0.95;
}

/* Griglia: ogni numero nella sua colonna con la card sopra o sotto (zig-zag) */
.metodo-hz {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto auto;
    max-width: 1140px;
    margin: 0 auto;
    gap: 0;
    column-gap: 0;
    row-gap: 0;
}

/* Card sopra e sotto: altezza in base al contenuto, niente scroll */
.metodo-hz-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0 0.35rem;
    min-width: 0;
    box-sizing: border-box;
}

.metodo-hz-card.metodo-hz-bottom {
    justify-content: flex-start;
}

.metodo-hz-card.metodo-hz-empty {
    min-height: 40px;
    visibility: hidden;
}

.metodo-hz-card:not(.metodo-hz-empty) {
    background: rgba(22, 40, 80, 0.95);
    border: 1px solid rgba(201, 162, 39, 0.5);
    border-radius: 16px;
    padding: 1.1rem 1.1rem;
    margin: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.metodo-hz-card:not(.metodo-hz-empty):hover {
    background: rgba(28, 50, 95, 0.98);
    border-color: var(--gold);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.metodo-hz-card h3 {
    font-family: var(--font-heading);
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--gold);
    margin: 0 0 0.5rem 0;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(201, 162, 39, 0.45);
    line-height: 1.28;
    text-align: center;
    flex-shrink: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

.metodo-hz-card p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.5;
    margin: 0;
    text-align: center;
    word-break: break-word;
}

.metodo-hz-card strong {
    color: var(--gold);
    font-weight: 700;
}

/* Riga centrale: striscia dorata = fine card 1 e 3, card 2 e 4 partono da qui */
.metodo-hz-connector {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.15rem 0;
    flex-shrink: 0;
}

.metodo-hz-line {
    flex: 1;
    height: 3px;
    background: linear-gradient(90deg, rgba(201, 162, 39, 0.25), var(--gold) 20%, var(--gold) 80%, rgba(201, 162, 39, 0.25));
    border-radius: 2px;
}

.metodo-hz-number {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    background: linear-gradient(145deg, #d4af37, var(--gold) 50%, #b8962e);
    color: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    z-index: 1;
    border: 1px solid rgba(70, 65, 60, 0.6);
    box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.2),
                0 4px 12px rgba(201, 162, 39, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metodo-hz-connector:hover .metodo-hz-number {
    transform: scale(1.08);
    box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.3),
                0 6px 20px rgba(201, 162, 39, 0.45),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.metodo-vt {
    display: none;
}

/* --- Timeline Verticale (Mobile) --- */
@media (max-width: 992px) {
    .metodo-section {
        padding: 2.5rem 0 2.75rem;
    }
    .metodo-header {
        margin-bottom: 0;
        padding: 0 0.5rem;
    }
    .metodo-section .section-title {
        font-size: 1.65rem;
    }
    .metodo-hz {
        display: none;
    }
    .metodo-section .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    .metodo-vt {
        display: flex;
        flex-direction: column;
        gap: 1.15rem;
        max-width: 540px;
        margin: 0 auto;
    }
    .metodo-vt-step {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    .metodo-vt-number {
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        background: linear-gradient(145deg, #d4af37, var(--gold) 50%, #b8962e);
        color: var(--navy);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: var(--font-heading);
        font-size: 1rem;
        font-weight: 800;
        z-index: 1;
        border: 1px solid rgba(70, 65, 60, 0.6);
        box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.2),
                    0 3px 10px rgba(201, 162, 39, 0.3),
                    inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    .metodo-vt-card {
        background: rgba(22, 40, 80, 0.95);
        border: 1px solid rgba(201, 162, 39, 0.5);
        border-radius: 16px;
        padding: 1.1rem 1.1rem;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    }
    .metodo-vt-card h3 {
        font-family: var(--font-heading);
        font-size: 1.1rem;
        font-weight: 800;
        color: var(--gold);
        margin-bottom: 0.5rem;
        padding-bottom: 0.4rem;
        border-bottom: 1px solid rgba(201, 162, 39, 0.45);
        line-height: 1.28;
        text-align: center;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        word-break: break-word;
    }
    .metodo-vt-card p {
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.82);
        line-height: 1.52;
        margin: 0;
        text-align: center;
        word-break: break-word;
    }
    .metodo-vt-card strong {
        color: var(--gold);
    }
    .metodo-cta {
        margin-top: 0.85rem;
        padding-top: 0.85rem;
    }
}

@media (max-width: 480px) {
    .metodo-section {
        padding: 2rem 0 2.5rem;
    }
    .metodo-header {
        margin-bottom: 0;
    }
    .metodo-section .section-title {
        font-size: 1.4rem;
    }
    .metodo-vt {
        gap: 1rem;
    }
    .metodo-vt-number {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }
    .metodo-vt-card {
        padding: 0.9rem 0.95rem;
        border-radius: 10px;
    }
    .metodo-vt-card h3 {
        font-size: 1.05rem;
    }
    .metodo-vt-card p {
        font-size: 0.85rem;
        line-height: 1.5;
        text-align: center;
    }
    .metodo-cta {
        margin-top: 0.75rem;
        padding-top: 0.8rem;
    }
    .metodo-cta p {
        font-size: 0.9rem;
    }
}

.metodo-cta {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(12, 26, 58, 0.1);
}

.metodo-cta p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.98rem;
    line-height: 1.5;
}

.metodo-cta .btn {
    min-width: 220px;
}

/* ==================== CHI SIAMO ==================== */
.about-section {
    background: var(--bg-card);
    position: relative;
}

.about-section::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
}

.about-section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

/* Allineato a team-card: stesso font e colori dei partner */
.about-text-block .section-eyebrow.left {
    margin-bottom: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold-dark);
}

.about-text-block .section-title {
    margin-bottom: 0.35rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
}

.about-lead {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.about-text-block p.about-lead {
    color: var(--navy);
}

.about-text-block p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 0;
}

.about-text-block p + p {
    margin-top: 0.5em;
}

.about-values {
    list-style: none;
    margin: 1rem 0 1.5rem;
}

.about-values li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.about-text-block .value-icon {
    color: var(--gold-dark);
    font-size: 0.5rem;
}

.about-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.about-visual {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.about-image-wrap {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    flex: 1;
    min-height: 280px;
    height: 100%;
}

.about-image-wrap picture {
    display: block;
    width: 100%;
    height: 100%;
}

.about-image-wrap img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
}

.about-card {
    background: linear-gradient(155deg, var(--navy) 0%, var(--navy-mid) 100%);
    border-radius: 12px;
    padding: 2.5rem;
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.about-quote {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.95);
}

.about-sign {
    font-size: 0.9rem;
    color: var(--gold);
    letter-spacing: 0.05em;
}

/* ==================== TEAM PARTNER ==================== */
.team-partners {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
}

.team-partners-header {
    text-align: center;
    margin-bottom: 2rem;
}

.team-partners-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
}

.team-partners-intro {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.team-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(201, 162, 39, 0.25);
}

.team-card-photo {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--navy);
}

.team-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.4s ease;
}

.team-card:hover .team-card-photo img {
    transform: scale(1.03);
}

.team-card-body {
    padding: 1.75rem;
}

.team-card-role {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold-dark);
    margin-bottom: 0.5rem;
}

.team-card-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.team-card-spec {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--navy-mid);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.team-card-bio {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
}

@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .team-partners {
        margin-top: 3rem;
        padding-top: 3rem;
    }

    .team-partners-title {
        font-size: 1.65rem;
    }

    .team-card-photo {
        height: 240px;
    }
}

/* ==================== SERVIZI ==================== */
.services-section {
    background: var(--bg);
    padding: 3.5rem 0;
}

.servizi-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.servizi-header .section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.2vw, 2.35rem);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.85rem;
    padding-bottom: 0.5rem;
    line-height: 1.25;
    border-bottom: 3px solid var(--gold);
    display: inline-block;
}

.servizi-header .section-intro {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Carousel servizi */
.servizi-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.servizi-carousel-viewport {
    overflow: hidden;
}

.servizi-gruppi.servizi-carousel-track {
    display: flex;
    gap: 1.75rem;
    margin: 0;
    transition: transform 0.35s ease-out;
    will-change: transform;
}

.servizi-carousel-track .servizi-card {
    flex: 0 0 calc((100% - 3.5rem) / 3);
    min-width: 0;
}

.servizi-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background: var(--bg-card);
    color: var(--navy);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    box-shadow: var(--shadow);
}

.servizi-carousel-btn:hover {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}

.servizi-carousel-prev { left: -64px; }
.servizi-carousel-next { right: -64px; }

.servizi-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.servizi-carousel-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--border);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.servizi-carousel-dots button:hover {
    background: var(--gold);
}

.servizi-carousel-dots button.active {
    background: var(--gold);
    transform: scale(1.2);
}

@media (min-width: 769px) {
    .servizi-carousel-dots button:nth-child(n+5) {
        display: none;
    }
}

.servizi-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    box-shadow: var(--shadow);
    transition: box-shadow 0.25s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
}

.servizi-card:hover {
    box-shadow: 0 12px 32px rgba(12, 26, 58, 0.12);
    transform: translateY(-2px);
}

.servizi-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--icon-bg);
    color: var(--icon-color);
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.servizi-card-icon svg {
    flex-shrink: 0;
}

/* Icone colorate come in riferimento: oro/marrone, blu, azzurro */
.servizi-gruppi > .servizi-card:nth-child(1) .servizi-card-icon {
    background: #f5e6c8;
    color: #8b6914;
}
.servizi-gruppi > .servizi-card:nth-child(2) .servizi-card-icon {
    background: #d4e4f7;
    color: #1e5a9e;
}
.servizi-gruppi > .servizi-card:nth-child(3) .servizi-card-icon {
    background: #e0eef9;
    color: #1e3565;
}
.servizi-gruppi > .servizi-card:nth-child(4) .servizi-card-icon {
    background: #c8e6e0;
    color: #0d6b5c;
}
.servizi-gruppi > .servizi-card:nth-child(5) .servizi-card-icon {
    background: #e8e0f0;
    color: #5c4d7a;
}
.servizi-gruppi > .servizi-card:nth-child(6) .servizi-card-icon {
    background: #f0e8d4;
    color: #9a7b2e;
}

.servizi-card-titolo {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gold);
    line-height: 1.35;
    text-align: center;
}

.servizi-card-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.servizi-card .servizi-lista {
    list-style: none;
    margin: 0 0 1.25rem 0;
    padding: 0;
}

.servizi-card .servizi-lista li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
    color: #52636d;
    font-weight: 500;
    line-height: 1.5;
}

.servizi-card .servizi-lista li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 5px;
    height: 5px;
    background: var(--gold);
    border-radius: 50%;
}

.servizi-card .servizi-lista li:last-child {
    margin-bottom: 0;
}

.servizi-card-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: auto;
    transition: color 0.2s ease, gap 0.2s ease;
}

.servizi-card-link:hover {
    color: var(--gold-dark);
    gap: 0.5rem;
}

.servizi-cta {
    text-align: center;
    margin-top: 2.5rem;
}

.servizi-cta .btn {
    min-width: 200px;
}

@media (max-width: 992px) {
    .servizi-carousel-track .servizi-card {
        flex: 0 0 calc((100% - 1.75rem) / 2);
    }
    .servizi-carousel-prev { left: -52px; }
    .servizi-carousel-next { right: -52px; }
}

@media (max-width: 768px) {
    .servizi-carousel-btn {
        display: none;
    }
}

@media (max-width: 640px) {
    .servizi-carousel-track .servizi-card {
        flex: 0 0 100%;
    }
}

@media (max-width: 480px) {
    .services-section {
        padding: 3rem 0;
    }
    .servizi-header {
        margin-bottom: 2rem;
    }
    .servizi-card {
        padding: 1.5rem 1.25rem;
    }
    .servizi-card-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 1rem;
    }
    .servizi-card-icon svg {
        width: 24px;
        height: 24px;
    }
    .servizi-card-titolo {
        font-size: 1rem;
    }
    .servizi-card-desc {
        font-size: 0.85rem;
    }
}

/* ==================== RISULTATI / CASI ==================== */
.risultati-section {
    background: var(--bg-alt);
    padding: 3.5rem 0;
}

.risultati-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.75rem;
    margin-bottom: 2rem;
}

/* Carousel risultati (portfolio) */
.risultati-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.risultati-carousel-viewport {
    overflow: hidden;
}

.risultati-carousel-track {
    display: flex;
    gap: 1.75rem;
    margin: 0;
    transition: transform 0.35s ease-out;
    will-change: transform;
}

.risultati-carousel-track .risultato-card {
    flex: 0 0 calc((100% - 3.5rem) / 3);
    min-width: 0;
}

.risultati-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background: var(--bg-card);
    color: var(--navy);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    box-shadow: var(--shadow);
}

.risultati-carousel-btn:hover {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}

.risultati-carousel-prev { left: -64px; }
.risultati-carousel-next { right: -64px; }

.risultati-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.risultati-carousel-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--border);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.risultati-carousel-dots button:hover {
    background: var(--gold);
}

.risultati-carousel-dots button.active {
    background: var(--gold);
    transform: scale(1.2);
}

@media (min-width: 769px) {
    .risultati-carousel-dots button:nth-child(n+5) {
        display: none;
    }
}

@media (max-width: 992px) {
    .risultati-carousel-track .risultato-card {
        flex: 0 0 calc((100% - 1.75rem) / 2);
    }
    .risultati-carousel-prev { left: -52px; }
    .risultati-carousel-next { right: -52px; }
}

@media (max-width: 768px) {
    .risultati-carousel-btn {
        display: none;
    }
}

@media (max-width: 640px) {
    .risultati-carousel-track .risultato-card {
        flex: 0 0 100%;
    }
}

.risultato-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.risultato-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.risultato-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.risultato-badge {
    display: inline-block;
    background: rgba(12, 26, 58, 0.06);
    color: var(--navy);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 1.25rem;
}

.risultato-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    padding: 1.25rem;
    background: var(--bg);
    border-radius: 12px;
}

.risultato-from,
.risultato-to {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.risultato-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.risultato-amount {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
}

.risultato-amount.negative {
    color: #dc2626;
}

.risultato-amount.positive {
    color: #16a34a;
}

.risultato-arrow {
    font-size: 1.25rem;
    color: var(--gold);
    font-weight: 700;
    flex-shrink: 0;
}

.risultato-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.risultato-tag {
    display: inline-block;
    background: rgba(201, 162, 39, 0.12);
    color: var(--gold-dark);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 0;
}

.risultato-card-link {
    display: block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
    text-decoration: none;
    text-align: center;
    background: rgba(201, 162, 39, 0.08);
    border: 1px solid rgba(201, 162, 39, 0.35);
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.risultato-card-link:hover {
    color: var(--gold-dark);
    background: rgba(201, 162, 39, 0.14);
    border-color: var(--gold);
}

.risultati-disclaimer {
    text-align: center;
    padding: 1.5rem 2rem;
    background: rgba(220, 38, 38, 0.04);
    border: 1px solid rgba(220, 38, 38, 0.12);
    border-radius: 12px;
    margin-bottom: 3rem;
}

.risultati-disclaimer p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.risultati-cta {
    text-align: center;
    background: var(--navy);
    color: #fff;
    padding: 3rem;
    border-radius: 20px;
}

.risultati-cta h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.risultati-cta p {
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
    line-height: 1.6;
}

/* ==================== TESTIMONIANZE ==================== */
.testimonianze-section {
    background: var(--bg-card);
    padding: 3.5rem 0;
}

.testimonianze-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.75rem;
    margin-bottom: 2rem;
}

.testimonianza-card {
    background: var(--bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.testimonianza-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(201, 162, 39, 0.25);
}

.testimonianza-stars {
    color: var(--gold);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.testimonianza-text {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonianza-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.testimonianza-avatar {
    width: 44px;
    height: 44px;
    background: var(--navy);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.testimonianza-name {
    font-weight: 700;
    color: var(--navy);
    font-size: 0.92rem;
}

.testimonianza-role {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.testimonianze-disclaimer {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 0;
}

.testimonianze-disclaimer p {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

/* --- Recensioni Google carousel (testimonianze) - stile Google --- */
.testimonianze-reviews-wrap {
    margin-bottom: 2.5rem;
    text-align: center;
}

.testimonianze-section .reviews-google-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 24px;
    padding: 0.5rem 1.25rem;
    margin-bottom: 1.5rem;
    text-decoration: none;
    color: #3c4043;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
}

.testimonianze-section .reviews-google-badge:hover {
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 2px 6px rgba(60, 64, 67, 0.12);
}

.testimonianze-section .reviews-carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 1rem;
}

.testimonianze-section .reviews-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 1rem;
    padding: 0.5rem 0.25rem 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.testimonianze-section .reviews-carousel::-webkit-scrollbar {
    display: none;
}

.testimonianze-section .reviews-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background: var(--bg-card);
    color: var(--navy);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    box-shadow: var(--shadow);
}

.testimonianze-section .reviews-carousel-btn:hover {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}

.testimonianze-section .reviews-carousel-prev { left: -64px; visibility: hidden; }
.testimonianze-section .reviews-carousel-next { right: -64px; }

.testimonianze-section .reviews-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.testimonianze-section .reviews-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--border);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.testimonianze-section .reviews-carousel-dot:hover {
    background: var(--gold);
}

.testimonianze-section .reviews-carousel-dot.active {
    background: var(--gold);
    transform: scale(1.2);
}

/* Card recensione - layout tipo Google */
.testimonianze-section .review-card {
    flex: 0 0 calc(100% - 1rem);
    min-width: 0;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.08);
    border: 1px solid #e8eaed;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    position: relative;
    overflow: hidden;
}

.testimonianze-section .review-card:hover {
    box-shadow: 0 4px 12px rgba(60, 64, 67, 0.12);
    border-color: #dadce0;
}

@media (min-width: 600px) {
    .testimonianze-section .review-card {
        flex: 0 0 calc(50% - 0.5rem);
    }
}

@media (min-width: 900px) {
    .testimonianze-section .review-card {
        flex: 0 0 calc(33.333% - 0.7rem);
    }
}

/* Intestazione: avatar + nome/stelle/dettagli */
.testimonianze-section .review-top {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.testimonianze-section .review-avatar-wrap {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f3f4;
}

.testimonianze-section .review-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.testimonianze-section .review-avatar-placeholder {
    width: 100%;
    height: 100%;
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5f6368;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-body);
}

.testimonianze-section .review-meta {
    flex: 1;
    min-width: 0;
}

/* Nome e stelle sulla stessa riga (come Google) */
.testimonianze-section .review-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.15rem;
}

.testimonianze-section .review-author {
    font-weight: 700;
    font-size: 0.9375rem;
    color: #202124;
    font-family: var(--font-body);
}

.testimonianze-section .review-stars {
    color: #FBBC05;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    line-height: 1;
}

/* Riga sotto: data · metadata · Nuova */
.testimonianze-section .review-details {
    font-size: 0.75rem;
    color: #5f6368;
    line-height: 1.4;
}

.testimonianze-section .review-details .review-badge-new {
    font-size: 0.7rem;
    color: #137333;
    font-weight: 500;
    background: #e6f4ea;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

/* Testo recensione */
.testimonianze-section .review-text {
    color: #3c4043;
    font-size: 0.875rem;
    line-height: 1.5;
    flex: 1;
    min-height: 0;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer "Scritta su Google" */
.testimonianze-section .review-source {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: #5f6368;
    margin-top: auto;
    padding-top: 0.75rem;
    flex-shrink: 0;
}

.testimonianze-section .review-source svg {
    flex-shrink: 0;
}

.testimonianze-section .reviews-view-all-wrap {
    text-align: center;
    margin-top: 1.5rem;
}

.testimonianze-section .reviews-view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    background: var(--gold);
    color: #fff !important;
    text-decoration: none;
    border-radius: 24px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(201, 162, 39, 0.35);
}

.testimonianze-section .reviews-view-all-link:hover {
    background: var(--gold-dark);
    box-shadow: 0 6px 20px rgba(201, 162, 39, 0.4);
}

@media (max-width: 992px) {
    .testimonianze-section .reviews-carousel-prev { left: -52px; }
    .testimonianze-section .reviews-carousel-next { right: -52px; }
}

@media (max-width: 768px) {
    .testimonianze-section .reviews-carousel-btn {
        display: none;
    }
}

/* ==================== FAQ ==================== */
.faq-section {
    background: var(--bg);
    padding: 3.5rem 0;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto 3rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(201, 162, 39, 0.3);
}

.faq-item.open {
    border-color: var(--gold);
    box-shadow: var(--shadow);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    gap: 1rem;
}

.faq-question h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
}

.faq-toggle {
    width: 32px;
    height: 32px;
    background: rgba(12, 26, 58, 0.06);
    color: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.faq-item.open .faq-toggle {
    background: var(--gold);
    color: var(--navy);
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.faq-cta {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.faq-cta p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

/* ==================== CONTATTI ==================== */
.contact-section {
    background: var(--navy);
    color: #fff;
}

.contact-section .section-title {
    color: #fff;
}

.contact-section .section-eyebrow {
    color: var(--gold);
}

.contact-section .section-intro {
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.contact-section .section-eyebrow,
.contact-section .section-title {
    text-align: center;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    line-height: 1.5;
}

.contact-note {
    margin-top: 0.5rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-note p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
}

/* Ancore contatti: offset per navbar fissa (anche scroll nativo con hash nell’URL) */
#contatti {
    scroll-margin-top: 80px;
}

.contact-form-anchor {
    scroll-margin-top: 80px;
}

.contact-form {
    background: #fff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    color: var(--text);
}

.form-feedback {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}
.form-feedback-ok {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.form-feedback-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(12, 26, 58, 0.12);
}

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

.form-privacy {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}
.form-privacy a {
    color: var(--gold);
    text-decoration: none;
}
.form-privacy a:hover {
    text-decoration: underline;
}
.contact-section .form-privacy {
    color: rgba(255, 255, 255, 0.7);
}
.contact-section .form-privacy a {
    color: var(--gold-light);
}

/* Privacy checkbox (contatti) */
.form-privacy-checkbox {
    margin-bottom: 1.25rem;
}
.form-privacy-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text);
}
.form-privacy-label input[type="checkbox"] {
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.2rem;
    accent-color: var(--gold);
    cursor: pointer;
}
.form-privacy-text {
    flex: 1;
}
/* Il form contatti ha sfondo bianco: testo scuro e link azzurro */
.contact-form .form-privacy-label {
    color: var(--text);
}
.contact-form .form-privacy-label input[type="checkbox"] {
    accent-color: var(--gold);
}
.contact-form .form-privacy-text a {
    color: #5ba3e8;
    text-decoration: none;
}
.contact-form .form-privacy-text a:hover {
    text-decoration: underline;
    color: #3b82c7;
}

/* ==================== COOKIE BANNER ==================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--navy);
    color: #fff;
    padding: 1rem 24px 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    z-index: 998;
    transition: transform 0.35s ease, opacity 0.35s ease;
}
.cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}
.cookie-banner a {
    color: var(--gold);
    text-decoration: underline;
}
.cookie-banner a:hover {
    color: var(--gold-light);
}
.cookie-banner-btn {
    background: var(--gold);
    color: var(--navy);
    border: none;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease;
}
.cookie-banner-btn:hover {
    background: var(--gold-light);
}
.cookie-banner.cookie-banner--hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}
html.cookie-consented .cookie-banner {
    display: none !important;
}

/* ==================== WHATSAPP FLOATING ==================== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
}

/* ==================== FOOTER ==================== */
.footer {
    background: #060e1f;
    color: #fff;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-section h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-section h4 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
    color: var(--gold);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    font-size: 0.95rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--gold);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.footer-social-link {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6) !important;
    transition: all 0.2s ease;
}
.footer-social-link svg {
    flex-shrink: 0;
}

.footer-social-link:hover {
    background: var(--gold);
    color: var(--navy) !important;
}

.footer-contact-info {
    font-size: 0.88rem !important;
    color: rgba(255, 255, 255, 0.5) !important;
}

.footer-cta {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 10px 22px;
    background: var(--gold);
    color: var(--navy);
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.footer-cta:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
    color: var(--navy);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: var(--gold);
}

.footer-disclaimer {
    max-width: 700px;
    margin: 0 auto 0.75rem;
    font-size: 0.75rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.3);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1100px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-visual {
        order: -1;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .problema-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-stats {
        gap: 2rem;
    }

    .risultati-grid {
        grid-template-columns: 1fr;
    }

    .testimonianze-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 72px;
        flex-direction: column;
        background: var(--navy);
        width: 100%;
        text-align: center;
        padding: 2rem 0;
        transition: 0.3s ease;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link.nav-cta {
        margin: 0 2rem;
        display: block;
    }

    .section {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-intro {
        margin-bottom: 2rem;
    }


    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 1.5rem 2.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .problema-grid {
        grid-template-columns: 1fr;
    }

    .metodo-timeline::before {
        display: none;
    }

    .metodo-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .metodo-checklist li {
        text-align: left;
    }

    .risultati-cta {
        padding: 2rem 1.5rem;
    }

    .about-buttons {
        flex-direction: column;
    }

    .about-buttons .btn {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .section-title {
        font-size: 1.85rem;
    }

    .hero-stats {
        gap: 1.25rem 2rem;
    }

    .stat-num {
        font-size: 1.5rem;
    }

    .nav-brand-name {
        font-size: 1.1rem;
    }

    .risultato-numbers {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .risultato-arrow {
        transform: rotate(90deg);
    }

    .whatsapp-float {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 52px;
        height: 52px;
    }

    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }

    .faq-question h3 {
        font-size: 1rem;
    }
}
