/* ===== Design Stitch – Eretum holding ===== */
:root {
    --primary: #18181b;
    --primary-hover: rgba(24, 24, 27, 0.9);
    --accent: #f5c518;
    --accent-hover: #e0af00;
    --navy-900: #18181b;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --white: #ffffff;
    --max-w: 80rem;
    --px-mobile: 1.5rem;
    --px-desktop: 5rem;
    --section-margin-x: 1.25rem;
    --navbar-height: 88px; /* offset per contenuti sticky sotto la navbar fixed */
}
@media (min-width: 768px) {
    :root {
        --section-margin-x: 2.5rem;
    }
}

*, *::before, *::after { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}
body {
    margin: 0;
    overflow-x: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--navy-900);
    background: var(--white);
}
.min-h-screen { min-height: 100vh; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }

.container {
    max-width: 100%; /* le sezioni possono occupare tutta la larghezza */
    margin: 0 auto;
    padding-left: var(--px-mobile);
    padding-right: var(--px-mobile);
}
@media (min-width: 768px) {
    .container {
        padding-left: var(--px-desktop);
        padding-right: var(--px-desktop);
    }
}

/* Contenuto delle sezioni (sotto la hero) con larghezza limitata */
.section .container,
.newsletter .container,
.footer .container {
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
@media (min-width: 768px) {
    .section .container,
    .newsletter .container,
    .footer .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: -0.7rem 0;
    border-bottom: 1px solid transparent;
    background-color: transparent;
    color: #ffffff;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}
.navbar--scrolled,
.navbar.is-open {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: var(--slate-200);
    box-shadow: 0 10px 30px rgba(24, 24, 27, 0.08);
    color: var(--navy-900);
}
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1140px;
    margin: 0 auto;
    position: relative;
    z-index: 60; /* logo + hamburger sempre sopra al pannello menu */
}

/* Barra sotto la navbar: Unisciti a noi, SR | IN, social – visibile solo con menu aperto */
.navbar-bar {
    display: none;
    width: 100%;
    background: #18181b;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(248, 250, 252, 0.95);
}
.navbar.is-open .navbar-bar {
    display: block;
}
.navbar-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0.5rem var(--px-mobile);
    gap: 1rem;
}
@media (min-width: 768px) {
    .navbar-bar-inner {
        padding: 0.6rem var(--px-desktop);
    }
}
/* Animated arrow CTA "Unisciti a noi" (navbar-bar) */
.navbar-bar .animated-arrow {
    --arrow-color: rgba(248, 250, 252, 0.95);
    --arrow-hover: #fff;
    --text-arrow-space: 12px;
    --shaft-width: 1px;
    --newshaft-width: 48px;
    --shaft-thickness: 1px;
    --arrow-head-width: 6px;
    display: inline-flex;
    align-items: center;
    color: var(--arrow-color);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    transition: color 0.2s;
    box-sizing: content-box;
}
.navbar-bar .animated-arrow:hover {
    color: var(--arrow-hover);
}
.navbar-bar .animated-arrow .the-arrow {
    width: var(--shaft-width);
    transition: all 0.2s;
}
.navbar-bar .animated-arrow .the-arrow .shaft {
    background-color: currentColor;
    display: block;
    height: var(--shaft-thickness);
    position: relative;
    transition: all 0.2s;
    transition-delay: 0;
    will-change: transform;
}
.navbar-bar .animated-arrow .the-arrow .shaft::before,
.navbar-bar .animated-arrow .the-arrow .shaft::after {
    background-color: currentColor;
    content: '';
    display: block;
    height: var(--shaft-thickness);
    position: absolute;
    top: 0;
    right: 0;
    transition: all 0.2s;
    transition-delay: 0;
}
.navbar-bar .animated-arrow .the-arrow .shaft::before { transform-origin: top right; }
.navbar-bar .animated-arrow .the-arrow .shaft::after { transform-origin: bottom right; }

.navbar-bar .animated-arrow .the-arrow.\-left {
    position: absolute;
    top: 60%;
    left: 0;
}
.navbar-bar .animated-arrow .the-arrow.\-left .shaft {
    width: 0;
}
.navbar-bar .animated-arrow .the-arrow.\-left .shaft::before,
.navbar-bar .animated-arrow .the-arrow.\-left .shaft::after { width: 0; }
.navbar-bar .animated-arrow .the-arrow.\-left .shaft::before { transform: rotate(0); }
.navbar-bar .animated-arrow .the-arrow.\-left .shaft::after { transform: rotate(0); }

.navbar-bar .animated-arrow .the-arrow.\-right {
    top: -1px;
}
.navbar-bar .animated-arrow .the-arrow.\-right .shaft {
    width: var(--shaft-width);
    transition-delay: 0.2s;
}
.navbar-bar .animated-arrow .the-arrow.\-right .shaft::before,
.navbar-bar .animated-arrow .the-arrow.\-right .shaft::after {
    width: var(--arrow-head-width);
    transition-delay: 0.3s;
    transition: all 0.5s;
}
.navbar-bar .animated-arrow .the-arrow.\-right .shaft::before { transform: rotate(40deg); }
.navbar-bar .animated-arrow .the-arrow.\-right .shaft::after { transform: rotate(-40deg); }

.navbar-bar .animated-arrow:hover .the-arrow.\-left .shaft {
    width: var(--newshaft-width);
    transition-delay: 0.1s;
}
.navbar-bar .animated-arrow:hover .the-arrow.\-left .shaft::before,
.navbar-bar .animated-arrow:hover .the-arrow.\-left .shaft::after {
    width: var(--arrow-head-width);
    transition-delay: 0.1s;
}
.navbar-bar .animated-arrow:hover .the-arrow.\-left .shaft::before { transform: rotate(40deg); }
.navbar-bar .animated-arrow:hover .the-arrow.\-left .shaft::after { transform: rotate(-40deg); }

.navbar-bar .animated-arrow .main {
    display: flex;
    align-items: center;
    transition: all 0.2s;
    margin-left: var(--shaft-width);
}
.navbar-bar .animated-arrow .main .text {
    margin: 0 var(--text-arrow-space) 0 0;
    line-height: 1;
}
.navbar-bar .animated-arrow .main .the-arrow { position: relative; }

.navbar-bar .animated-arrow:hover .main {
    transform: translateX(calc(var(--newshaft-width) + var(--text-arrow-space)));
}
.navbar-bar .animated-arrow:hover .main .the-arrow.\-right .shaft {
    width: 0;
    transform: translateX(200%);
    transition-delay: 0;
}
.navbar-bar .animated-arrow:hover .main .the-arrow.\-right .shaft::before,
.navbar-bar .animated-arrow:hover .main .the-arrow.\-right .shaft::after {
    width: 0;
    transition-delay: 0;
    transition: all 0.1s;
}
.navbar-bar .animated-arrow:hover .main .the-arrow.\-right .shaft::before { transform: rotate(0); }
.navbar-bar .animated-arrow:hover .main .the-arrow.\-right .shaft::after { transform: rotate(0); }
.navbar-bar-lang {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: rgba(248, 250, 252, 0.9);
}
.navbar-bar-lang {
    margin-left: auto;
    margin-right: auto;
}
.navbar-bar-lang-flag {
    display: inline-block;
    width: 18px;
    height: auto;
    border-radius: 2px;
}
.navbar-bar-lang-link {
    color: inherit;
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.2s ease, color 0.2s ease;
}
.navbar-bar-lang-link:hover {
    opacity: 1;
    color: #fff;
}
.navbar-bar-lang-link.is-active {
    opacity: 1;
    color: #fff;
}
.navbar-bar-lang-sep {
    opacity: 0.6;
}
.navbar-bar-social {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.navbar-bar-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}
.navbar-bar-social-link:hover {
    color: #fff;
    opacity: 0.9;
}
.navbar-bar-social-link svg {
    width: 18px;
    height: 18px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    margin-left: -5.2rem;
}
.site-logo-image {
    display: block;
    width: 180px;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    transform: scale(1.52);
    transform-origin: left center;
    transition: filter 0.25s ease;
}
/* Home top: navbar trasparente -> logo bianco */
.navbar:not(.navbar--scrolled):not(.is-open) .site-logo-image {
    filter: brightness(0) invert(1);
}
.logo-icon {
    width: 2rem;
    height: 2rem;
    background: var(--primary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}
.logo-text {
    color: inherit;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.025em;
    text-transform: uppercase;
}
.nav-main {
    display: none; /* la navigazione visibile è solo tramite hamburger */
}
.nav-link {
    color: inherit;
    text-decoration: none;
    font-size: 0.9375rem; /* leggermente più grande */
    font-weight: 600;
    transition: color 0.2s;
}
.nav-link:hover { color: var(--accent); }
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Hamburger Menu (McButton) */
.McButton {
    position: relative;
    display: inline-flex;
    width: 1.75rem; /* ~28px */
    height: 1.25rem; /* ~20px */
    cursor: pointer;
    color: inherit;
    z-index: 60; /* resta sempre visibile sopra il pannello menu */
}
.McButton b {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 9999px;
    background-color: currentColor;
    transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease, bottom 0.3s ease;
}
.McButton b:nth-child(1) {
    top: 0;
}
.McButton b:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}
.McButton b:nth-child(3) {
    bottom: 0;
}
.McButton.active b:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}
.McButton.active b:nth-child(2) {
    opacity: 0;
}
.McButton.active b:nth-child(3) {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

.nav-mobile {
    position: relative;
    width: 100%;
    padding: 1.5rem 1.5rem 2.5rem 1.5rem;
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
}
.nav-extended {
    position: fixed;
    top: 4.5rem;
    left: 0;
    right: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    transform: translateY(-100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
}
.nav-extended .nav-mobile,
.nav-extended .navbar-bar {
    pointer-events: auto;
}
.nav-extended .navbar-bar {
    display: block;
    opacity: 0;
    transition: opacity 0.15s ease;
}
.navbar.is-open .nav-extended .navbar-bar {
    opacity: 1;
}
.navbar.is-open .nav-extended {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.3s ease, visibility 0s linear 0s;
}
.navbar.is-open .nav-extended {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.3s ease, visibility 0s linear 0s;
}
.nav-mobile-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    transform: translateX(-56px);
    margin-top: 1.2rem; /* mobile: "Chi siamo" più distante dal logo */
}
.nav-mobile-link {
    color: var(--navy-900);
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.nav-mobile-link:hover {
    color: var(--accent-hover);
}
.nav-mobile-media {
    margin-top: 0.5rem;
    position: relative;
    max-width: 620px;
    transform: translateX(-24px);
    display: none;
}
.nav-mobile-text {
    position: absolute;
    inset: 1.4rem 1.6rem auto 1.6rem;
    z-index: 1;
    color: rgba(248, 250, 252, 0.96);
    font-size: 0.85rem;
    line-height: 1.7;
    font-weight: 500;
    height: 230.4375px;
    max-width: 260px;
}
.nav-mobile-image {
    display: block;
    width: 520px;
    max-width: 100%;
    height: 260px;
    border-radius: 1.6rem;
    object-fit: cover;
    box-shadow: 0 20px 50px rgba(24, 24, 27, 0.35);
}
.nav-mobile-media::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 1.6rem;
    background: linear-gradient(135deg, rgba(24,24,27,0.6), rgba(24,24,27,0.35));
    pointer-events: none;
}

/* Scroll reveal (usato anche per il testo del processo) */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
@media (min-width: 768px) {
    .nav-mobile {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
    }
    .nav-mobile-links {
        align-items: flex-start;
        transform: translateX(-32px);
    }
    .nav-mobile-media {
        margin-right: 3rem; /* margine a destra dell'immagine così risulta più a sinistra nel blocco centrato */
        transform: translateX(-32px);
        display: block;
    }

}

@media (max-width: 767px) {
    .logo {
        /* Su telefono evitiamo che il logo esca dal viewport a sinistra */
        margin-left: -1.9rem;
    }
    .site-logo-image {
        transform: scale(1.32);
        transform-origin: left center;
    }
}
.btn-mobile-cta {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    width: 100%;
    padding: 9rem 0 10rem;
    display: flex;
    align-items: center;
    color: var(--white);
    background-image:
        linear-gradient(to right,
            rgba(24, 24, 27, 1) 0%,
            rgba(24, 24, 27, 0.95) 25%,
            rgba(24, 24, 27, 0.8) 50%,
            rgba(24, 24, 27, 0.5) 75%,
            rgba(24, 24, 27, 0.25) 100%),
        url("../img/media/bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
@media (min-width: 1024px) {
    .hero { padding: 10rem 0 12rem; }
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 42rem;
    margin: 0;
    text-align: left;
}
@media (min-width: 1024px) {
    .hero-content {
        /* 27" ~ 40rem percepiti, ma resta allineato al logo navbar */
        margin-left: clamp(0rem, calc((100vw - 1300px) / 2), 42rem);
    }
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border-radius: 9999px;
    background: rgba(245, 197, 24, 0.16) !important; /* stesso colore del testo ma più trasparente */
    border: 1px solid rgb(245 197 24 / 1);
    color: rgb(245 197 24 / 1);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1rem; /* meno spazio sotto il badge */
}
.hero-badge-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #18181b;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    50% { opacity: 0.6; }
}
.hero-title {
    color: var(--white);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05; /* linee più vicine tra loro */
    letter-spacing: -0.025em;
    margin: 0 0 0.7rem; /* meno spazio sotto il titolo */
}
@media (min-width: 1024px) {
    .hero-title {
        white-space: nowrap;
    }
}
.hero-title .text-accent {
    color: rgb(245 197 24 / 1);
}
.hero-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    line-height: 1.7;
    margin: 0 0 1.6rem; /* meno spazio tra descrizione e bottoni */
    max-width: 34rem;
}
@media (min-width: 768px) {
    .hero-desc { font-size: 1.2rem; margin-bottom: 2.25rem; }
}
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
}
.hero-buttons .btn-accent {
    background: rgb(245 197 24 / 1);
    color: #000000;
    box-shadow: 0 4px 14px rgba(245, 197, 24, 0.4);
}
.hero-buttons .btn-accent:hover {
    background: #ffffff; /* interno bianco */
    color: #000000;      /* testo nero */
}
.btn-outline-hero {
    background: transparent;
    color: #ffffff; /* testo bianco di default */
    border: 1px solid rgba(148, 163, 184, 1) !important; /* bordo grigio pieno */
}
.btn-outline-hero:hover {
    background: rgba(24, 24, 27, 0.85);
    color: var(--white);
    border-color: rgba(148, 163, 184, 1); /* bordo resta grigio anche in hover */
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    height: 3.5rem;
    padding: 0 2rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover {
    transform: scale(1.02);
}
.btn:active {
    transform: scale(0.98);
}
.btn-primary {
    background: var(--primary);
    color: var(--white);
}

/* ===== Section common ===== */
.section {
    padding: 6rem 0;
}

.section-label {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin: 0 0 1rem;
}
.section-title {
    color: var(--navy-900);
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 1.5rem;
}
@media (min-width: 768px) {
    .section-title { font-size: 3rem; }
}

/* ===== About ===== */
.about { background: var(--white); }
.about-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    align-items: flex-start;
}
@media (min-width: 1024px) {
    .about-grid {
        flex-direction: row;
        gap: 4rem;
    }
}
.about-title {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
    .about-title { font-size: 3rem; }
}
.about-desc {
    color: var(--slate-600);
    font-size: 1.125rem;
    line-height: 1.75;
    margin: 0 0 2rem;
}
.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--slate-100);
    border-bottom: 1px solid var(--slate-100);
    perspective: 400px;
}
.about-stat-value {
    display: block;
    font-size: 2.25rem;
    font-weight: 900;
    margin-bottom: 0.25rem;
    transform-origin: center bottom;
    backface-visibility: hidden;
}
.about-stat-value.stat-roll {
    animation: stat-roll-in 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes stat-roll-in {
    0% {
        opacity: 0;
        transform: rotateX(-75deg);
    }
    100% {
        opacity: 1;
        transform: rotateX(0);
    }
}
.about-stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-500);
}
.about-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .about-cards {
        grid-template-columns: 1fr 1fr;
    }
}
.about-card {
    padding: 2.5rem;
    border-radius: 1rem;
    background: var(--slate-50);
    border: 1px solid var(--slate-100);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.about-card:hover {
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(24, 24, 27, 0.1);
}
.about-card-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    background: rgba(245, 197, 24, 0.1);
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: 28px 28px;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.35s ease;
}
.about-card:hover .about-card-icon {
    transform: scale(1.08);
}
.about-card-icon-shield {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5c518' stroke-width='2'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
}
.about-card-icon-eye {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5c518' stroke-width='2'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}
.about-card-icon-bulb {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5c518' stroke-width='2'%3E%3Cpath d='M9 18h6'/%3E%3Cpath d='M10 22h4'/%3E%3Cpath d='M15.09 14c.2-.98.65-1.74 1.17-2.5A4.65 4.65 0 0018 8 6 6 0 006 8c0 1 .23 2.23 1.5 3.5A4.61 4.61 0 019 14'/%3E%3C/svg%3E");
}
.about-card-icon-leaf {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5c518' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 19H4.815a1.83 1.83 0 0 1-1.57-.881 1.785 1.785 0 0 1-.004-1.784L7.196 9.5'/%3E%3Cpath d='M11 19h8.203a1.83 1.83 0 0 0 1.556-.89 1.784 1.784 0 0 0 0-1.775l-1.226-2.12'/%3E%3Cpath d='m14 16-3 3 3 3'/%3E%3Cpath d='M8.293 13.596 7.196 9.5 3.1 10.598'/%3E%3Cpath d='m9.344 5.811 1.093-1.892A1.83 1.83 0 0 1 11.985 3a1.784 1.784 0 0 1 1.546.888l3.943 6.843'/%3E%3Cpath d='m13.378 9.633 4.096 1.098 1.097-4.096'/%3E%3C/svg%3E");
}
.about-card h3 {
    color: var(--navy-900);
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
}
.about-card p {
    color: var(--slate-600);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

/* ===== Policy pages (privacy & cookie) ===== */
.policy-page {
    background: var(--slate-50);
}
.policy-container {
    max-width: 820px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem 3rem;
    box-shadow: 0 24px 60px rgba(24, 24, 27, 0.15);
}
@media (min-width: 768px) {
    .policy-container {
        padding: 3rem 3rem 3.5rem;
    }
}
.policy-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}
.policy-header-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.25);
    position: relative;
}
.policy-header-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 1.75rem;
    height: 1.75rem;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 1.75rem 1.75rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318181b' stroke-width='2'%3E%3Crect x='4' y='10' width='16' height='10' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 018 0v3'/%3E%3Ccircle cx='12' cy='15' r='1.5'/%3E%3C/svg%3E");
}
.policy-header-icon-cookie::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5c518' stroke-width='2'%3E%3Cpath d='M21 12a9 9 0 11-9-9 3 3 0 003 3 3 3 0 003 3 3 3 0 003 3z'/%3E%3Ccircle cx='10' cy='8' r='0.9'/%3E%3Ccircle cx='8' cy='13' r='0.9'/%3E%3Ccircle cx='14' cy='15' r='0.9'/%3E%3C/svg%3E");
}
.policy-label {
    margin: 0 0 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--slate-500);
}
.policy-title {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
    .policy-title {
        font-size: 2.5rem;
    }
}
.policy-subtitle {
    font-size: 1.1rem;
    margin-top: 2.25rem;
    margin-bottom: 0.75rem;
    color: var(--navy-900);
    display: flex;
    align-items: center;
}
.policy-subtitle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 9999px;
    margin-right: 0.6rem;
    background: rgba(148, 163, 184, 0.16);
    color: var(--primary);
    flex-shrink: 0;
}
.policy-subtitle-icon svg {
    width: 1.1rem;
    height: 1.1rem;
}
.policy-page .about-desc,
.policy-page ul.about-desc {
    font-size: 0.98rem;
    line-height: 1.8;
    color: var(--slate-600);
    margin: 0 0 1.2rem;
}
.policy-page ul.about-desc {
    padding-left: 1.25rem;
    list-style: disc;
}
.policy-page ul.about-desc li + li {
    margin-top: 0.35rem;
}

/* ===== Portfolio ===== */
.portfolio { background: var(--slate-50); }
.portfolio-members.portfolio {
    background: transparent;
    overflow: visible;
}

/* Portfolio members carousel */
.portfolio-members .container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    overflow: visible;
}
.members-hero {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    color: var(--white);
    box-shadow: 0 25px 60px rgba(24, 24, 27, 0.35);
    height: 46rem;          /* hero più alto */
    display: flex;
    align-items: stretch;
}
@media (max-width: 767px) {
    .members-hero {
        border-radius: 0;
        height: 28rem;      /* hero più alto anche su mobile */
    }
}
.members-hero-media {
    position: absolute;
    inset: 0;
}
.members-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 38%; /* focus generale più alto */
    display: block;
}
/* Focus immagine Edilizia verso destra (hero e card) */
.members-hero-image[src*="Edilizia"] {
    object-position: 30% 35%;
}
.members-hero-info {
    position: relative;
    z-index: 1;
    margin-left: auto;          /* pannello agganciato a destra */
    margin-right: 0;
    width: 50%;                 /* metà destra dello schermo */
    max-width: none;
    height: 100%;
    padding: 2.25rem 2rem 2.75rem;  /* leggermente più su il blocco */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Maschera blu: metà destra piena, poi sfuma verso l'immagine */
    background: linear-gradient(to left,
        rgba(24, 24, 27, 1) 0%,
        rgba(24, 24, 27, 1) 55%,
        rgba(24, 24, 27, 0.85) 75%,
        rgba(24, 24, 27, 0.0) 100%);
}
@media (min-width: 1024px) {
    .members-hero-info {
        width: 50%;
        padding: 3rem 3rem;
    }
}
@media (max-width: 767px) {
    .members-hero-info {
        margin: 0;
        width: 100%;
        background: linear-gradient(to top,
            rgba(24, 24, 27, 0.98) 0%,
            rgba(24, 24, 27, 0.9) 40%,
            rgba(24, 24, 27, 0.75) 70%,
            rgba(24, 24, 27, 0.45) 90%,
            rgba(24, 24, 27, 0.0) 100%);
    }
}
.members-hero-title {
    color: #ffffff;
    font-size: 3.4rem;      /* titolo più grande */
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: 2rem;
}
.members-hero-text {
    margin: 0 0 3rem;
    font-size: 1.06rem;      /* testo un po' più grande */
    line-height: 1.72;
    max-width: 32rem;
    font-weight: 600;       /* testo semi-bold */
    color: rgba(241, 245, 249, 0.9);
}
.members-hero-arrows {
    display: flex;
    align-items: center;
    gap: 3rem;
}
.members-mobile-carousel {
    display: none;
}
.members-arrow {
    width: auto;
    height: auto;
    border-radius: 0;
    border: none;
    background: transparent;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    line-height: 0;          /* evita spazio extra che sposta l’area cliccabile */
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.members-arrow-icon {
    display: block;
    width: 5rem;
    height: auto;
    object-fit: contain;
    vertical-align: middle;  /* allinea l’icona all’area cliccabile */
    filter: brightness(0) invert(1); /* icone bianche su sfondo blu */
}
.members-arrow:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.members-carousel {
    position: relative;
    /* Spazio verticale abbondante così le card (anche quella ingrandita) non vengono mai tagliate */
    padding-top: 11rem;
    padding-bottom: 4rem;
    min-height: 22rem;
    margin-top: -17rem; /* più in alto: carousel a cavallo della parte bassa dell'hero */
    z-index: 10;        /* sopra l'hero ma sotto la navbar (z-index: 50) */
    overflow-x: hidden;
    overflow-y: visible;
    pointer-events: none;    /* i click passano attraverso: le frecce (sotto) restano cliccabili */
}
@media (max-width: 767px) {
    .members-carousel {
        margin-top: -10rem;
        padding-top: 8rem;
        min-height: 20rem;
    }
}
.members-carousel-track {
    display: flex;
    gap: 1.25rem;
    overflow: visible;
    padding: 0.25rem 0.25rem 0.5rem 16rem;
    margin-top: -5.5rem; /* track più in alto così le card risultano più in alto */
    will-change: transform;
    transition: transform 0.35s ease;
    pointer-events: auto;     /* track e card ricevono di nuovo i click */
}
.members-card {
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 10px 30px rgba(24, 24, 27, 0.12);
    width: 240px;
    max-height: 190px;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-align: left;
    transform-origin: center bottom;
    transform: scaleY(0.82); /* schiacciata un po' di più */
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        max-height 0.25s ease;
}
.members-card:first-child {
    margin-left: 0.25rem;
}
.members-card:last-child {
    margin-right: 0.25rem;
}
a.members-card {
    text-decoration: none;
    color: inherit;
}
.members-card-media {
    height: 120px;
    overflow: hidden;
}
.members-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 38%; /* focus generale più alto */
    display: block;
    transition: transform 0.4s ease;
}
.members-card:first-child .members-card-media img {
    object-position: 30% 35%; /* Edilizia: focus più alto e verso sinistra */
}
.members-card-body {
    padding: 0.85rem 1rem 1rem;
}
.members-card-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 0.35rem;
}
/* Tag "Edilizia" (prima card) in arancione */
.members-card:first-child .members-card-tag {
    color: #18181b;
}
.members-card-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy-900);
}
.members-card-logo {
    display: block;
    height: 48px;
    max-width: none;
    width: auto;
    object-fit: contain;
}
@media (max-width: 767px) {
    .members-hero {
        height: auto;
        min-height: 48rem;
        background-image: url('../img/media/development.jpg');
        background-size: cover;
        background-position: center 30%; /* mobile: focus più alto */
        background-repeat: no-repeat;
    }
    .members-hero-media {
        display: none;
    }
    .members-hero-info {
        padding: 2.5rem 1.25rem 3rem;
        height: 100%;
        min-height: 48rem;
        justify-content: flex-start;
        background: linear-gradient(180deg, rgba(24, 24, 27, 0.74) 0%, rgba(24, 24, 27, 0.88) 100%);
    }
    .members-hero-title {
        font-size: 2.2rem;
        margin-bottom: 1.15rem;
    }
    .members-hero-text {
        margin-bottom: 1.5rem;
        max-width: 100%;
    }
    .members-carousel-desktop,
    .members-hero-arrows {
        display: none;
    }
    .members-mobile-carousel {
        display: block;
        width: 100%;
        margin-top: 0.25rem;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        overflow: hidden;
    }
    .members-mobile-track {
        display: flex;
        gap: 0.9rem;
        transform: translateX(0);
        transition: transform 0.35s ease;
        will-change: transform;
        padding-bottom: 0.35rem;
    }
    .members-mobile-card {
        flex: 0 0 clamp(200px, 55vw, 250px);
        min-height: 115px;
        border: 1px solid rgba(148, 163, 184, 0.45);
        border-radius: 1rem;
        background: #ffffff;
        color: var(--navy-900);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        text-align: left;
        gap: 0.4rem;
        padding: 0.95rem 1rem;
        text-decoration: none;
        box-shadow: 0 10px 30px rgba(24, 24, 27, 0.12);
        transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    }
    .members-mobile-card.is-active {
        border-color: rgba(230, 126, 34, 0.65);
        transform: translateY(-2px);
        box-shadow: 0 14px 24px rgba(24, 24, 27, 0.26);
    }
    .members-mobile-tag {
        display: inline-block;
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #18181b;
        margin-bottom: 0.25rem;
    }
    .members-mobile-card:nth-child(2) .members-mobile-tag,
    .members-mobile-card:nth-child(3) .members-mobile-tag {
        color: #18181b;
    }
    .members-mobile-logo {
        width: 100%;
        height: 100%;
        max-height: 92px;
        display: block;
        object-fit: contain;
    }
    .members-mobile-name {
        font-size: 0.95rem;
        font-weight: 700;
        line-height: 1.3;
        color: var(--navy-900);
    }
    .members-mobile-arrows {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1.75rem;
        margin-top: 1.15rem;
        position: relative;
        z-index: 3;
    }
    .members-mobile-arrows .members-arrow {
        pointer-events: auto;
        width: auto;
        height: auto;
        min-width: 0;
        min-height: 0;
        border-radius: 0;
        background: transparent;
        touch-action: manipulation;
    }
    .members-mobile-arrows .members-arrow-icon {
        width: 5rem;
    }
}
@media (min-width: 768px) {
    .members-mobile-carousel {
        display: none;
    }
}

/* ===== Process section (Il nostro processo di analisi) ===== */
.process-section {
    position: relative;
    padding: 96px 0;
    background: var(--primary);
    color: #fff;
}
@media (min-width: 768px) {
    .process-section { padding: 140px 0; }
}

/* Due colonne editoriali: immagine a sinistra, contenuto a destra (stile "Architecture of Nature") */
#featured-projects .process-container {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}
@media (min-width: 1024px) {
    #featured-projects .process-container {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
        gap: 6rem;
        align-items: start;
    }
}

/* Colonna immagine */
.process-figure {
    position: relative;
    margin: 0;
    border-radius: 1.5rem;
    overflow: hidden;
}
.process-figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 5;
}
@media (min-width: 1024px) {
    .process-figure {
        position: sticky;
        top: calc(var(--navbar-height) + 2.5rem);
    }
    .process-figure img { aspect-ratio: 4 / 5; min-height: 540px; }
}
.process-figure-tag {
    position: absolute;
    left: 1.25rem;
    bottom: 1.25rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--accent);
}

/* Colonna contenuto */
.process-content {
    min-width: 0;
}
.process-intro {
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
#featured-projects .process-title {
    font-size: 2.25rem;
    line-height: 1.08;
    margin: 0 0 1.25rem;
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.02em;
}
@media (min-width: 768px) {
    #featured-projects .process-title { font-size: 3rem; }
}
#featured-projects .process-desc {
    font-size: 1.05rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    max-width: 46ch;
    margin: 0;
    line-height: 1.6;
}

/* Lista numerata editoriale */
.process-steps {
    list-style: none;
    margin: 0;
    padding: 0;
}
.process-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.process-step:last-child { border-bottom: 0; padding-bottom: 0; }
.process-step:first-child { padding-top: 0; }
@media (min-width: 768px) {
    .process-step { gap: 2.25rem; }
}
.process-step-num {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
@media (min-width: 768px) {
    .process-step-num { font-size: 2rem; }
}
.process-step-body { min-width: 0; }
.process-step-title {
    margin: 0 0 0.6rem;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.25;
}
@media (min-width: 768px) {
    .process-step-title { font-size: 1.4rem; }
}
.process-step-desc {
    margin: 0;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.6;
    max-width: 52ch;
}

/* ===== Pagina demo processo (scopata) ===== */
.process-demo #featured-projects.process-section {
    padding: 5rem 0;
}
.process-demo #featured-projects .process-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    gap: 2rem;
    z-index: 1;
}
@media (min-width: 1024px) {
    .process-demo #featured-projects .process-container {
        flex-direction: row;
        gap: 5rem;
    }
}
.process-demo #featured-projects .process-text {
    flex: 1;
    min-width: 0;
    margin-left: -1rem;
}
@media (min-width: 768px) {
    .process-demo #featured-projects .process-text { margin-left: -2rem; }
}
@media (min-width: 1024px) {
    .process-demo #featured-projects .process-text { margin-left: -3.5rem; }
}
.process-demo #featured-projects .sticky-text {
    padding-left: 0;
    position: sticky;
    top: calc(var(--navbar-height) + 20px);
}
.process-demo .featured-projects-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-bottom: 3rem;
}
.process-demo .featured-projects-stack-offset {
    margin-left: 2rem;
}
@media (min-width: 768px) {
    .process-demo .featured-projects-stack-offset { margin-left: 3rem; }
}
.process-demo .featured-project-card {
    min-height: 320px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    display: block;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}
@media (min-width: 768px) {
    .process-demo .featured-project-card { min-height: 380px; }
}
.process-demo .featured-projects-stack .featured-project-card:not(:first-child) {
    margin-top: 1.25rem;
}
@media (min-width: 768px) {
    .process-demo .featured-projects-stack .featured-project-card:not(:first-child) { margin-top: 1.75rem; }
}
.process-demo .featured-project-arrow {
    transition: background-color 0.25s ease, transform 0.25s ease;
}
.process-demo .featured-project-card:hover .featured-project-arrow {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}
.featured-projects-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-bottom: 3rem;
}
.featured-projects-stack-offset {
    margin-left: 2rem;
}
@media (min-width: 768px) {
    .featured-projects-stack-offset {
        margin-left: 3rem;
    }
}
.featured-project-card {
    position: relative;
    display: block;
    min-height: 320px;
    border-radius: 1.5rem;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: translateZ(0);
    transition: transform 0.3s ease;
}
@media (min-width: 768px) {
    .featured-project-card {
        min-height: 380px;
    }
}
.featured-projects-stack .featured-project-card:not(:first-child) {
    margin-top: 1.25rem;
}
@media (min-width: 768px) {
    .featured-projects-stack .featured-project-card:not(:first-child) {
        margin-top: 1.75rem;
    }
}
.featured-project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.25) 50%, transparent 100%);
    pointer-events: none;
}
.featured-project-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}
@media (min-width: 768px) {
    .featured-project-inner {
        padding: 2rem;
    }
}
.featured-project-header {
    display: block;
}
.featured-project-text {
    color: #ffffff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    max-width: 100%;
    margin: 0 0 0.7rem;
}
@media (min-width: 768px) {
    .featured-project-text {
        font-size: 1.1rem;
    }
}
.featured-project-points {
    margin: 0;
    padding-left: 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    line-height: 1.45;
}
.featured-project-card:hover {
    transform: translateY(-4px);
}
.members-card.is-active {
    max-height: 240px;
    transform: translateY(-4px) scale(1.06); /* leggermente più alta e larga */
    border-color: var(--primary);
    box-shadow: 0 18px 40px rgba(24, 24, 27, 0.2);
}
.members-card.is-active .members-card-media img {
    transform: scale(1.05);
}
.members-card.is-active:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 18px 40px rgba(24, 24, 27, 0.2);
}

/* ===== Values ===== */
.values {
    background: var(--white);
    padding-top: 1rem; /* leggermente meno del default 6rem */
}
.values { background: var(--white); }
.values-inner {
    text-align: center;
}
.values-inner .section-label { margin-bottom: 1rem; }
.values-inner .section-title { margin-bottom: 0; }
.values-line {
    width: 5rem;
    height: 4px;
    background: var(--accent);
    margin: 1.5rem auto 4rem;
}
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}
@media (min-width: 768px) {
    .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .values-grid { grid-template-columns: repeat(4, 1fr); }
}
.value-item {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.value-item:hover {
    transform: translateY(-4px);
}
.value-icon {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    position: relative;
    background-color: var(--slate-50);
    border: 2px solid var(--slate-200);
    transition: transform 0.35s ease, border-color 0.3s ease, background-color 0.3s ease;
}
.value-item:hover .value-icon {
    transform: scale(1.05);
}
.value-icon::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-size: 32px 32px;
    background-position: center;
    background-repeat: no-repeat;
    transition: filter 0.3s;
}
.value-item:hover .value-icon {
    border-color: var(--accent);
    background-color: var(--accent);
    transform: scale(1.08);
    box-shadow: 0 14px 30px rgba(245, 197, 24, 0.3);
}
.value-item:hover .value-icon::before {
    filter: brightness(0);
}
.value-icon-gavel::before {
    background-image: url("../icon/icons8-legge-50.png");
}
.value-icon-star::before {
    background-image: url("../icon/star.png");
}
.value-icon-users::before {
    background-image: url("../icon/%E2%80%94Pngtree%E2%80%94vector%20men%20avatar%20icon_4232065.png");
}
.value-icon-trending::before {
    background-image: url("../icon/graph-icon.png");
}
.value-item h3 {
    color: var(--navy-900);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
}
.value-item p {
    color: var(--slate-500);
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

/* ===== Contact ===== */
.contact { background: var(--slate-50); }

/* Hero contatti con mappa */
.contact-hero {
    background: var(--slate-50);
}
.contact-hero-map-wrapper {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
}
@media (min-width: 768px) {
    .contact-hero-map-wrapper {
        height: 420px;
    }
}
.contact-hero-map {
    position: absolute;
    inset: 0;
}
.contact-hero-map iframe {
    width: 100%;
    height: 100%;
}
.contact-hero-card {
    position: absolute;
    top: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
    max-width: 320px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 1.25rem;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 18px 45px rgba(24, 24, 27, 0.25);
}
@media (min-width: 768px) {
    .contact-hero-card {
        left: var(--px-desktop);
        transform: none;
    }
}
.contact-hero-card-label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--slate-500);
    margin: 0 0 0.4rem;
}
.contact-hero-card-title {
    margin: 0 0 0.25rem;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--navy-900);
}
.contact-hero-card-address {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    color: var(--slate-600);
}
.contact-hero-card-btn {
    font-size: 0.8rem;
    padding: 0.55rem 1.1rem;
}
.contact-hero-status {
    position: absolute;
    left: 50%;
    bottom: 1.75rem;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.98);
    color: var(--navy-900);
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    box-shadow: 0 18px 45px rgba(24, 24, 27, 0.25);
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
@media (min-width: 768px) {
    .contact-hero-status {
        left: 50%;
        transform: translateX(-50%);
    }
}
.contact-hero-status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: #f97316;
}
.contact-hero-status-dot.is-open {
    background: #22c55e;
}
.contact-hero-status-text {
    font-weight: 600;
}
.contact-hero-status-close {
    margin: 0;
    font-size: 0.78rem;
    color: var(--slate-600);
}
.contact-hero-status-sep {
    color: var(--slate-300);
}

/* Contatti: layout mobile / telefono */
@media (max-width: 767px) {
    .contact-page.section {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    .contact-page .contact-wrapper {
        gap: 2rem;
    }
    .contact-page-title {
        font-size: 1.5rem;
    }
    .contact-intro {
        font-size: 0.875rem;
    }
    .contact-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .contact-form-card {
        padding: 1.5rem;
    }
    .contact-form-card-title {
        font-size: 1.35rem;
    }
    .contact-form-card-subtitle {
        margin-bottom: 1.25rem;
        font-size: 0.875rem;
    }
    .contact-form {
        gap: 1rem;
    }
    .contact-form-submit {
        width: 100%;
        padding: 0.875rem 1rem;
    }
    .contact-security-banner {
        padding: 1rem 1.25rem;
        gap: 0.75rem;
    }
    .contact-security-banner-icon {
        width: 2rem;
        height: 2rem;
    }
    .contact-security-banner-title {
        font-size: 0.875rem;
    }
    .contact-security-banner-text {
        font-size: 0.75rem;
    }
}
@media (max-width: 480px) {
    .contact-hero-map-wrapper {
        height: 280px;
    }
    .contact-hero-status {
        padding: 0.35rem 0.75rem;
        font-size: 0.75rem;
        gap: 0.3rem;
        bottom: 1rem;
        max-width: calc(100% - 2rem);
        flex-wrap: wrap;
        justify-content: center;
    }
    .contact-hero-status-sep {
        display: none;
    }
    .contact-hero-status-close {
        width: 100%;
        text-align: center;
        margin-top: 0.15rem;
        font-size: 0.7rem;
    }
    .contact-cards-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .contact-info-card {
        padding: 1rem;
    }
    .contact-info-card-icon {
        width: 2rem;
        height: 2rem;
        margin-bottom: 0.5rem;
    }
    .contact-info-card-label {
        font-size: 0.65rem;
    }
    .contact-info-card-value {
        font-size: 0.8125rem;
    }
    .contact-info-card-value.footer-social {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .contact-form-card {
        padding: 1.25rem;
        border-radius: 1rem;
    }
    .contact-form-card-title {
        font-size: 1.25rem;
    }
    .contact-form-field input,
    .contact-form-field select,
    .contact-form-field textarea {
        padding: 0.75rem 1rem;
        font-size: 16px; /* evita zoom su iOS */
    }
    .contact-form-checkbox {
        font-size: 0.75rem;
    }
}

.contact-page .contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    overflow: visible;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}
@media (min-width: 1024px) {
    .contact-page .contact-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: start;
    }
}
.contact-col-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.contact-page-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--navy-900);
}
.contact-intro {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--slate-600);
    line-height: 1.6;
}
.contact-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 768px) {
    .contact-cards-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }
}
.contact-info-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
@media (min-width: 768px) {
    .contact-info-card { padding: 1.5rem; }
}
.contact-info-card-icon {
    display: block;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.75rem;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
.contact-info-card-icon-pin {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318181b' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0118 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}
.contact-info-card-icon-phone {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318181b' stroke-width='2'%3E%3Cpath d='M22 16.92v3a2 2 0 01-2.18 2 19.79 19.79 0 01-8.63-3.07 19.5 19.5 0 01-6-6 19.79 19.79 0 01-3.07-8.67A2 2 0 014.11 2h3a2 2 0 012 1.72 12.84 12.84 0 00.7 2.81 2 2 0 01-.45 2.11L8.09 9.91a16 16 0 006 6l1.27-1.27a2 2 0 012.11-.45 12.84 12.84 0 002.81.7A2 2 0 0122 16.92z'/%3E%3C/svg%3E");
}
.contact-info-card-icon-email {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318181b' stroke-width='2'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E");
}
.contact-info-card-icon-social {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318181b' stroke-width='2'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cline x1='8.59' y1='13.51' x2='15.42' y2='17.49'/%3E%3Cline x1='15.41' y1='6.51' x2='8.59' y2='10.49'/%3E%3C/svg%3E");
}
.contact-info-card-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--slate-500);
    margin-bottom: 0.35rem;
}
.contact-info-card-value {
    margin: 0;
    font-size: 0.875rem;
    color: var(--navy-900);
    line-height: 1.5;
}
.contact-info-card-value a {
    color: var(--primary);
    text-decoration: underline;
}
.contact-info-card-value a:hover {
    color: var(--primary-hover);
}
.contact-security-banner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(37, 99, 235, 0.15);
}
.contact-security-banner-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318181b' stroke-width='2'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
.contact-security-banner-title {
    display: block;
    font-size: 0.9375rem;
    color: var(--navy-900);
    margin-bottom: 0.25rem;
}
.contact-security-banner-text {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--slate-600);
    line-height: 1.5;
}

.contact-col-right {
    display: flex;
    flex-direction: column;
}
.contact-form-card {
    background: var(--white);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(24, 24, 27, 0.12);
}
@media (min-width: 768px) {
    .contact-form-card { padding: 2.5rem; }
}
.contact-form-card-title {
    margin: 0 0 0.35rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy-900);
}
.contact-form-card-subtitle {
    margin: 0 0 1.75rem;
    font-size: 0.9375rem;
    color: var(--slate-600);
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 600px) {
    .contact-form-grid { grid-template-columns: 1fr; }
}
.contact-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.contact-form-field label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--navy-900);
}
.contact-form-field input,
.contact-form-field select,
.contact-form-field textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--navy-900);
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 0.5rem;
}
.contact-form-field input::placeholder,
.contact-form-field textarea::placeholder {
    color: var(--slate-400);
}
.contact-form-field input:focus,
.contact-form-field select:focus,
.contact-form-field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}
.contact-form-field select {
    cursor: pointer;
}
.contact-form-field textarea {
    resize: vertical;
    min-height: 100px;
}
.contact-form-consent {
    margin: 0;
}
.contact-form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.8125rem;
    color: var(--slate-600);
    cursor: pointer;
}
.contact-form-checkbox input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}
.contact-form-checkbox a {
    color: var(--primary);
    text-decoration: underline;
}
.contact-form-checkbox a:hover {
    color: var(--primary-hover);
}
.contact-form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}
.contact-form-submit-icon {
    width: 1.125rem;
    height: 1.125rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2'%3E%3Cline x1='22' y1='2' x2='11' y2='13'/%3E%3Cpolygon points='22 2 15 22 11 13 2 9 22 2'/%3E%3C/svg%3E");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    overflow: hidden;
    border-radius: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    background: var(--white);
}
@media (min-width: 1024px) {
    .contact-wrapper { grid-template-columns: 1fr 1fr; }
}
.contact-card {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
@media (min-width: 768px) {
    .contact-card { padding: 4rem; }
}
.contact-list {
    margin: 0 0 2rem;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.contact-icon {
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    border-radius: 0.75rem;
    background: rgba(245, 197, 24, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: 24px 24px;
    background-position: center;
    background-repeat: no-repeat;
}
.contact-icon-pin {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5c518' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0118 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}
.contact-icon-phone {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5c518' stroke-width='2'%3E%3Cpath d='M22 16.92v3a2 2 0 01-2.18 2 19.79 19.79 0 01-8.63-3.07 19.5 19.5 0 01-6-6 19.79 19.79 0 01-3.07-8.67A2 2 0 014.11 2h3a2 2 0 012 1.72 12.84 12.84 0 00.7 2.81 2 2 0 01-.45 2.11L8.09 9.91a16 16 0 006 6l1.27-1.27a2 2 0 012.11-.45 12.84 12.84 0 002.81.7A2 2 0 0122 16.92z'/%3E%3C/svg%3E");
}
.contact-icon-mail {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5c518' stroke-width='2'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E");
}
.contact-item h4 {
    color: var(--navy-900);
    font-weight: 700;
    margin: 0 0 0.25rem;
}
.contact-item p {
    color: var(--slate-500);
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}
.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    margin-top: 0.5rem;
}
.btn-contact:hover { background: var(--primary-hover); }
.btn-icon-send {
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2'%3E%3Cline x1='22' y1='2' x2='11' y2='13'/%3E%3Cpolygon points='22 2 15 22 11 13 2 9 22 2'/%3E%3C/svg%3E") center/contain no-repeat;
}
.contact-map {
    height: 400px;
    min-height: 400px;
    position: relative;
    filter: grayscale(1);
    transition: filter 0.5s;
}
.contact-map:hover { filter: grayscale(0); }
@media (min-width: 1024px) {
    .contact-map {
        height: auto;
        min-height: 500px;
    }
}
.contact-map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===== Newsletter ===== */
.newsletter {
    padding: 5rem 0;
}
.newsletter-inner {
    position: relative;
    background: var(--primary);
    border-radius: 2rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}
@media (min-width: 768px) {
    .newsletter-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 4rem;
    }
}
.newsletter-blob {
    position: absolute;
    top: 0;
    right: 0;
    width: 16rem;
    height: 16rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(50%, -50%);
    filter: blur(48px);
}
.newsletter-content {
    position: relative;
    z-index: 1;
}
@media (min-width: 768px) {
    .newsletter-content { width: 50%; }
}
.newsletter-title {
    color: var(--white);
    font-size: 1.875rem;
    font-weight: 900;
    margin: 0 0 1rem;
}
@media (min-width: 768px) {
    .newsletter-title { font-size: 2.25rem; }
}
.newsletter-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    margin: 0;
}
.newsletter-form {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}
@media (min-width: 640px) {
    .newsletter-form { flex-direction: row; width: auto; }
}
.newsletter-form input {
    min-width: 300px;
    height: 3.5rem;
    padding: 0 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    color: var(--navy-900);
}
.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--accent);
}
.btn-newsletter {
    height: 3.5rem;
    padding: 0 2rem;
    white-space: nowrap;
    margin-top: 0.85rem;
    background: var(--accent);
    color: #18181b;
    border: 1px solid var(--accent);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.btn.btn-newsletter:hover,
.btn.btn-newsletter:focus {
    background: var(--accent);
    color: #18181b;
    border-color: var(--accent);
    transform: scale(1.07);
    box-shadow: 0 14px 34px rgba(245, 197, 24, 0.4);
}
.btn.btn-newsletter:active {
    transform: scale(1.03);
}
@media (min-width: 768px) {
    .btn-newsletter {
        margin-top: 0;
        margin-left: auto;
        align-self: center;
        flex-shrink: 0;
    }
}

/* ===== Career / Lavora con noi ===== */
.career-page {
    background: var(--slate-50);
    padding-top: 5.25rem;
    padding-bottom: 7.5rem;
}
.career-container {
    max-width: 1180px;
}
.career-hero {
    background: var(--primary);
    color: var(--white);
    border-radius: 2rem;
    padding: 2.5rem 1.5rem;
    margin-top: 4rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 25px 60px rgba(37, 99, 235, 0.25);
    overflow: hidden;
}
.career-hero-title {
    color: var(--white);
    font-size: 2.25rem;
    font-weight: 900;
    margin: 0 0 1rem;
    line-height: 1.1;
}
.career-hero-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.75;
    font-size: 1.05rem;
    max-width: 60ch;
}
@media (min-width: 768px) {
    .career-hero {
        padding: 3.25rem 4rem;
    }
    .career-hero-title {
        font-size: 3rem;
    }
}

.career-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.25rem;
    align-items: start;
}
@media (min-width: 1024px) {
    .career-layout {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }
}

/* Progress bar */
.career-progress {
    position: relative;
    justify-self: stretch;
    align-self: stretch;
    padding: 1.2rem 0 1.8rem;
    width: 100%;
    max-width: none;
    margin: 0;
}
@media (min-width: 1024px) {
    .career-progress {
        position: relative;
        top: auto;
        width: 100%;
        max-width: none;
        margin: 0;
        padding-left: 0;
        padding-right: 0;
    }
}
.career-progress-line,
.career-progress-line-fill {
    display: none;
}
.career-progress-items {
    display: flex;
    width: 100%;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0;
}
.career-progress-item {
    display: inline-flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    color: inherit;
    position: relative;
    min-height: 7.9rem;
    padding-bottom: 0;
}
.career-progress-item::after {
    content: '';
    position: absolute;
    top: 1.58rem;
    left: calc(50% + 1.75rem);
    width: calc(100% - 3.5rem);
    height: 3px;
    border-radius: 999px;
    background: #d1d5db;
    transition: background-color 340ms ease;
}
.career-progress-item:last-child::after {
    display: none;
}
.career-progress-circle {
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 999px;
    border: 2px solid #d1d5db;
    background: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(24, 24, 27, 0.12);
    transition: border-color 250ms ease, background-color 250ms ease, transform 250ms ease;
    box-sizing: border-box;
}
.career-progress-active-dot {
    display: none !important;
}
.career-progress-num {
    font-size: 1.08rem;
    font-weight: 900;
    color: rgba(71, 85, 105, 0.95);
}
.career-progress-check {
    display: none !important;
}
.career-progress-label {
    position: static;
    margin-top: 0.78rem;
    width: 100%;
    max-width: 10.5rem;
    padding: 0 0.25rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(100, 116, 139, 0.95);
    text-align: center;
    line-height: 1.3;
    transition: color 260ms ease;
    white-space: normal;
    overflow-wrap: anywhere;
}
.career-progress-item.is-reached .career-progress-circle {
    border-color: var(--primary);
}
.career-progress-item.is-reached .career-progress-label {
    color: rgba(37, 99, 235, 0.95);
}
.career-progress-item.is-reached::after {
    background: rgba(37, 99, 235, 0.92);
}
.career-progress-item.is-active .career-progress-circle {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px) scale(1.06);
    animation: careerStepPulse 1.2s ease-in-out infinite;
}
.career-progress-item.is-active .career-progress-num,
.career-progress-item.is-completed .career-progress-num {
    color: var(--white);
}
.career-progress-item.is-active .career-progress-label {
    color: var(--primary);
}
.career-progress-item.is-completed .career-progress-circle {
    border-color: var(--primary);
    background: var(--primary);
    transform: scale(1.01);
}
@keyframes careerStepPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.3); }
    70% { box-shadow: 0 0 0 14px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.career-progress-tooltip {
    display: none !important;
}
.career-progress-tooltip::after {
    display: none;
}
.career-progress-tooltip-text {
    display: none;
}
.career-progress-item.is-active .career-progress-tooltip {
    display: none !important;
}

/* Steps */
.career-steps {
    background: transparent;
}
.career-form {
    background: var(--white);
    border-radius: 2rem;
    padding: 2.4rem 2rem 2rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    border: 1px solid rgba(226, 232, 240, 0.9);
}
.career-step-panels {
    position: relative;
}
.career-step-panel {
    display: none;
}
.career-step-panel.is-active {
    display: block;
    animation: careerStepInNext 260ms ease both;
}
.career-step-panel.is-enter-prev {
    animation-name: careerStepInPrev;
}
@keyframes careerStepInNext {
    from { opacity: 0; transform: translateX(14px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes careerStepInPrev {
    from { opacity: 0; transform: translateX(-14px); }
    to { opacity: 1; transform: translateX(0); }
}

.career-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.15rem;
    margin-bottom: 1.75rem;
}
@media (min-width: 768px) {
    .career-form-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.career-full {
    grid-column: 1 / -1;
}
.career-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.career-form-field label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy-900);
}
.career-form-field input,
.career-form-field select,
.career-form-field textarea {
    width: 100%;
    padding: 0.72rem 0.95rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--navy-900);
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 0.5rem;
}
.career-form-field input::placeholder,
.career-form-field textarea::placeholder {
    color: var(--slate-400);
}
.career-form-field input:focus,
.career-form-field select:focus,
.career-form-field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}
.career-form-field textarea {
    resize: vertical;
    min-height: 120px;
}
.career-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    padding-top: 0.25rem;
}
.career-radio {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--navy-900);
    white-space: nowrap;
}
.career-radio input {
    margin: 0;
    accent-color: var(--primary);
}

.career-switch {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.35rem;
}
.career-switch input {
    width: 42px;
    height: 24px;
    appearance: none;
    background: rgba(24, 24, 27, 0.18);
    border-radius: 999px;
    position: relative;
    cursor: pointer;
    outline: none;
}
.career-switch input::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: var(--white);
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    transition: transform 200ms ease;
}
.career-switch input:checked {
    background: rgba(37, 99, 235, 0.55);
}
.career-switch input:checked::after {
    transform: translateX(18px);
}
.career-switch-label {
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--navy-900);
    cursor: pointer;
}

.career-message-counter {
    color: rgba(24, 24, 27, 0.65);
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: -0.2rem;
}
.career-field-error {
    display: none;
    color: #ef4444;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.2rem;
}
.career-shake {
    animation: careerShake 520ms ease;
}
@keyframes careerShake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
    100% { transform: translateX(0); }
}

.career-form-actions {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
    margin-top: 0.35rem;
}
@media (min-width: 768px) {
    .career-form-actions {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .career-form-actions .btn {
        min-width: 190px;
    }
}
.career-form-actions-last {
    justify-content: space-between;
}
.career-form-actions-last .career-back,
.career-form-actions-last .career-submit {
    margin-top: 0.6rem;
    margin-bottom: 0.6rem;
}
.career-submit {
    min-width: 220px;
}
.career-submit[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}
.career-next[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Tags input */
.career-tags-input {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 0.5rem;
    padding: 0.75rem 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.career-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
}
.career-tags-input-field {
    border: none;
    outline: none;
    background: transparent;
    padding: 0.25rem 0;
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--navy-900);
    flex: 1;
    min-width: 140px;
}
.career-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.18);
    color: var(--navy-900);
    font-size: 0.85rem;
    font-weight: 700;
}
.career-tag-remove {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.05rem;
    line-height: 1;
    color: rgba(24, 24, 27, 0.75);
    padding: 0;
}

/* CV dropzone */
.career-cv-dropzone {
    border: 2px dashed rgba(37, 99, 235, 0.35);
    background: var(--slate-50);
    border-radius: 0.85rem;
    padding: 1.25rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    cursor: pointer;
    transition: border-color 200ms ease, background-color 200ms ease;
}
.career-cv-dropzone.is-dragover {
    border-color: rgba(37, 99, 235, 0.8);
    background: var(--white);
}
.career-cv-drop-title {
    margin: 0;
    font-weight: 900;
    color: var(--navy-900);
}
.career-cv-drop-hint {
    margin: 0.1rem 0 0;
    color: rgba(24, 24, 27, 0.65);
    font-size: 0.95rem;
    font-weight: 600;
}
.career-cv-filename {
    color: rgba(24, 24, 27, 0.8);
    font-weight: 700;
    font-size: 0.95rem;
    word-break: break-word;
}

/* Step 4 — Riepilogo */
.career-step4-review {
    margin-bottom: 1.75rem;
}
.career-step4-intro {
    text-align: center;
    max-width: 36rem;
    margin: 0 auto 1.75rem;
    padding: 1.35rem 1rem 1.5rem;
    border-radius: 1.25rem;
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.06) 0%, rgba(255, 255, 255, 0.9) 55%, rgba(241, 245, 249, 0.6) 100%);
    border: 1px solid rgba(37, 99, 235, 0.12);
    box-shadow: 0 10px 40px rgba(24, 24, 27, 0.06);
}
.career-step4-intro-icon {
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    color: var(--primary);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(37, 99, 235, 0.18);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}
.career-step4-intro-title {
    margin: 0 0 0.45rem;
    font-size: clamp(1.2rem, 2.8vw, 1.45rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--navy-900);
}
.career-step4-intro-desc {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    font-weight: 600;
    color: rgba(24, 24, 27, 0.68);
}

/* Summary */
.career-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
    margin-bottom: 0;
}
.career-summary-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 1.05rem;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(24, 24, 27, 0.05);
    transition: box-shadow 220ms ease, border-color 220ms ease;
}
.career-summary-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary) 0%, rgba(37, 99, 235, 0.45) 100%);
    border-radius: 4px 0 0 4px;
    opacity: 0.95;
}
.career-summary-card:hover {
    border-color: rgba(37, 99, 235, 0.22);
    box-shadow: 0 12px 36px rgba(24, 24, 27, 0.08);
}
.career-summary-card-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 1.2rem 0.85rem 1.35rem;
    border-bottom: 1px solid rgba(24, 24, 27, 0.06);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.85) 0%, rgba(255, 255, 255, 0.4) 100%);
}
.career-summary-badge {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 900;
    color: var(--white);
    border-radius: 0.65rem;
    background: linear-gradient(145deg, var(--primary) 0%, #1d4ed8 100%);
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.35);
}
.career-summary-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: -0.015em;
    color: var(--navy-900);
}
.career-summary-grid {
    display: flex;
    flex-direction: column;
    padding: 0.35rem 1.2rem 1.15rem 1.35rem;
    gap: 0;
}
.career-summary-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.25rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(24, 24, 27, 0.06);
    font-size: 0.92rem;
}
.career-summary-row:last-child {
    border-bottom: none;
    padding-bottom: 0.25rem;
}
@media (min-width: 640px) {
    .career-summary-row:not(.career-summary-row--message):not(.career-summary-row--wide) {
        grid-template-columns: minmax(7.5rem, 38%) 1fr;
        align-items: baseline;
        gap: 1rem 1.5rem;
    }
    .career-summary-row:not(.career-summary-row--message) .career-summary-value {
        text-align: right;
    }
}
.career-summary-row--wide {
    grid-template-columns: 1fr;
}
.career-summary-row--message {
    grid-template-columns: 1fr;
    padding-top: 0.85rem;
}
.career-summary-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(24, 24, 27, 0.48);
}
.career-summary-value {
    font-weight: 650;
    color: var(--navy-900);
    word-break: break-word;
    line-height: 1.45;
}
.career-summary-row--message .career-summary-value {
    margin-top: 0.35rem;
    padding: 0.75rem 0.85rem;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 0.65rem;
    font-weight: 600;
    color: rgba(24, 24, 27, 0.92);
    text-align: left !important;
}

.career-consent {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: start;
    gap: 0.65rem 1rem;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 1.1rem;
    padding: 1.25rem 1.35rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 28px rgba(24, 24, 27, 0.06);
}
.career-consent .career-field-error {
    grid-column: 1 / -1;
    margin-top: 0.15rem;
}
.career-consent-icon {
    grid-row: 1;
    align-self: start;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
    border-radius: 0.85rem;
    border: 1px solid rgba(37, 99, 235, 0.15);
}
.career-consent-body {
    min-width: 0;
}
.career-consent-title {
    margin: 0 0 0.55rem;
    font-size: 0.95rem;
    font-weight: 900;
    color: var(--navy-900);
    letter-spacing: -0.02em;
}
.career-consent .career-form-checkbox {
    margin: 0;
}
.career-form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    color: rgba(24, 24, 27, 0.85);
    font-weight: 650;
    font-size: 0.95rem;
}
.career-form-checkbox input {
    margin-top: 0.2rem;
    accent-color: var(--primary);
}
.career-form-checkbox a {
    color: var(--primary);
    text-decoration: underline;
}

.career-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.55rem;
    background: linear-gradient(160deg, rgba(37, 99, 235, 0.1) 0%, rgba(255, 255, 255, 0.95) 55%, rgba(240, 253, 244, 0.35) 100%);
    border: 1px solid rgba(37, 99, 235, 0.22);
    border-radius: 1.15rem;
    padding: 1.5rem 1.25rem 1.35rem;
    margin-top: 0.5rem;
    box-shadow: 0 12px 40px rgba(24, 24, 27, 0.08);
}
.career-success[hidden] {
    display: none !important;
}
.career-success-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: linear-gradient(145deg, var(--primary) 0%, #1d4ed8 100%);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.35rem;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}
.career-success-title {
    margin: 0;
    font-weight: 900;
    font-size: 1.25rem;
    color: var(--navy-900);
}
.career-success-desc {
    margin: 0;
    color: rgba(24, 24, 27, 0.7);
    line-height: 1.6;
    font-weight: 650;
}

.career-submit-loader {
    display: inline-block;
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: rgba(255, 255, 255, 1);
    margin-left: 0.75rem;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 150ms ease, transform 150ms ease;
}
.career-submit-loader.is-active {
    opacity: 1;
    transform: scale(1);
    animation: careerSpin 900ms linear infinite;
}
@keyframes careerSpin {
    to { transform: rotate(360deg); }
}

/* Back button outline for light background */
.career-page .career-back.btn-outline-hero {
    background: transparent !important;
    color: var(--primary) !important;
    border: 1px solid rgba(37, 99, 235, 0.8) !important;
}
.career-page .career-back.btn-outline-hero:hover {
    background: rgba(37, 99, 235, 0.08) !important;
    color: var(--primary) !important;
    border-color: rgba(37, 99, 235, 0.8) !important;
}

/* Mobile progress bar (horizontal) */
@media (max-width: 767px) {
    .career-page {
        padding-top: 4.25rem;
        padding-bottom: 5.75rem;
    }
    .career-layout {
        gap: 1.1rem;
    }
    .career-hero {
        margin-bottom: 1rem;
        border-radius: 1.25rem;
        padding: 1.9rem 1.1rem;
    }
    .career-hero-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    .career-hero-subtitle {
        font-size: 0.96rem;
        line-height: 1.55;
    }
    .career-form {
        border-radius: 1.2rem;
        padding: 1.2rem 1rem 1.1rem;
    }
    .career-form-grid {
        gap: 0.85rem;
        margin-bottom: 1.1rem;
    }
    .career-progress-line {
        display: none;
    }
    .career-progress-line-fill {
        display: none;
    }
    .career-progress-items {
        gap: 0;
    }
    .career-progress-item {
        min-width: 0;
        min-height: 6.15rem;
        padding-bottom: 0;
    }
    .career-progress-item::after {
        top: 1.08rem;
        left: calc(50% + 1.1rem);
        width: calc(100% - 2.2rem);
        height: 2px;
    }
    .career-progress-label {
        margin-top: 0.55rem;
        width: 100%;
        max-width: 5.8rem;
        font-size: 0.66rem;
        line-height: 1.2;
        letter-spacing: 0.05em;
    }
    .career-progress-tooltip {
        display: none;
    }
    .career-progress-circle {
        width: 2.2rem;
        height: 2.2rem;
        border-width: 2px;
    }
    .career-progress-num,
    .career-progress-check {
        font-size: 0.8rem;
    }
    .career-form-actions .btn {
        width: 100%;
        min-width: 0;
    }
    .career-form-actions-last {
        flex-direction: column-reverse;
    }
    .career-form-actions-last .career-back,
    .career-form-actions-last .career-submit {
        margin-top: 0.45rem;
        margin-bottom: 0.45rem;
    }
    .career-step4-intro {
        margin-bottom: 1.35rem;
        padding: 1.15rem 0.85rem 1.25rem;
    }
    .career-summary-card-head {
        padding: 1rem 1rem 0.75rem 1.15rem;
    }
    .career-summary-grid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .career-consent {
        grid-template-columns: 1fr;
        padding: 1.1rem 1rem;
    }
    .career-consent-icon {
        margin: 0 auto 0.35rem;
    }
}

/* ===== Footer ===== */
.footer {
    background: var(--white);
    border-top: 1px solid var(--slate-200);
    padding-top: 5rem;
    padding-bottom: 2.5rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 5rem;
}
@media (min-width: 768px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 2rem;
}
.footer-logo-image {
    display: block;
    width: 190px;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    transform: scale(1.32);
    transform-origin: left center;
}
.footer-logo-icon {
    width: 1.5rem;
    height: 1.5rem;
    background: var(--primary);
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}
.footer-logo-text {
    color: var(--navy-900);
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.025em;
    text-transform: uppercase;
}
.footer-brand p {
    color: var(--slate-500);
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}
.footer-col h5 {
    color: var(--navy-900);
    font-weight: 700;
    margin: 0 0 1.5rem;
    font-size: 1rem;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col ul li {
    margin-bottom: 1rem;
}
.footer-col a {
    color: var(--slate-500);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--primary); }
.footer-contact li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}
.footer-contact-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    background-size: 18px 18px;
    background-position: center;
    background-repeat: no-repeat;
}
.footer-contact-pin {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318181b' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0118 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}
.footer-contact-phone {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318181b' stroke-width='2'%3E%3Cpath d='M22 16.92v3a2 2 0 01-2.18 2 19.79 19.79 0 01-8.63-3.07 19.5 19.5 0 01-6-6 19.79 19.79 0 01-3.07-8.67A2 2 0 014.11 2h3a2 2 0 012 1.72 12.84 12.84 0 00.7 2.81 2 2 0 01-.45 2.11L8.09 9.91a16 16 0 006 6l1.27-1.27a2 2 0 012.11-.45 12.84 12.84 0 002.81.7A2 2 0 0122 16.92z'/%3E%3C/svg%3E");
}
.footer-bottom {
    padding-top: 2.5rem;
    border-top: 1px solid var(--slate-100);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}
@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}
.footer-bottom p {
    color: var(--slate-400);
    font-size: 0.75rem;
    margin: 0;
}
.footer-bottom .footer-powered {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-bottom .footer-powered:hover {
    color: var(--primary);
}
.footer-social {
    display: flex;
    gap: 1.5rem;
}
.footer-social a {
    color: var(--slate-400);
    transition: color 0.2s;
}
.footer-social a:hover { color: var(--primary); }
.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.footer-social-link svg {
    display: block;
    width: 20px;
    height: 20px;
}
.footer-social-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: 20px 20px;
    background-position: center;
    background-repeat: no-repeat;
}
.footer-social-globe {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 01 4 10 15.3 15.3 0 01-4 10 15.3 15.3 0 01-4-10 15.3 15.3 0 014-10z'/%3E%3C/svg%3E");
}
.footer-social-share {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cline x1='8.59' y1='13.51' x2='15.42' y2='17.49'/%3E%3Cline x1='15.41' y1='6.51' x2='8.59' y2='10.49'/%3E%3C/svg%3E");
}
.footer-social-briefcase {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='2' y='7' width='20' height='14' rx='2' ry='2'/%3E%3Cpath d='M16 21V5a2 2 0 00-2-2h-4a2 2 0 00-2 2v16'/%3E%3C/svg%3E");
}

/* ===== Cookie banner ===== */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: none;
}
.cookie-banner.is-visible {
    display: block;
}
.cookie-banner-inner {
    max-width: 1140px;
    margin: 0 auto 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(24, 24, 27, 0.25);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
@media (min-width: 768px) {
    .cookie-banner-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 1.25rem 2rem;
    }
}
.cookie-banner-text {
    margin: 0;
    font-size: 0.875rem;
    color: var(--slate-600);
}
.cookie-banner-text a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}
.cookie-banner-text a:hover {
    text-decoration: underline;
}
.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-start;
}
@media (min-width: 768px) {
    .cookie-banner-actions {
        justify-content: flex-end;
    }
}
.cookie-btn-decline,
.cookie-btn-accept {
    min-width: 0;
    height: 2.75rem;
    padding: 0 1.5rem;
    font-size: 0.875rem;
}
.cookie-btn-decline {
    color: #000000;
}
.cookie-btn-accept:hover {
    background: var(--primary);
    color: var(--white);
}

/* ===== About Page (Chi Siamo) ===== */
.about-hero {
    position: relative;
    width: 100%;
    min-height: 42vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10rem 0 6rem;
    color: var(--white);
    background-image: linear-gradient(rgba(24, 24, 27, 0.75), rgba(24, 24, 27, 0.6)), url("../img/media/property-management.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
@media (min-width: 768px) {
    .about-hero { min-height: 50vh; padding: 11rem 0 7rem; }
}
.about-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(24, 24, 27, 0.4) 0%, rgba(24, 24, 27, 0.6) 100%);
    pointer-events: none;
}
.about-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 36rem;
    margin: 0 auto;
}
.about-hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 1rem;
    color: var(--white);
    letter-spacing: -0.02em;
}
@media (min-width: 768px) {
    .about-hero-title { font-size: 3.25rem; }
}
.about-hero-subtitle {
    font-size: 1rem;
    line-height: 1.65;
    margin: 0 0 1.5rem;
    color: rgba(255, 255, 255, 0.92);
}
@media (min-width: 768px) {
    .about-hero-subtitle { font-size: 1.125rem; margin-bottom: 2rem; }
}
.about-hero-cta {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background 0.2s, transform 0.2s;
}
.about-hero-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* About Mission (2 columns) */
.about-mission { background: var(--slate-50); }
.about-mission-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}
@media (min-width: 1024px) {
    .about-mission-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}
.about-mission-title { margin-bottom: 1.25rem; }
.about-mission-text .about-desc { margin-bottom: 1.25rem; }
.about-mission-text .about-desc:last-of-type { margin-bottom: 0; }
.about-mission-media {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(24, 24, 27, 0.12);
}
.about-mission-media img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* About Timeline */
.about-timeline-section { background: var(--white); }
.about-timeline-heading { margin-bottom: 3rem; }
.about-timeline {
    position: relative;
    max-width: 48rem;
    margin: 0 auto;
    padding-left: 0;
}
.about-timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--slate-200));
    transform: translateX(-50%);
}
@media (max-width: 767px) {
    .about-timeline::before { left: 1.25rem; transform: none; }
}
.about-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding-bottom: 2.5rem;
    padding-left: 0;
}
.about-timeline-item:last-child { padding-bottom: 0; }
@media (min-width: 768px) {
    .about-timeline-item {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: start;
        padding-left: 0;
    }
    .about-timeline-item-left .about-timeline-marker { order: 1; }
    .about-timeline-item-left .about-timeline-content { order: 2; text-align: left; }
    .about-timeline-item-right .about-timeline-marker { order: 2; }
    .about-timeline-item-right .about-timeline-content { order: 1; text-align: right; }
}
.about-timeline-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 800;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
@media (max-width: 767px) {
    .about-timeline-marker { width: 3rem; height: 3rem; font-size: 0.75rem; margin-left: 0; }
    .about-timeline-item-left .about-timeline-content,
    .about-timeline-item-right .about-timeline-content { text-align: left; }
}
.about-timeline-content {
    background: var(--slate-50);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--slate-100);
}
@media (min-width: 768px) {
    .about-timeline-content { padding: 1.75rem; }
}
.about-timeline-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--navy-900);
    margin: 0 0 0.5rem;
}
.about-timeline-desc {
    font-size: 0.9375rem;
    color: var(--slate-600);
    line-height: 1.6;
    margin: 0;
}

/* About Trust cards */
.about-trust { background: var(--slate-50); }
.about-trust-heading { margin-bottom: 2.5rem; }
.about-trust-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .about-trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }
}
@media (min-width: 1024px) {
    .about-trust-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}
.about-trust-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 1.75rem;
    border: 1px solid var(--slate-100);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.about-trust-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(24, 24, 27, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
}
.about-trust-card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    margin-bottom: 1.25rem;
    background-size: 1.5rem 1.5rem;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.25s ease;
}
.about-trust-card:hover .about-trust-card-icon {
    transform: scale(1.08);
}
.about-trust-icon-experience {
    background-color: rgba(37, 99, 235, 0.1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318181b' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E");
}
.about-trust-icon-reliability {
    background-color: rgba(245, 197, 24, 0.1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5c518' stroke-width='2'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
}
.about-trust-icon-customer {
    background-color: rgba(37, 99, 235, 0.1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318181b' stroke-width='2'%3E%3Cpath d='M17 21v-2a4 4 0 00-4-4H5a4 4 0 00-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 00-3-3.87M16 3.13a4 4 0 010 7.75'/%3E%3C/svg%3E");
}
.about-trust-icon-innovation {
    background-color: rgba(245, 197, 24, 0.1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5c518' stroke-width='2'%3E%3Cpath d='M9 18h6'/%3E%3Cpath d='M10 22h4'/%3E%3Cpath d='M15.09 14c.2-.98.65-1.74 1.17-2.5A4.65 4.65 0 0018 8 6 6 0 006 8c0 1 .23 2.23 1.5 3.5A4.61 4.61 0 019 14'/%3E%3C/svg%3E");
}
.about-trust-card-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--navy-900);
    margin: 0 0 0.5rem;
}
.about-trust-card-desc {
    font-size: 0.875rem;
    color: var(--slate-600);
    line-height: 1.6;
    margin: 0;
}

/* ===== Palette Bianco + Giallo - contrasto pulsanti accent ===== */
.btn-accent { background: var(--accent); color: #18181b; }
.btn-accent:hover, .btn-accent:focus { background: #18181b; color: #ffffff; }
.about-hero-cta { color: #18181b; }
.about-hero-cta:hover { background: var(--accent-hover); color: #18181b; }
.btn-newsletter { color: #18181b; }
.cookie-btn-accept:hover { background: #18181b; color: #ffffff; }
/* ===================================================================
   REDESIGN - Chi Siamo (about-v2) + Aree di business (areas-v2)
   Palette: bianco + giallo (#f5c518) + ink (#18181b)
=================================================================== */

/* --- Chi Siamo --- */
.about-v2 { background: var(--white); }
.about-v2-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}
@media (min-width: 992px) {
    .about-v2-top { grid-template-columns: 1.05fr 1fr; gap: 4.5rem; }
}
.about-v2-intro .section-label { color: var(--navy-900); }
.about-v2-intro .section-label::after {
    content: "";
    display: inline-block;
    width: 2.25rem;
    height: 3px;
    background: var(--accent);
    margin-left: 0.75rem;
    vertical-align: middle;
}
.about-v2-title { max-width: 18ch; }
.about-v2-intro .about-desc { max-width: 46ch; }
.about-v2-cta { margin-top: 0.5rem; }

.about-v2-media {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(24, 24, 27, 0.18);
}
.about-v2-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 340px;
    max-height: 520px;
    object-fit: cover;
}
.about-v2-badge {
    position: absolute;
    left: 1.25rem;
    bottom: 1.25rem;
    right: 1.25rem;
    max-width: 22rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 0.85rem;
    box-shadow: 0 14px 30px rgba(24, 24, 27, 0.22);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--navy-900);
}
.about-v2-badge-line {
    flex: 0 0 auto;
    width: 4px;
    align-self: stretch;
    border-radius: 4px;
    background: var(--accent);
}

.about-v2-pillars {
    margin-top: 4.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.25rem 2.5rem;
}
@media (min-width: 640px) {
    .about-v2-pillars { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
    .about-v2-pillars { grid-template-columns: repeat(4, 1fr); gap: 0 2.5rem; }
}
.about-v2-pillar {
    position: relative;
    padding-top: 1.5rem;
    border-top: 2px solid var(--slate-200);
    transition: border-color 0.3s ease;
}
.about-v2-pillar:hover { border-top-color: var(--accent); }
.about-v2-pillar-num {
    display: block;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--accent-hover);
    margin-bottom: 1.1rem;
}
.about-v2-pillar .about-card-icon { margin-bottom: 1.1rem; }
.about-v2-pillar h3 {
    color: var(--navy-900);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.6rem;
}
.about-v2-pillar p {
    color: var(--slate-600);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* --- Aree di business (bento) --- */
.areas-v2 { background: var(--slate-50); }
.areas-v2-header { max-width: 60rem; margin-bottom: 3rem; }
.areas-v2-header .section-label { color: var(--navy-900); }
.areas-v2-lead {
    color: var(--slate-600);
    font-size: 1.08rem;
    line-height: 1.7;
    max-width: 52rem;
    margin: 0.5rem 0 0;
}
.areas-v2-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 768px) {
    .areas-v2-grid { grid-template-columns: repeat(3, 1fr); }
    .areas-v2-card-wide { grid-column: span 2; }
    .areas-v2-card-narrow { grid-column: span 1; }
}
.areas-v2-card {
    position: relative;
    display: block;
    min-height: 300px;
    border-radius: 1.25rem;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    box-shadow: 0 16px 40px rgba(24, 24, 27, 0.16);
    transform: translateZ(0);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
@media (min-width: 768px) {
    .areas-v2-card { min-height: 360px; }
}
.areas-v2-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 56px rgba(24, 24, 27, 0.28);
}
.areas-v2-card-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(24, 24, 27, 0.92) 0%, rgba(24, 24, 27, 0.45) 45%, rgba(24, 24, 27, 0.08) 100%);
    transition: opacity 0.35s ease;
}
.areas-v2-card-body {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.75rem;
    color: var(--white);
}
.areas-v2-tag {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--navy-900);
    background: var(--accent);
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    margin-bottom: 0.9rem;
}
.areas-v2-name {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 0.5rem;
    color: var(--white);
}
.areas-v2-desc {
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
    max-width: 44ch;
}
.areas-v2-arrow {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    transition: background 0.3s ease, transform 0.3s ease;
}
.areas-v2-arrow::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 1.1rem;
    height: 1.1rem;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7'/%3E%3Cpath d='M8 7h9v9'/%3E%3C/svg%3E");
}
.areas-v2-card:hover .areas-v2-arrow {
    background: var(--accent);
    transform: translate(2px, -2px);
}
.areas-v2-card:hover .areas-v2-arrow::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318181b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7'/%3E%3Cpath d='M8 7h9v9'/%3E%3C/svg%3E");
}
/* ===================================================================
   REDESIGN - I Nostri Valori (accordion espandibile e animato)
=================================================================== */
.values-v2 { background: var(--white); }
.values-v2-head { text-align: center; margin-bottom: 3rem; }
.values-v2-head .section-label { color: var(--navy-900); }
.values-v2 .values-line { margin: 1.25rem auto 0; }

.values-v2-accordion {
    display: flex;
    gap: 1rem;
    min-height: 440px;
}
.values-v2-panel {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    border-radius: 1.25rem;
    background: #18181b;
    color: #ffffff;
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    outline: none;
    transition: flex-grow 0.55s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease, box-shadow 0.4s ease;
}
.values-v2-panel:hover,
.values-v2-panel:focus-visible,
.values-v2-panel.is-open {
    flex-grow: 3.2;
    box-shadow: 0 24px 50px rgba(24, 24, 27, 0.28);
}
.values-v2-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 2.5rem;
    background: var(--accent);
    border-radius: 0 0 4px 0;
    transition: width 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.values-v2-panel:hover::before,
.values-v2-panel:focus-visible::before,
.values-v2-panel.is-open::before { width: 72%; }

.values-v2-index {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(255, 255, 255, 0.18);
    transition: color 0.4s ease;
}
.values-v2-panel:hover .values-v2-index,
.values-v2-panel:focus-visible .values-v2-index,
.values-v2-panel.is-open .values-v2-index { color: var(--accent); }

.values-v2-panel .value-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 0 1.1rem;
    background: transparent;
    border: none;
}
.values-v2-panel .value-icon::before {
    background-size: 30px 30px;
    filter: brightness(0) invert(1);
}
.values-v2-panel h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: #ffffff;
    white-space: nowrap;
}
.values-v2-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
    max-width: 30ch;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.45s ease 0.1s, transform 0.45s ease 0.1s;
}
.values-v2-panel:hover .values-v2-desc,
.values-v2-panel:focus-visible .values-v2-desc,
.values-v2-panel.is-open .values-v2-desc {
    opacity: 1;
    transform: none;
}

@media (max-width: 767px) {
    .values-v2-accordion { flex-direction: column; min-height: 0; }
    .values-v2-panel,
    .values-v2-panel:hover,
    .values-v2-panel.is-open { flex: none; }
    .values-v2-panel::before { width: 40%; }
    .values-v2-panel h3 { white-space: normal; }
    .values-v2-desc { opacity: 1; transform: none; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
    .values-v2-panel,
    .values-v2-panel::before,
    .values-v2-desc { transition: none; }
}
/* ===== Legal pages (Privacy / Cookie Policy) ===== */
.legal-page {
    background: var(--white, #fff);
    padding: 9rem 0 5rem;
}
@media (min-width: 768px) {
    .legal-page { padding: 11rem 0 6rem; }
}
.legal-container {
    max-width: 52rem;
}
.legal-head {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--slate-200, #e2e8f0);
}
.legal-title {
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--navy-900, #0f172a);
    margin: 0 0 0.5rem;
}
@media (min-width: 768px) {
    .legal-title { font-size: 2.75rem; }
}
.legal-updated {
    font-size: 0.9rem;
    color: var(--slate-600, #475569);
    margin: 0;
}
.legal-section {
    margin-bottom: 2rem;
}
.legal-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy-900, #0f172a);
    margin: 0 0 0.75rem;
}
.legal-section p,
.legal-section li {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--slate-700, #334155);
}
.legal-section ul {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
}
.legal-section li {
    margin-bottom: 0.5rem;
}
.legal-section a {
    color: var(--accent, #2563eb);
    text-decoration: underline;
}
.legal-section a:hover {
    color: var(--accent-hover, #1d4ed8);
}
