/* Il Sito Facile — stile globale (come home) */
:root {
    --blu: #122d4d;
    --blu-soft: #1e4a72;
    --arancio: #d4621f;
    --arancio-glow: #e88a45;
    --gold: #c4a35a;
    --verde-logo: #5da833;
    --verde-wa: #25d366;
    --scuro: #0c1829;
    --grigio-chiaro: #f4f6f9;
    --bianco: #ffffff;
    --cream: #faf8f5;
    --blu-deep: #0a1f35;
    --shadow-premium: 0 28px 60px rgba(18, 45, 77, 0.09);
    --shadow-luxury: 0 40px 80px rgba(12, 24, 41, 0.12);
    --font-display: 'Outfit', system-ui, sans-serif;
    --font-body: 'Figtree', system-ui, sans-serif;
    --ease-luxury: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-silk: cubic-bezier(0.25, 0.8, 0.35, 1);
    --motion-enter: 1.25s;
    --motion-reveal: 1.4s;
    --motion-stagger: 0.14s;
    --header-offset: 90px;
    --header-offset-mobile: 80px;
    --below-header-gap: 1.5rem;
    --below-header-gap-mobile: 28px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--scuro);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(196, 163, 90, 0.06), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(30, 74, 114, 0.04), transparent 50%),
        radial-gradient(ellipse 50% 35% at 0% 80%, rgba(212, 98, 31, 0.03), transparent 45%);
    pointer-events: none;
    z-index: 0;
}
body > * { position: relative; z-index: 1; }

.container { max-width: 1100px; margin: auto; padding: 0 20px; }

h1, h2, h3, .page-title, .card-title {
    font-family: var(--font-display);
}

/* HEADER — logo e voci sempre visibili; barra solo allo scroll */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    min-height: 90px;
    padding: 5px 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
    transition:
        background 0.55s var(--ease-luxury),
        box-shadow 0.55s var(--ease-luxury),
        backdrop-filter 0.55s var(--ease-luxury),
        border-color 0.55s var(--ease-luxury);
}
header.header-visible {
    background: rgba(250, 248, 245, 0.92);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-bottom-color: rgba(196, 163, 90, 0.15);
    box-shadow: 0 8px 32px rgba(18, 45, 77, 0.08);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; position: relative; }
.logo img {
    height: 85px;
    width: auto;
    display: block;
    transition: transform 0.5s var(--ease-luxury), filter 0.5s ease;
}
.logo:hover img { transform: scale(1.02); filter: drop-shadow(0 4px 12px rgba(18, 45, 77, 0.1)); }

.desktop-nav { display: flex; align-items: center; gap: 32px; }
.nav-link {
    color: var(--blu);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.01em;
    transition: color 0.4s var(--ease-luxury);
}
.nav-link:hover { color: var(--arancio); }
.nav-link.active {
    color: var(--arancio);
}

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 10px; z-index: 1001; }
.hamburger span { display: block; width: 30px; height: 3px; background: var(--blu); margin: 6px 0; transition: transform 0.45s var(--ease-luxury), opacity 0.35s ease; border-radius: 3px; }

.mobile-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    padding: 20px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    text-align: center;
    border-top: 1px solid #f1f5f9;
    backdrop-filter: blur(10px);
    z-index: 1001;
}
.mobile-menu a { display: block; padding: 15px 0; color: var(--blu); text-decoration: none; font-weight: 700; font-size: 1.2rem; border-bottom: 1px solid #f1f5f9; }
.mobile-menu a.btn-nav { color: white; background: var(--blu); border-bottom: none; display: inline-block; margin-top: 10px; border-radius: 50px; }
.mobile-menu a.btn-nav:hover { color: white; background: var(--arancio); }
.mobile-menu.active { display: flex; }

.hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.btn-nav {
    background: linear-gradient(135deg, var(--blu) 0%, var(--blu-soft) 100%);
    color: white;
    padding: 13px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    transition: all 0.5s var(--ease-luxury);
    box-shadow: 0 6px 24px rgba(18, 45, 77, 0.22), inset 0 1px 0 rgba(255,255,255,0.12);
}
.btn-nav:hover {
    background: linear-gradient(135deg, var(--arancio) 0%, var(--arancio-glow) 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(212, 98, 31, 0.35);
}

/* Pulsante WhatsApp verde con icona ufficiale */
.btn-wa-green {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 34px;
    border-radius: 50px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    letter-spacing: 0.02em;
    text-decoration: none;
    color: white !important;
    background: var(--verde-wa);
    border: none;
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.35);
    transition: transform 0.5s var(--ease-luxury), box-shadow 0.5s var(--ease-luxury), background-color 0.35s ease;
}
.btn-wa-green img {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}
@media (hover: hover) and (pointer: fine) {
    .btn-wa-green:hover {
        transform: translateY(-2px);
        background: #20ba5a;
        box-shadow: 0 14px 36px rgba(37, 211, 102, 0.42);
        color: white !important;
    }
}

/* CTA finale — WhatsApp, telefono, email */
.cta-section .btn-whatsapp img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}
.cta-section .btn-call {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    padding: 18px 38px;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    margin: 10px;
    letter-spacing: 0.02em;
    transition: all 0.5s var(--ease-luxury);
    border: 1px solid rgba(255, 255, 255, 0.35);
}
.cta-section .btn-call svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}
@media (hover: hover) and (pointer: fine) {
    .cta-section .btn-call:hover {
        transform: translateY(-3px);
        background: rgba(255, 255, 255, 0.2);
        color: white;
    }
}
@media (max-width: 768px) {
    .cta-section .btn-whatsapp,
    .cta-section .btn-call,
    .cta-section .btn-email {
        width: 100%;
        justify-content: center;
    }
}

/* ANIMAZIONI — fluide e luxury */
@keyframes luxuryEnter {
    from {
        opacity: 0;
        transform: translate3d(0, 18px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.reveal {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    filter: blur(3px);
    transition:
        opacity var(--motion-reveal) var(--ease-luxury),
        transform var(--motion-reveal) var(--ease-luxury),
        filter var(--motion-reveal) var(--ease-luxury);
    backface-visibility: hidden;
}
.reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
}

.page-header {
    text-align: center;
    padding-top: calc(var(--header-offset) + var(--below-header-gap));
    padding-bottom: 40px;
    opacity: 0;
    animation: luxuryEnter var(--motion-enter) var(--ease-luxury) 0.15s forwards;
}

/* Servizi + I Nostri Lavori — fascia titolo con sfondo (non full screen) */
.page-header-banner {
    width: 100%;
    text-align: center;
    padding-top: calc(var(--header-offset) + var(--below-header-gap) + 1.5rem);
    padding-bottom: 3.5rem;
    padding-left: 20px;
    padding-right: 20px;
    position: relative;
    background-color: var(--cream);
    background-image:
        linear-gradient(
            to bottom,
            rgba(250, 248, 245, 0.42) 0%,
            rgba(250, 248, 245, 0.55) 38%,
            rgba(250, 248, 245, 0.72) 62%,
            rgba(250, 248, 245, 0.9) 82%,
            #faf8f5 100%
        ),
        url('sfondo2.jpg');
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
    margin-bottom: 0;
    border: none;
    opacity: 0;
    animation: luxuryEnter var(--motion-enter) var(--ease-luxury) 0.15s forwards;
}
.page-header-banner .container {
    position: relative;
    z-index: 1;
}
.page-header-banner .page-title {
    color: var(--blu);
    text-shadow: 0 2px 28px rgba(255, 255, 255, 0.92), 0 1px 3px rgba(255, 255, 255, 0.6);
    hyphens: none;
    -webkit-hyphens: none;
}
.page-header-banner .page-subtitle {
    color: #2d3f52;
    text-shadow: 0 1px 20px rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.page-title {
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    color: var(--blu);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}
.page-subtitle {
    color: #5a6b7d;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 15px auto 0;
    font-weight: 400;
}

.portfolio-grid > .portfolio-card:not(.card-empty),
.other-sectors,
.portfolio-grid > .portfolio-card.card-empty {
    opacity: 0;
    animation: luxuryEnter var(--motion-enter) var(--ease-luxury) forwards;
}
.portfolio-grid > .portfolio-card:not(.card-empty):nth-child(1) { animation-delay: 0.18s; }
.portfolio-grid > .portfolio-card:not(.card-empty):nth-child(2) { animation-delay: 0.32s; }
.portfolio-grid > .portfolio-card.card-empty { animation-delay: 0.46s; }
.other-sectors { animation-delay: 0.5s; }

.portfolio-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(196, 163, 90, 0.15);
    box-shadow: var(--shadow-premium);
    transition: transform 0.75s var(--ease-luxury), box-shadow 0.75s var(--ease-luxury);
    backface-visibility: hidden;
}
.portfolio-card:hover {
    box-shadow: var(--shadow-luxury);
}

.card-title { font-weight: 700; color: var(--blu); }

.hero-section {
    padding-top: calc(var(--header-offset) + var(--below-header-gap)) !important;
    opacity: 0;
    animation: luxuryEnter 1.35s var(--ease-luxury) 0.12s forwards;
}
.feature-box {
    opacity: 0;
    animation: luxuryEnter var(--motion-enter) var(--ease-luxury) forwards;
}
.features-grid .feature-box:nth-child(1) { animation-delay: 0.2s; }
.features-grid .feature-box:nth-child(2) { animation-delay: 0.34s; }
.features-grid .feature-box:nth-child(3) { animation-delay: 0.48s; }

.btn-outline {
    transition: all 0.5s var(--ease-luxury);
}

.wa-floating {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 9998;
    transition: transform 0.55s var(--ease-luxury), background-color 0.4s ease, box-shadow 0.55s var(--ease-luxury);
    animation: waGlowSoft 4.5s var(--ease-silk) infinite;
}
.wa-floating:hover { transform: scale(1.08); background-color: #20ba5a; }
@keyframes waGlowSoft {
    0%, 100% { box-shadow: 0 4px 18px rgba(0,0,0,0.28), 0 0 0 0 rgba(37, 211, 102, 0.12); }
    50% { box-shadow: 0 6px 22px rgba(0,0,0,0.22), 0 0 0 10px rgba(37, 211, 102, 0); }
}
.wa-floating img { width: 35px; height: 35px; }

/* FOOTER */
.site-footer {
    width: 100%;
    background: linear-gradient(180deg, #0c1829 0%, #0a1422 100%);
    margin: 0;
    padding: 60px 0 30px;
    color: white;
    font-family: var(--font-body);
}
.site-footer .container { max-width: 1100px; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: left;
    margin-bottom: 40px;
    align-items: center;
}
.footer-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.footer-col-brand {
    align-self: center;
}
.footer-logo {
    display: inline-block;
    margin-bottom: 16px;
}
.footer-logo img {
    height: 86px;
    width: auto;
    display: block;
    filter: brightness(1.05);
    transition: transform 0.5s var(--ease-luxury);
}
.footer-logo:hover img { transform: scale(1.03); }
.footer-desc {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.65;
}
.footer-heading {
    margin: 0 0 12px;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--arancio-glow);
    font-family: var(--font-display);
    letter-spacing: 0.02em;
    line-height: 1.3;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 2;
}
.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.35s var(--ease-luxury);
    font-size: 0.95rem;
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
    border-top: 1px solid #1e293b;
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    color: #94a3b8;
}
.footer-bottom p { margin-bottom: 5px; font-size: 0.95rem; }
.footer-bottom p:last-child { font-size: 0.75rem; }

#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(12, 24, 41, 0.96);
    color: white;
    padding: 20px;
    text-align: center;
    z-index: 9999;
    font-size: 14px;
    font-family: var(--font-body);
    border-top: 1px solid rgba(196, 163, 90, 0.35);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    backdrop-filter: blur(12px);
}
#cookie-banner button {
    background: linear-gradient(135deg, var(--arancio), var(--arancio-glow));
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.4s var(--ease-luxury);
}
#cookie-banner button:hover { transform: translateY(-2px); }

@media (min-width: 769px) {
    .footer-grid {
        grid-template-columns: minmax(240px, 1.45fr) repeat(3, 1fr);
        gap: 48px 40px;
        align-items: center;
    }
    .footer-col:not(.footer-col-brand) {
        min-height: 0;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    header { min-height: 80px; }
    .logo img { height: 65px; }
    .header-inner { justify-content: space-between; }
    .desktop-nav { display: none; }
    .hamburger { display: block; }
    .page-header {
        padding-top: calc(var(--header-offset-mobile) + var(--below-header-gap-mobile));
        padding-bottom: 28px;
    }
    .page-header-banner {
        padding-top: calc(var(--header-offset-mobile) + var(--below-header-gap-mobile) + 1.25rem);
        padding-bottom: 2.75rem;
        padding-left: 16px;
        padding-right: 16px;
        background-position: center 32%;
    }
    .hero-section {
        padding-top: calc(var(--header-offset-mobile) + var(--below-header-gap-mobile)) !important;
    }
    body > .container {
        margin-top: calc(var(--header-offset-mobile) + var(--below-header-gap-mobile));
    }
    .page-title { font-size: clamp(1.85rem, 7.5vw, 2.4rem); }
    .page-subtitle { font-size: 1rem; padding: 0 16px; line-height: 1.65; }
    .portfolio-grid { gap: 28px; }
    .card-content { padding: 22px 18px; }
    .card-image-wrapper { height: 210px; }
    .footer-grid {
        gap: 32px;
        align-items: stretch;
    }
    .footer-col {
        text-align: center;
        align-items: center;
    }
    .footer-logo { margin-left: auto; margin-right: auto; }
    .footer-links { text-align: center; }
    .wa-floating { bottom: 85px; right: 20px; width: 55px; height: 55px; }
    .footer-logo img { height: 68px; }
    #cookie-banner { padding: 14px 16px; font-size: 13px; gap: 12px; }
}

/* Titoli sezioni — pagine settore */
.features-section .section-title,
.concept-section .section-title {
    opacity: 0;
    animation: luxuryEnter var(--motion-enter) var(--ease-luxury) 0.22s forwards;
}

/* === Pagine servizio (Artigiani, Beauty, Ristorazione) — luxury === */
body.sector-page .hero-text h1 {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 4.5vw, 3.35rem);
    color: var(--blu);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 1.1rem;
    hyphens: none;
    -webkit-hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}
body.sector-page .hero-lead {
    font-size: 1.12rem;
    color: var(--blu);
    font-weight: 600;
    line-height: 1.55;
    margin-bottom: 0.85rem;
}
body.sector-page .hero-text p:not(.hero-lead) {
    font-size: 1.05rem;
    color: #5a6b7d;
    line-height: 1.75;
    margin-bottom: 0;
    max-width: 36em;
}
body.sector-page .hero-section {
    padding-top: calc(var(--header-offset) + var(--below-header-gap) + 1.35rem) !important;
}
body.sector-page .hero-image img {
    border-radius: 24px;
    box-shadow: var(--shadow-luxury);
    border: 1px solid rgba(196, 163, 90, 0.22);
}
body.sector-page .section-title {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 4vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    padding: 0 12px;
}
body.sector-page .section-title::after {
    content: '';
    display: block;
    width: 52px;
    height: 3px;
    margin: 14px auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--arancio), var(--gold));
}
body.sector-page .section-intro {
    color: #5a6b7d;
    font-size: 1.08rem;
    line-height: 1.75;
    max-width: 680px;
    margin: 0 auto 2.5rem;
    padding: 0 16px;
}
body.sector-page .features-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(250, 248, 245, 0.85) 100%);
    padding: 88px 0;
    border-top: 1px solid rgba(196, 163, 90, 0.18);
    border-bottom: 1px solid rgba(196, 163, 90, 0.1);
}
body.sector-page .feature-box {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(196, 163, 90, 0.2);
    border-radius: 20px;
    padding: 36px 28px;
    box-shadow: var(--shadow-premium);
    text-align: left;
}
body.sector-page .feature-box:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-luxury);
    border-color: rgba(212, 98, 31, 0.35);
}
body.sector-page .feature-box h3 {
    font-family: var(--font-display);
    font-size: 1.28rem;
    color: var(--blu);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
body.sector-page .feature-box p {
    color: #4a5d73;
    font-size: 0.98rem;
    line-height: 1.7;
    font-weight: 400;
}
body.sector-page .feature-icon {
    width: 36px;
    height: 36px;
    color: var(--blu);
    margin-bottom: 14px;
    opacity: 0.88;
}
body.sector-page .concept-section {
    padding: 88px 20px;
    background-color: rgba(255, 255, 255, 0.55);
    background-image:
        radial-gradient(rgba(18, 45, 77, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, transparent, rgba(196, 163, 90, 0.04) 50%, transparent);
    background-size: 36px 36px, 100% 100%;
}
body.sector-page .portfolio-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(196, 163, 90, 0.18);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}
body.sector-page .portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-luxury);
}
body.sector-page .card-image-wrapper {
    height: 250px;
}
body.sector-page .card-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 1px rgba(18, 45, 77, 0.06);
    pointer-events: none;
}
body.sector-page .badge {
    background: linear-gradient(135deg, var(--blu), var(--blu-soft));
    letter-spacing: 0.06em;
    font-size: 0.72rem;
    padding: 6px 14px;
    border-radius: 50px;
    box-shadow: 0 4px 14px rgba(18, 45, 77, 0.2);
}
body.sector-page .card-content {
    padding: 28px 26px 30px;
}
body.sector-page .card-title {
    font-family: var(--font-display);
    font-size: 1.28rem;
    font-weight: 700;
    color: var(--blu);
    margin-bottom: 10px;
}
body.sector-page .card-desc {
    color: #5a6b7d;
    font-size: 0.97rem;
    line-height: 1.65;
}
body.sector-page .cta-section {
    padding: 40px 20px 100px;
    text-align: center;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    max-width: none;
    margin: 0;
}
body.sector-page .cta-section .btn-gigante {
    background: var(--verde-wa);
    color: white;
    padding: 20px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}
@media (max-width: 768px) {
    body.sector-page .hero-section {
        gap: 28px;
    }
    body.sector-page .hero-text h1 {
        font-size: clamp(1.95rem, 6.5vw, 2.35rem);
    }
    body.sector-page .hero-lead,
    body.sector-page .hero-text p:not(.hero-lead) {
        font-size: 1rem;
    }
    body.sector-page .features-section,
    body.sector-page .concept-section {
        padding: 56px 0;
    }
    body.sector-page .concept-section {
        padding-left: 16px;
        padding-right: 16px;
    }
    body.sector-page .feature-box {
        padding: 28px 22px;
    }
    body.sector-page .hero-section {
        padding-top: calc(var(--header-offset-mobile) + var(--below-header-gap-mobile) + 1rem) !important;
    }
    body.sector-page .cta-section {
        padding: 40px 16px 60px;
    }
    body.sector-page .cta-section .btn-gigante {
        width: 100%;
        font-size: 0.95rem;
        padding: 18px 16px;
    }
    body.sector-page .card-image-wrapper {
        height: 220px;
    }
}

/* Privacy / Cookie — entrata morbida + distacco navbar */
body > .container {
    margin-top: calc(var(--header-offset) + var(--below-header-gap));
    opacity: 0;
    animation: luxuryEnter var(--motion-enter) var(--ease-luxury) 0.08s forwards;
}
body > .container .back-home {
    transition: color 0.45s var(--ease-luxury), transform 0.45s var(--ease-luxury);
}
body > .container .back-home:hover {
    transform: translateX(-3px);
}

/* Transizioni uniformi — override stili inline pagina */
.feature-box,
.portfolio-card,
.modal-trigger,
.btn-outline,
.btn-wa-alt,
.btn-gigante,
.close-modal,
.modal-caption a,
.other-sectors,
.step-card {
    transition-timing-function: var(--ease-luxury) !important;
}
.feature-box {
    transition-property: transform, box-shadow, border-color !important;
    transition-duration: 0.75s !important;
}
.portfolio-card {
    transition-property: transform, box-shadow !important;
    transition-duration: 0.75s !important;
}
.card-image-wrapper img,
.hero-image img {
    transition-property: transform, filter !important;
    transition-duration: 0.9s !important;
    transition-timing-function: var(--ease-luxury) !important;
}
.btn-outline,
.btn-wa-alt,
.btn-gigante,
.close-modal,
.modal-caption a,
.modal-trigger {
    transition-duration: 0.55s !important;
}
.btn-gigante {
    animation: waGlowSoft 4.5s var(--ease-silk) infinite !important;
}
.btn-gigante:hover,
.btn-wa-alt:hover {
    transform: scale(1.04) !important;
}
@media (prefers-reduced-motion: reduce) {
    header,
    header.header-visible {
        background: rgba(250, 248, 245, 0.92);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: 0 1px 0 rgba(196, 163, 90, 0.15), 0 8px 32px rgba(18, 45, 77, 0.04);
    }
    .page-header, .page-header-banner, .portfolio-grid > .portfolio-card, .other-sectors,
    .hero-section, .feature-box, .reveal, .wa-floating,
    .features-section .section-title, .concept-section .section-title,
    body > .container {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }
}
