/* css/style.css */
@import url('theme.css');

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-primary);
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    background:
        radial-gradient(circle at 20% 0%, rgba(185, 150, 74, 0.16), transparent 32%),
        linear-gradient(180deg, var(--bg-soft) 0%, var(--bg-primary) 42%, var(--bg-secondary) 100%);
    color: var(--text-primary);
}

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

a {
    color: inherit;
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 22px 50px;
    background: rgba(247, 243, 234, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(185, 150, 74, 0.22);
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-container img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-menu a,
.nav-dropdown > a {
    color: var(--text-primary) !important;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.76rem;
    letter-spacing: 2.7px;
    font-weight: 500;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-dropdown:hover > a {
    color: var(--accent) !important;
}

.nav-cta {
    padding: 11px 17px;
    border: 1px solid var(--accent);
    border-radius: 999px;
}

.nav-cta:hover {
    background: var(--accent);
    color: #fff !important;
}

.nav-dropdown {
    position: relative;
    padding: 18px 0;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 210px;
    background: rgba(255, 250, 240, 0.96);
    border: 1px solid var(--accent-soft);
    box-shadow: var(--shadow-soft);
    border-radius: 18px;
    padding: 14px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.dropdown-menu a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    letter-spacing: 1.8px;
    margin: 0;
}

.dropdown-menu a:hover {
    background: var(--accent-soft);
}

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

/* Hero */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
}

.video-container {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(14, 58, 74, 0.28), rgba(247, 243, 234, 0.86)),
        radial-gradient(circle at 50% 45%, rgba(255,255,255,0.05), transparent 42%);
    z-index: 2;
}

.light-overlay {
    background: linear-gradient(to bottom, rgba(14, 58, 74, 0.18), rgba(247, 243, 234, 0.92));
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 980px;
    padding: 120px 24px 60px;
}

.hero-logo {
    height: 190px;
    width: auto;
    margin: 0 auto 30px;
    object-fit: contain;
    filter: drop-shadow(0 18px 32px rgba(0,0,0,0.18));
}

.eyebrow {
    margin: 0 0 15px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.76rem;
    font-weight: 700;
}

.hero-content h1,
.hero-content h2,
.section-heading h2,
.focus-content h2,
.brevo-form-container h2 {
    font-family: var(--font-display);
    color: var(--text-primary);
    font-weight: 500;
}

.hero-content h1 {
    font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: 0.95;
    letter-spacing: 8px;
    margin: 0 0 25px;
    text-shadow: 0 12px 35px rgba(255,255,255,0.38);
}

.hero-subtitle {
    margin: 0 auto;
    max-width: 680px;
    color: var(--sea);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.95rem;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    font-weight: 700;
    transition: var(--transition-fast);
}

.btn-primary {
    background: var(--sea);
    color: #fff;
    box-shadow: 0 18px 40px rgba(14, 58, 74, 0.22);
}

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

.btn-secondary {
    border: 1px solid var(--accent);
    color: var(--sea);
    background: rgba(255,255,255,0.35);
}

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

/* Sezioni comuni */
.section-light,
.models-section,
.gallery-section,
.italy-network-section,
.brochure-section {
    position: relative;
    padding: 130px 50px;
}

.section-heading {
    max-width: 840px;
    margin: 0 auto 70px;
    text-align: center;
}

.section-heading.left-heading {
    margin-left: 0;
    text-align: left;
}

.section-heading h2 {
    font-size: clamp(2.1rem, 4vw, 4rem);
    line-height: 1.1;
    margin: 0 0 22px;
    letter-spacing: 1px;
}

.section-heading p {
    margin: 0 auto;
    max-width: 700px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.left-heading p {
    margin-left: 0;
}

/* Modelli */
.models-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
}

.model-card {
    background: rgba(255, 250, 240, 0.78);
    border: 1px solid var(--border-soft);
    border-radius: 34px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.model-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
    border-color: var(--accent-soft);
}

.model-image-wrap {
    position: relative;
    height: 380px;
    overflow: hidden;
}

.model-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.model-badge {
    position: absolute;
    top: 22px;
    left: 22px;
    padding: 10px 14px;
    background: var(--sea);
    color: #fff;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.68rem;
    font-weight: 700;
}

.model-badge.soft {
    background: rgba(255,255,255,0.78);
    color: var(--sea);
}

.model-content {
    padding: 38px;
}

.model-content h3 {
    margin: 0 0 18px;
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 500;
}

.model-content p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.model-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 26px;
}

.model-specs span {
    padding: 10px 13px;
    border-radius: 999px;
    background: var(--sea-soft);
    color: var(--sea);
    font-size: 0.75rem;
    font-weight: 700;
}

.muted-specs span {
    background: rgba(24,33,43,0.06);
    color: var(--text-muted);
}

.text-link {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover {
    color: var(--sea);
}

/* Focus prodotto */
.product-focus {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    min-height: 720px;
    background: var(--sea);
    color: #fff;
}

.focus-media {
    height: 100%;
    min-height: 720px;
}

.focus-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.focus-content {
    padding: 80px;
}

.focus-content h2 {
    color: #fff;
    font-size: clamp(2.2rem, 4vw, 4.6rem);
    line-height: 1.08;
    margin: 0 0 24px;
}

.focus-content p:not(.eyebrow) {
    color: rgba(255,255,255,0.78);
    line-height: 1.9;
    margin-bottom: 34px;
}

/* Gallery */
.gallery-hero {
    min-height: 62vh;
}

.compact-hero h2 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 5rem);
    letter-spacing: 3px;
    margin: 0;
}

.gallery-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: -35px 0 35px;
}

.gallery-tabs a {
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: rgba(255,255,255,0.32);
    color: var(--sea);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.72rem;
    font-weight: 700;
    transition: var(--transition-fast);
}

.gallery-tabs a:hover {
    background: var(--sea);
    color: #fff;
}

.gallery-split {
    display: flex;
    gap: 25px;
    height: 75vh;
}

.gallery-block {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    text-decoration: none;
    background: var(--sea);
}

.gallery-block:hover {
    flex: 1.7;
    border-color: var(--accent);
    box-shadow: var(--shadow-strong);
}

.gallery-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(72%) saturate(0.92);
    transition: var(--transition-smooth);
}

.gallery-block:hover img {
    filter: brightness(96%) saturate(1.05);
    transform: scale(1.035);
}

.block-title {
    position: absolute;
    bottom: 44px;
    left: 44px;
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: #fff;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 2px 18px rgba(0,0,0,0.55);
}

.gallery-video-card {
    display: grid;
    grid-template-columns: 1fr 0.75fr;
    gap: 34px;
    align-items: center;
    margin-top: 34px;
    background: rgba(255,250,240,0.8);
    border: 1px solid var(--border-soft);
    border-radius: 34px;
    padding: 28px;
    box-shadow: var(--shadow-soft);
}

.gallery-video-card video {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 24px;
}

.gallery-video-card h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin: 0 0 15px;
}

.gallery-video-card p:not(.eyebrow) {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Rete Italia */
.italy-network-section {
    background:
        linear-gradient(135deg, rgba(255,250,240,0.88), rgba(235,227,211,0.88)),
        radial-gradient(circle at 80% 20%, rgba(14,58,74,0.12), transparent 35%);
}

.network-layout {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.network-map-card {
    position: relative;
    min-height: 560px;
    border-radius: 42px;
    background:
        linear-gradient(145deg, rgba(14,58,74,0.94), rgba(14,58,74,0.74)),
        radial-gradient(circle at 45% 35%, rgba(255,255,255,0.16), transparent 35%);
    box-shadow: var(--shadow-strong);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.24);
}

.map-watermark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: clamp(5rem, 12vw, 10rem);
    color: rgba(255,255,255,0.08);
    letter-spacing: 10px;
    transform: rotate(-12deg);
    user-select: none;
}

.pin-3d {
    position: absolute;
    width: 18px;
    height: 18px;
    z-index: 100;
    transform: translate(-50%, -50%);
}

.pin-core {
    width: 14px;
    height: 14px;
    background: radial-gradient(circle, #ffffff 0%, var(--accent) 78%);
    border-radius: 50%;
    box-shadow: 0 0 18px var(--accent), 0 8px 18px rgba(0,0,0,0.35);
}

.pulse-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 24px;
    height: 24px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    opacity: 0;
    animation: pinPulse 2s infinite ease-out;
}

@keyframes pinPulse {
    0% { transform: scale(0.6); opacity: 0; }
    50% { opacity: 0.85; }
    100% { transform: scale(2.4); opacity: 0; }
}

.network-card {
    position: absolute;
    bottom: 34px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 245px;
    background: rgba(255, 250, 240, 0.96);
    border: 1px solid var(--accent-soft);
    padding: 22px;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    text-align: left;
    transition: var(--transition-fast);
}

.network-card h3 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-primary);
}

.network-card p {
    margin: 0 0 15px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.network-card a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.pin-3d:hover .network-card {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.network-copy {
    background: rgba(255,250,240,0.72);
    border: 1px solid var(--border-soft);
    border-radius: 34px;
    padding: 48px;
    box-shadow: var(--shadow-soft);
}

.network-copy h3 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.1;
    margin: 0 0 22px;
}

.network-copy p:not(.eyebrow) {
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 32px;
}

/* Brochure */
.brochure-section {
    display: flex;
    justify-content: center;
    background: var(--bg-primary);
}

.brevo-form-container {
    width: 100%;
    max-width: 720px;
    background: rgba(255,250,240,0.9);
    padding: 62px;
    border: 1px solid rgba(185, 150, 74, 0.3);
    border-radius: 38px;
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.brevo-form-container h2 {
    font-size: clamp(2rem, 4vw, 3.3rem);
    margin: 0 0 18px;
}

.brevo-form-container > p:not(.eyebrow) {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 28px;
}

#brevo-form-target {
    border: 1px dashed var(--accent);
    border-radius: 22px;
    padding: 28px;
    color: var(--text-secondary);
    background: rgba(185,150,74,0.08);
}

#brevo-form-target p {
    margin: 0;
}

/* Animazioni leggere */
.reveal-soft {
    animation: revealSoft 1.15s ease both;
}

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

/* Responsive */
@media (max-width: 980px) {
    .main-header {
        padding: 18px 24px;
        align-items: flex-start;
    }

    .nav-menu {
        gap: 14px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .models-grid,
    .product-focus,
    .gallery-video-card,
    .network-layout {
        grid-template-columns: 1fr;
    }

    .focus-media,
    .product-focus {
        min-height: auto;
    }

    .focus-media {
        height: 460px;
    }

    .focus-content {
        padding: 60px 38px;
    }

    .gallery-split {
        flex-direction: column;
        height: auto;
    }

    .gallery-block {
        min-height: 420px;
    }
}

@media (max-width: 720px) {
    .main-header {
        position: absolute;
        flex-direction: column;
        background: rgba(247,243,234,0.92);
    }

    .nav-menu {
        justify-content: flex-start;
    }

    .nav-menu a,
    .nav-dropdown > a {
        font-size: 0.68rem;
        letter-spacing: 1.8px;
    }

    .dropdown-menu {
        left: 0;
        transform: translateY(8px);
    }

    .nav-dropdown:hover .dropdown-menu {
        transform: translateY(0);
    }

    .hero-logo {
        height: 118px;
    }

    .hero-content h1 {
        letter-spacing: 4px;
    }

    .section-light,
    .models-section,
    .gallery-section,
    .italy-network-section,
    .brochure-section {
        padding: 90px 22px;
    }

    .model-image-wrap {
        height: 280px;
    }

    .model-content,
    .network-copy,
    .brevo-form-container {
        padding: 30px;
    }

    .network-map-card {
        min-height: 430px;
    }
}

/* === GALLERY SLIDER SIDE ARROWS FIX === */
.gallery-editorial {
    align-items: flex-end;
}

.gallery-slider-shell {
    position: relative !important;
    width: 100% !important;
    overflow: hidden !important;
    border-radius: var(--radius-xl) !important;
    border: 1px solid rgba(185,150,74,.25) !important;
    box-shadow: var(--shadow-soft) !important;
    background: var(--blue-deep) !important;
}

.gallery-slider {
    position: relative !important;
    width: 100% !important;
    height: min(72vh, 720px) !important;
    min-height: 520px !important;
    overflow: hidden !important;
}

.gallery-slide {
    position: absolute !important;
    inset: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateX(24px) scale(1.01) !important;
    transition: opacity .42s ease, transform .42s ease, visibility .42s ease !important;
}

.gallery-slide.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) scale(1) !important;
    z-index: 2 !important;
}

.gallery-slide img,
.gallery-slide video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    background: #0e3a4a !important;
}

.gallery-control-btn {
    width: 54px !important;
    height: 54px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255,255,255,.42) !important;
    background: rgba(255,255,255,.78) !important;
    color: var(--blue-deep) !important;
    font-size: 2.2rem !important;
    line-height: 1 !important;
    cursor: pointer !important;
    transition: var(--transition-fast) !important;
    display: grid !important;
    place-items: center !important;
    z-index: 6 !important;
}

.gallery-slider-shell > .gallery-control-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.gallery-control-prev {
    left: 22px !important;
}

.gallery-control-next {
    right: 22px !important;
}

.gallery-control-btn:hover:not(:disabled) {
    background: var(--blue-deep) !important;
    color: #fff !important;
    border-color: var(--blue-deep) !important;
}

.gallery-control-btn:disabled {
    opacity: .35 !important;
    cursor: default !important;
}

.gallery-counter {
    min-width: 72px !important;
    text-align: right !important;
    color: var(--text-secondary) !important;
    font-size: .78rem !important;
    letter-spacing: 1.7px !important;
    font-weight: 700 !important;
}

.gallery-slide::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background:
        linear-gradient(to top, rgba(14,58,74,.58), transparent 48%),
        linear-gradient(to right, rgba(14,58,74,.16), transparent 42%) !important;
    pointer-events: none !important;
}

.gallery-slide-caption {
    position: absolute !important;
    left: clamp(24px, 4vw, 48px) !important;
    bottom: clamp(24px, 4vw, 46px) !important;
    z-index: 3 !important;
    color: #fff !important;
}

.gallery-slide-caption span {
    display: inline-flex !important;
    margin-bottom: 12px !important;
    padding: 8px 12px !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.12) !important;
    border: 1px solid rgba(255,255,255,.28) !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    font-size: .68rem !important;
    font-weight: 700 !important;
}

.gallery-slide-caption strong {
    display: block !important;
    font-family: var(--font-display) !important;
    font-size: clamp(2rem, 4vw, 4.2rem) !important;
    letter-spacing: 4px !important;
    text-transform: uppercase !important;
}

.gallery-slide-empty {
    display: grid !important;
    place-items: center !important;
    background:
        linear-gradient(135deg, rgba(14,58,74,.92), rgba(14,58,74,.62)),
        radial-gradient(circle at top right, rgba(185,150,74,.32), transparent 38%) !important;
}

.gallery-empty-message {
    max-width: 700px !important;
    padding: clamp(28px, 5vw, 56px) !important;
    text-align: center !important;
    color: #fff !important;
    z-index: 3 !important;
}

.gallery-empty-message span {
    display: inline-flex !important;
    margin-bottom: 14px !important;
    padding: 8px 12px !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.12) !important;
    border: 1px solid rgba(255,255,255,.28) !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    font-size: .68rem !important;
    font-weight: 700 !important;
}

.gallery-empty-message strong {
    display: block !important;
    font-family: var(--font-display) !important;
    font-size: clamp(2.2rem, 5vw, 4.8rem) !important;
    letter-spacing: 4px !important;
    text-transform: uppercase !important;
    margin-bottom: 16px !important;
}

.gallery-empty-message p {
    color: rgba(255,255,255,.82) !important;
    line-height: 1.7 !important;
    margin: 0 !important;
}

@media(max-width: 640px) {
    .gallery-slider {
        height: 58vh !important;
        min-height: 360px !important;
    }

    .gallery-control-btn {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.8rem !important;
    }

    .gallery-control-prev {
        left: 12px !important;
    }

    .gallery-control-next {
        right: 12px !important;
    }
}
/* === FINE GALLERY SLIDER SIDE ARROWS FIX === */

/* === SECTION BACKGROUND ALTERNANCE === */

/* Base comune: transizione morbida tra le sezioni */
section {
    position: relative;
}

/* Sezioni chiare, calde e pulite */
.section-light {
    background:
        linear-gradient(180deg, rgba(255, 250, 241, 0.96), rgba(247, 239, 224, 0.88));
}

/* Engineering: tono leggermente tecnico/azzurrato */
#engineering {
    background:
        radial-gradient(circle at top left, rgba(185, 150, 74, 0.10), transparent 34%),
        linear-gradient(135deg, rgba(238, 246, 247, 0.96), rgba(255, 250, 241, 0.90));
}

/* Gallery: separazione più scenografica ma sempre elegante */
.gallery-section {
    background:
        radial-gradient(circle at 80% 0%, rgba(14, 58, 74, 0.10), transparent 36%),
        linear-gradient(180deg, rgba(255, 250, 241, 0.92), rgba(232, 240, 241, 0.86));
}

/* Rete Italia: fondo caldo diverso dalla gallery */
#rete-italia {
    background:
        radial-gradient(circle at top right, rgba(185, 150, 74, 0.13), transparent 32%),
        linear-gradient(180deg, rgba(250, 244, 232, 0.96), rgba(255, 250, 241, 0.88));
}

/* Brochure / contatti: chiusura più profonda e premium */
#brochure,
.contact-section,
.brochure-section {
    background:
        linear-gradient(135deg, rgba(14, 58, 74, 0.95), rgba(20, 80, 98, 0.88)),
        radial-gradient(circle at top right, rgba(185, 150, 74, 0.24), transparent 38%);
    color: #fff;
}

/* Se in brochure ci sono testi scuri ereditati, li rendo leggibili */
#brochure h1,
#brochure h2,
#brochure h3,
#brochure p,
#brochure .section-kicker,
.contact-section h1,
.contact-section h2,
.contact-section h3,
.contact-section p,
.brochure-section h1,
.brochure-section h2,
.brochure-section h3,
.brochure-section p {
    color: inherit;
}

/* Piccola separazione luminosa tra blocchi adiacenti */
.section-light + .section-light,
#engineering + .gallery-section,
.gallery-section + #rete-italia,
#rete-italia + #brochure {
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.44);
}

/* Effetto pannelli interni più leggibile sugli sfondi alternati */
#engineering .container,
.gallery-section .container,
#rete-italia .container {
    position: relative;
    z-index: 1;
}

/* Mobile: sfondi leggermente meno complessi per prestazioni e leggibilità */
@media(max-width: 640px) {
    #engineering,
    .gallery-section,
    #rete-italia {
        background:
            linear-gradient(180deg, rgba(255, 250, 241, 0.96), rgba(238, 246, 247, 0.88));
    }

    #brochure,
    .contact-section,
    .brochure-section {
        background: linear-gradient(135deg, rgba(14, 58, 74, 0.96), rgba(20, 80, 98, 0.92));
    }
}

/* === FINE SECTION BACKGROUND ALTERNANCE === */

/* === SECTION MENU LABELS === */
.section-menu-label {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0 0 clamp(30px, 4vw, 54px);
    pointer-events: none;
}

.section-menu-label span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 168px;
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid rgba(185, 150, 74, 0.24);
    background: rgba(255, 255, 255, 0.38);
    color: rgba(14, 58, 74, 0.78);
    font-family: var(--font-primary);
    font-size: clamp(.68rem, .8vw, .78rem);
    font-weight: 700;
    letter-spacing: 2.4px;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 12px 34px rgba(14, 58, 74, 0.06);
    backdrop-filter: blur(12px) saturate(130%);
    -webkit-backdrop-filter: blur(12px) saturate(130%);
}

.section-menu-label span::before,
.section-menu-label span::after {
    content: "";
    width: 26px;
    height: 1px;
    background: rgba(185, 150, 74, 0.42);
}

.section-menu-label span::before {
    margin-right: 14px;
}

.section-menu-label span::after {
    margin-left: 14px;
}

/* Variante su sezioni scure, tipo Brochure */
#brochure .section-menu-label span,
.contact-section .section-menu-label span,
.brochure-section .section-menu-label span {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.86);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.12);
}

#brochure .section-menu-label span::before,
#brochure .section-menu-label span::after,
.contact-section .section-menu-label span::before,
.contact-section .section-menu-label span::after,
.brochure-section .section-menu-label span::before,
.brochure-section .section-menu-label span::after {
    background: rgba(255, 255, 255, 0.34);
}

/* La label della Gallery deve restare sopra lo slider */
.gallery-section .section-menu-label {
    margin-bottom: clamp(26px, 3vw, 44px);
}

/* Engineering vuota: tiene comunque una presenza elegante finché non inseriamo contenuti */
#engineering .container {
    min-height: clamp(220px, 28vw, 380px);
}

#engineering .section-menu-label {
    margin-bottom: 0;
}

@media(max-width: 640px) {
    .section-menu-label {
        margin-bottom: 28px;
    }

    .section-menu-label span {
        min-width: 0;
        padding: 9px 16px;
        letter-spacing: 1.6px;
        font-size: .64rem;
    }

    .section-menu-label span::before,
    .section-menu-label span::after {
        width: 18px;
    }

    .section-menu-label span::before {
        margin-right: 10px;
    }

    .section-menu-label span::after {
        margin-left: 10px;
    }
}
/* === FINE SECTION MENU LABELS === */

/* === HERO MAIN CLAIM FINAL SMALL === */
/* Selettore molto specifico: agisce solo sulla scritta "Your Shell of Comfort" */
html body #home.hero-section .hero-content h1.hero-main-claim {
    font-size: clamp(1.1rem, 2.45vw, 2.65rem) !important;
    line-height: 1.12 !important;
    letter-spacing: clamp(2px, 0.35vw, 4px) !important;
    margin: 0 0 20px !important;
    max-width: none !important;
    white-space: nowrap !important;
}

/* Fallback nel caso il browser non veda la classe per qualsiasi motivo */
html body #home.hero-section .hero-content > h1 {
    font-size: clamp(1.1rem, 2.45vw, 2.65rem) !important;
    line-height: 1.12 !important;
    letter-spacing: clamp(2px, 0.35vw, 4px) !important;
    margin: 0 0 20px !important;
    white-space: nowrap !important;
}

@media(max-width: 640px) {
    html body #home.hero-section .hero-content h1.hero-main-claim,
    html body #home.hero-section .hero-content > h1 {
        font-size: clamp(1rem, 6.2vw, 1.75rem) !important;
        letter-spacing: 2px !important;
        white-space: normal !important;
    }
}
/* === FINE HERO MAIN CLAIM FINAL SMALL === */

/* === OMAYA GALLERY MENU ELEGANT === */

/* Header attuale mantenuto */
.omaya-header,
.omaya-header * {
    box-sizing: border-box;
}

.omaya-header {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1180px, calc(100% - 48px));
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 13px 20px;
    overflow: visible;
    background: rgba(255, 250, 241, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 999px;
    box-shadow: 0 12px 34px rgba(14, 58, 74, 0.08);
    backdrop-filter: blur(12px) saturate(135%);
    -webkit-backdrop-filter: blur(12px) saturate(135%);
}

.omaya-logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.omaya-logo a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.omaya-logo img {
    display: block;
    width: auto;
    height: 42px;
    object-fit: contain;
}

.omaya-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(18px, 2.4vw, 34px);
    flex: 1 1 auto;
    min-width: 0;
    overflow: visible;
}

.omaya-nav-link {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    color: #17313a;
    text-decoration: none !important;
    text-transform: uppercase;
    font-family: var(--font-primary, 'Montserrat', sans-serif);
    font-size: .74rem;
    letter-spacing: 2.2px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.omaya-nav-link:hover {
    color: var(--accent-hover, #b9964a);
}

.omaya-nav-cta {
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid rgba(185, 150, 74, 0.70);
    background: rgba(255, 250, 241, 0.18);
    color: #17313a;
}

/* Gallery dropdown */
.omaya-gallery-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    overflow: visible;
}

.omaya-gallery-dropdown::after {
    content: "";
    position: absolute;
    left: -18px;
    right: -18px;
    top: 100%;
    height: 18px;
    background: transparent;
    pointer-events: auto;
}

.omaya-gallery-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    display: block;
    width: max-content;
    min-width: 220px;
    max-width: 340px;
    padding: 10px;
    border-radius: 22px;
    background: rgba(255, 250, 241, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.62);
    box-shadow: 0 24px 60px rgba(14, 58, 74, 0.20);
    backdrop-filter: blur(20px) saturate(145%);
    -webkit-backdrop-filter: blur(20px) saturate(145%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 99999;
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}

.omaya-gallery-dropdown:hover .omaya-gallery-panel,
.omaya-gallery-panel.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.omaya-gallery-model-item {
    position: relative;
    display: block;
    width: 100%;
}

.omaya-gallery-model-item + .omaya-gallery-model-item {
    margin-top: 4px;
}

.omaya-gallery-model-choice,
.omaya-gallery-category-choice {
    text-decoration: none !important;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

/* Nome barca */
.omaya-gallery-model-choice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    color: #17242d;
    font-family: var(--font-primary, 'Montserrat', sans-serif);
    font-size: .76rem;
    letter-spacing: 1.5px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background .22s ease, color .22s ease, transform .22s ease;
}

.omaya-gallery-model-choice::after {
    content: "›";
    font-size: 1.05rem;
    line-height: 1;
    opacity: .55;
    transition: transform .22s ease, opacity .22s ease;
}

.omaya-gallery-model-item:hover > .omaya-gallery-model-choice,
.omaya-gallery-model-item.active > .omaya-gallery-model-choice {
    background: #0e3a4a;
    color: #fff;
}

.omaya-gallery-model-item:hover > .omaya-gallery-model-choice::after,
.omaya-gallery-model-item.active > .omaya-gallery-model-choice::after {
    transform: translateX(2px);
    opacity: .9;
}

/* Ponte invisibile verso il sotto-sotto menu */
.omaya-gallery-model-item::after {
    content: "";
    position: absolute;
    top: -10px;
    left: 100%;
    width: 18px;
    height: calc(100% + 20px);
    background: transparent;
    pointer-events: auto;
}

/* Categorie visibili solo passando sulla barca */
.omaya-gallery-category-submenu {
    position: absolute;
    top: -10px;
    left: calc(100% + 12px);
    display: block;
    width: max-content;
    min-width: 190px;
    padding: 10px;
    border-radius: 22px;
    background: rgba(255, 250, 241, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.62);
    box-shadow: 0 24px 60px rgba(14, 58, 74, 0.18);
    backdrop-filter: blur(20px) saturate(145%);
    -webkit-backdrop-filter: blur(20px) saturate(145%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(8px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
    z-index: 100000;
}

.omaya-gallery-model-item:hover > .omaya-gallery-category-submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

.omaya-gallery-category-choice {
    display: block;
    padding: 11px 13px;
    margin-top: 4px;
    border-radius: 14px;
    color: #17242d;
    font-family: var(--font-primary, 'Montserrat', sans-serif);
    font-size: .72rem;
    letter-spacing: 1.5px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background .22s ease, color .22s ease;
}

.omaya-gallery-category-choice:first-child {
    margin-top: 0;
}

.omaya-gallery-category-choice:hover,
.omaya-gallery-category-choice.active {
    background: #0e3a4a;
    color: #fff;
}

/* Distanza titoli sezione ridotta */
#engineering,
#gallery,
#rete-italia,
#brochure {
    margin: 0 !important;
    padding: 0 !important;
    scroll-margin-top: 112px !important;
}

#engineering > .container,
#gallery > .container,
#rete-italia > .container,
#brochure > .container,
#rete-italia.rete-section > .container {
    width: min(1180px, calc(100% - 48px)) !important;
    margin-inline: auto !important;
    padding-top: clamp(18px, 2vw, 30px) !important;
    padding-bottom: clamp(64px, 7vw, 104px) !important;
}

#engineering .section-menu-label,
#gallery .section-menu-label,
#rete-italia .section-menu-label,
#brochure .section-menu-label {
    margin: 0 0 clamp(24px, 2.8vw, 36px) !important;
    padding: 0 !important;
}

@media(max-width: 980px) {
    .omaya-header {
        width: min(100% - 24px, 1180px);
        top: 14px;
        padding: 11px 14px;
        gap: 14px;
    }

    .omaya-logo img {
        height: 34px;
    }

    .omaya-nav {
        gap: 14px;
        overflow-x: auto;
        overflow-y: visible;
        justify-content: flex-start;
    }

    .omaya-gallery-panel {
        left: 0;
        transform: translateX(0) translateY(8px);
    }

    .omaya-gallery-dropdown:hover .omaya-gallery-panel,
    .omaya-gallery-panel.is-open {
        transform: translateX(0) translateY(0);
    }

    .omaya-gallery-category-submenu {
        position: static;
        display: none;
        margin: 4px 0 8px 10px;
        box-shadow: none;
        border-radius: 16px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }

    .omaya-gallery-model-item:hover > .omaya-gallery-category-submenu {
        display: block;
    }
}

@media(max-width: 640px) {
    .omaya-header {
        border-radius: 28px;
    }

    .omaya-logo img {
        height: 30px;
    }

    .omaya-nav-link {
        font-size: .56rem;
        letter-spacing: .75px;
    }

    .omaya-nav-cta {
        padding: 8px 11px;
    }

    .omaya-gallery-panel {
        min-width: 210px;
    }

    .omaya-gallery-model-choice,
    .omaya-gallery-category-choice {
        font-size: .68rem;
        letter-spacing: 1px;
        padding: 11px 12px;
    }

    #engineering > .container,
    #gallery > .container,
    #rete-italia > .container,
    #brochure > .container,
    #rete-italia.rete-section > .container {
        width: min(100% - 28px, 1180px) !important;
        padding-top: 18px !important;
        padding-bottom: 58px !important;
    }
}

/* === FINE OMAYA GALLERY MENU ELEGANT === */

/* === OMAYA MENU HOVER FINAL === */

/* Hover uniforme su tutte le voci dell'header */
.omaya-nav-link {
    position: relative;
    transition:
        color .24s ease,
        background .24s ease,
        border-color .24s ease,
        box-shadow .24s ease,
        transform .24s ease;
}

.omaya-nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -9px;
    width: 0;
    height: 1px;
    transform: translateX(-50%);
    background: rgba(185, 150, 74, 0.86);
    transition: width .24s ease;
    pointer-events: none;
}

.omaya-nav-link:hover,
.omaya-gallery-dropdown:hover > .omaya-gallery-toggle {
    color: var(--accent-hover, #b9964a);
    transform: translateY(-1px);
}

.omaya-nav-link:hover::after,
.omaya-gallery-dropdown:hover > .omaya-gallery-toggle::after {
    width: 62%;
}

/* Brochure evidenziata come pill, ma coerente col resto */
.omaya-nav-cta {
    position: relative;
    overflow: hidden;
}

.omaya-nav-cta::after {
    display: none;
}

.omaya-nav-cta:hover {
    color: #ffffff !important;
    background: var(--blue-deep, #0e3a4a) !important;
    border-color: var(--blue-deep, #0e3a4a) !important;
    box-shadow: 0 14px 34px rgba(14, 58, 74, 0.18);
    transform: translateY(-1px);
}

/* Evita sottolineature native su tutti i link del menu e dropdown */
.omaya-header a,
.omaya-gallery-panel a,
.omaya-gallery-category-submenu a {
    text-decoration: none !important;
}

/* Piccolo focus accessibile senza effetto cheap */
.omaya-header a:focus-visible {
    outline: 1px solid rgba(185, 150, 74, 0.65);
    outline-offset: 5px;
    border-radius: 999px;
}

/* === FINE OMAYA MENU HOVER FINAL === */

/* === GALLERY MENU: UN SOLO ELEMENTO EVIDENZIATO ===
   Durante il passaggio del mouse viene sospesa visivamente la selezione
   precedente. Quando si esce dal menu torna visibile la scelta attiva. */

/* Primo livello: modelli direttamente sotto Gallery */
.omaya-gallery-panel:has(.omaya-gallery-model-item:hover)
.omaya-gallery-model-item.active:not(:hover) > .omaya-gallery-model-choice {
    background: transparent;
    color: #17242d;
    transform: none;
}

.omaya-gallery-panel:has(.omaya-gallery-model-item:hover)
.omaya-gallery-model-item.active:not(:hover) > .omaya-gallery-model-choice::after {
    transform: none;
    opacity: .55;
}

/* Secondo livello: Esterni, Interni, Dettagli e Video */
.omaya-gallery-category-submenu:has(.omaya-gallery-category-choice:hover)
.omaya-gallery-category-choice.active:not(:hover) {
    background: transparent;
    color: #17242d;
}

/* Il focus da tastiera segue la stessa regola del passaggio del mouse. */
.omaya-gallery-panel:has(.omaya-gallery-model-choice:focus-visible)
.omaya-gallery-model-item.active:not(:focus-within) > .omaya-gallery-model-choice,
.omaya-gallery-category-submenu:has(.omaya-gallery-category-choice:focus-visible)
.omaya-gallery-category-choice.active:not(:focus-visible) {
    background: transparent;
    color: #17242d;
}

.omaya-gallery-panel:has(.omaya-gallery-model-choice:focus-visible)
.omaya-gallery-model-item.active:not(:focus-within) > .omaya-gallery-model-choice::after {
    transform: none;
    opacity: .55;
}

/* === FINE GALLERY MENU: UN SOLO ELEMENTO EVIDENZIATO === */


/* === ENGINEERING SMALL IMAGES - SAFE ADDON === */
#engineering .container {
    min-height: auto;
}

#engineering .section-menu-label {
    margin-bottom: clamp(34px, 4vw, 58px);
}

#engineering .engineering-story {
    display: flex;
    flex-direction: column;
    gap: clamp(42px, 5vw, 76px);
}

#engineering .engineering-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: center;
    gap: clamp(24px, 4vw, 58px);
}

#engineering .engineering-row.engineering-image-left {
    grid-template-columns: 280px minmax(0, 1fr);
}

#engineering .engineering-copy {
    max-width: 680px;
}

#engineering .engineering-copy h3 {
    margin: 10px 0 14px;
    color: rgba(14, 58, 74, 0.96);
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 2.1vw, 2.2rem);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: 0.02em;
}

#engineering .engineering-copy p {
    margin: 0;
    color: rgba(35, 53, 58, 0.78);
    font-family: var(--font-primary);
    font-size: clamp(0.98rem, 1vw, 1.08rem);
    line-height: 1.82;
    font-weight: 400;
    text-align: justify;
    text-justify: inter-word;
}

#engineering .engineering-step {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: rgba(185, 150, 74, 0.92);
    font-family: var(--font-primary);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: 2.8px;
    text-transform: uppercase;
}

#engineering .engineering-step::after {
    content: "";
    width: 38px;
    height: 1px;
    background: rgba(185, 150, 74, 0.48);
}

#engineering .engineering-media {
    width: 280px !important;
    max-width: 280px !important;
    min-width: 280px !important;
    margin: 0;
    justify-self: center;
    border-radius: 17px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.45);
    box-shadow: 0 18px 42px rgba(14, 58, 74, 0.13);
}

#engineering .engineering-media img {
    display: block;
    width: 280px !important;
    max-width: 280px !important;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
}

@media(max-width: 860px) {
    #engineering .engineering-row,
    #engineering .engineering-row.engineering-image-left {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    #engineering .engineering-media {
        width: 280px !important;
        max-width: min(280px, 100%) !important;
        min-width: 0 !important;
        justify-self: start;
    }

    #engineering .engineering-media img {
        width: 280px !important;
        max-width: 100% !important;
    }

    #engineering .engineering-row.engineering-image-right .engineering-media,
    #engineering .engineering-row.engineering-image-left .engineering-media {
        order: 1;
    }

    #engineering .engineering-row.engineering-image-right .engineering-copy,
    #engineering .engineering-row.engineering-image-left .engineering-copy {
        order: 2;
    }

    #engineering .engineering-copy {
        max-width: 100%;
    }
}
/* === FINE ENGINEERING SMALL IMAGES - SAFE ADDON === */

/* === ENGINEERING TEXT DISTANCE BALANCE === */
#engineering .engineering-row.engineering-image-right .engineering-copy {
    justify-self: end;
}

#engineering .engineering-row.engineering-image-left .engineering-copy {
    justify-self: start;
}

@media(max-width: 860px) {
    #engineering .engineering-row.engineering-image-right .engineering-copy,
    #engineering .engineering-row.engineering-image-left .engineering-copy {
        justify-self: stretch;
    }
}
/* === FINE ENGINEERING TEXT DISTANCE BALANCE === */

/* === GALLERY ROUNDED CORNERS === */
#gallery .gallery-slider-shell {
    border-radius: 24px !important;
    overflow: hidden !important;
}

#gallery .gallery-slider {
    border-radius: 24px !important;
    overflow: hidden !important;
}

#gallery .gallery-slide {
    border-radius: 24px !important;
    overflow: hidden !important;
}

#gallery .gallery-slide img,
#gallery .gallery-slide video {
    border-radius: 24px !important;
    overflow: hidden !important;
}
/* === FINE GALLERY ROUNDED CORNERS === */



.footer-note {
    width: 100%;
    margin-top: 0;
    padding: clamp(30px, 3.8vw, 46px) clamp(24px, 5vw, 72px);
    background: linear-gradient(180deg, #fffaf0 0%, #f7efe0 100%);
    border-top: 1px solid rgba(185, 150, 74, 0.34);
    box-sizing: border-box;
}

.footer-note__inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-note__brand,
.footer-note__credit {
    color: var(--text-primary);
    font-size: clamp(0.95rem, 1.2vw, 1.08rem);
    letter-spacing: 0.06em;
}

.footer-note__credit {
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .footer-note__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-note__credit {
        text-align: left;
    }
}


/* Download brochure disponibile solo dopo la compilazione del modulo Brevo */
.brochure-download-area {
    margin-top: 24px;
    padding: 22px;
    border: 1px solid rgba(185, 150, 74, 0.42);
    border-radius: 22px;
    background: rgba(185, 150, 74, 0.10);
    text-align: center;
}

.brochure-download-area[hidden] {
    display: none !important;
}

.brochure-download-message {
    margin: 0 0 14px;
    color: var(--text-secondary);
}

.brochure-download-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 26px;
    border-radius: 999px;
    background: var(--accent);
    color: #fffaf0;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.brochure-download-link:hover,
.brochure-download-link:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(14, 58, 74, 0.20);
}


/* === CONTROLLI NAVIGAZIONE MOBILE: nascosti su desktop === */
.omaya-menu-toggle,
.omaya-gallery-model-expander,
.omaya-mobile-backdrop {
    display: none;
}
/* === FINE CONTROLLI NAVIGAZIONE MOBILE === */


/* === OMAYA RESPONSIVE MOBILE/TABLET - DESKTOP INVARIATO === */
@media (max-width: 980px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body.omaya-mobile-menu-open {
        overflow: hidden;
        overscroll-behavior: none;
    }

    .omaya-mobile-backdrop {
        position: fixed;
        inset: 0;
        z-index: 9990;
        display: block;
        width: 100%;
        height: 100%;
        padding: 0;
        border: 0;
        background: rgba(8, 31, 39, 0.34);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .22s ease, visibility .22s ease;
    }

    body.omaya-mobile-menu-open .omaya-mobile-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }


    .omaya-header {
        top: 12px;
        width: min(100% - 24px, 720px);
        min-height: 62px;
        padding: 9px 11px 9px 16px;
        gap: 12px;
        border-radius: 32px;
        z-index: 10000;
    }

    .omaya-logo img {
        height: 34px;
    }

    .omaya-menu-toggle {
        position: relative;
        display: inline-flex;
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        margin-left: auto;
        padding: 0;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        border: 1px solid rgba(185, 150, 74, 0.58);
        border-radius: 50%;
        background: rgba(255, 250, 241, 0.74);
        color: #17313a;
        box-shadow: 0 8px 24px rgba(14, 58, 74, 0.10);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .omaya-menu-toggle__line {
        display: block;
        width: 18px;
        height: 1.5px;
        border-radius: 999px;
        background: currentColor;
        transform-origin: center;
        transition: transform .24s ease, opacity .18s ease;
    }

    .omaya-header.is-mobile-menu-open .omaya-menu-toggle__line:nth-child(1) {
        transform: translateY(6.5px) rotate(45deg);
    }

    .omaya-header.is-mobile-menu-open .omaya-menu-toggle__line:nth-child(2) {
        opacity: 0;
    }

    .omaya-header.is-mobile-menu-open .omaya-menu-toggle__line:nth-child(3) {
        transform: translateY(-6.5px) rotate(-45deg);
    }

    .omaya-nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        display: flex;
        width: 100%;
        max-height: calc(100svh - 96px);
        margin: 0;
        padding: 12px;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 4px;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        border: 1px solid rgba(255, 255, 255, 0.72);
        border-radius: 25px;
        background: rgba(255, 250, 241, 0.98);
        box-shadow: 0 26px 70px rgba(14, 58, 74, 0.24);
        backdrop-filter: blur(22px) saturate(145%);
        -webkit-backdrop-filter: blur(22px) saturate(145%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px) scale(.985);
        transform-origin: top center;
        transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
    }

    .omaya-header.is-mobile-menu-open .omaya-nav {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .omaya-nav-link,
    .omaya-nav-cta {
        display: flex;
        width: 100%;
        min-height: 50px;
        padding: 0 17px;
        align-items: center;
        justify-content: flex-start;
        border-radius: 16px;
        font-size: .72rem;
        letter-spacing: 1.65px;
        line-height: 1.25;
    }

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

    .omaya-nav-link:hover,
    .omaya-nav-link:focus-visible,
    .omaya-gallery-dropdown:hover > .omaya-gallery-toggle {
        color: #0e3a4a;
        background: rgba(185, 150, 74, 0.12);
        transform: none;
    }

    .omaya-nav-cta {
        margin-top: 4px;
        border-color: rgba(185, 150, 74, 0.58);
        background: rgba(185, 150, 74, 0.10);
    }

    .omaya-gallery-dropdown {
        display: block;
        width: 100%;
    }

    .omaya-gallery-dropdown::after {
        display: none;
    }

    .omaya-gallery-toggle::before {
        content: "";
        order: 2;
        width: 10px;
        height: 10px;
        margin-left: auto;
        margin-right: 4px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: translateY(-2px) rotate(45deg);
        transform-origin: center;
        transition: transform .22s ease;
        flex: 0 0 auto;
    }

    .omaya-gallery-toggle[aria-expanded="true"]::before {
        transform: translateY(3px) rotate(225deg);
    }

    .omaya-gallery-panel,
    .omaya-gallery-dropdown:hover .omaya-gallery-panel {
        position: static;
        display: none;
        width: 100%;
        min-width: 0;
        max-width: none;
        margin: 3px 0 7px;
        padding: 7px;
        border-radius: 18px;
        background: rgba(14, 58, 74, 0.055);
        border: 1px solid rgba(14, 58, 74, 0.08);
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }

    .omaya-gallery-panel.is-open,
    .omaya-gallery-dropdown:hover .omaya-gallery-panel.is-open {
        display: block;
        transform: none;
    }

    .omaya-gallery-model-item {
        display: grid;
        width: 100%;
        grid-template-columns: minmax(0, 1fr) 44px;
        align-items: center;
        column-gap: 4px;
    }

    .omaya-gallery-model-item::after {
        display: none;
    }

    .omaya-gallery-model-choice {
        min-width: 0;
        min-height: 46px;
        padding: 0 13px;
        font-size: .70rem;
        letter-spacing: 1.15px;
        white-space: normal;
    }

    .omaya-gallery-model-choice::after {
        display: none;
    }

    .omaya-gallery-model-expander {
        display: inline-grid;
        width: 40px;
        height: 40px;
        place-items: center;
        border: 0;
        border-radius: 13px;
        background: rgba(255, 255, 255, 0.58);
        color: #17313a;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .omaya-gallery-model-choice {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .omaya-gallery-model-expander {
        transition: background-color .2s ease, transform .2s ease;
    }

    .omaya-gallery-model-expander:active {
        transform: scale(.96);
    }

    .omaya-gallery-model-chevron {
        display: block;
        width: 10px;
        height: 10px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: translateY(-2px) rotate(45deg);
        transition: transform .22s ease;
    }

    .omaya-gallery-model-expander[aria-expanded="true"] .omaya-gallery-model-chevron {
        transform: translateY(3px) rotate(225deg);
    }

    .omaya-gallery-model-item.is-submenu-open > .omaya-gallery-model-choice,
    .omaya-gallery-model-item.is-submenu-open > .omaya-gallery-model-expander {
        background: rgba(185, 150, 74, 0.12);
    }

    .omaya-gallery-category-submenu,
    .omaya-gallery-model-item:hover > .omaya-gallery-category-submenu {
        position: static;
        display: none;
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
        margin: 4px 0 6px;
        padding: 6px 6px 6px 13px;
        border: 0;
        border-left: 1px solid rgba(185, 150, 74, 0.42);
        border-radius: 0 14px 14px 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }

    .omaya-gallery-model-item.is-submenu-open > .omaya-gallery-category-submenu,
    .omaya-gallery-model-item.is-submenu-open:hover > .omaya-gallery-category-submenu {
        display: block;
    }

    .omaya-gallery-category-choice {
        min-height: 43px;
        padding: 0 13px;
        display: flex;
        align-items: center;
        font-size: .68rem;
        letter-spacing: 1px;
        white-space: normal;
    }

    #home.hero-section {
        min-height: 100svh;
    }

    #home .hero-content {
        width: min(100%, 760px);
        padding: 112px 22px 52px;
    }

    #home .hero-logo {
        height: clamp(112px, 20vw, 150px);
        margin-bottom: 24px;
    }

    #engineering,
    #gallery,
    #rete-italia,
    #brochure {
        scroll-margin-top: 92px !important;
    }

    #engineering > .container,
    #gallery > .container,
    #rete-italia > .container,
    #brochure > .container,
    #rete-italia.rete-section > .container {
        width: min(100% - 36px, 760px) !important;
        padding-bottom: 70px !important;
    }

    #engineering .engineering-row,
    #engineering .engineering-row.engineering-image-left {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    #engineering .engineering-row.engineering-image-right .engineering-media,
    #engineering .engineering-row.engineering-image-left .engineering-media {
        order: 1;
        justify-self: start;
    }

    #engineering .engineering-row.engineering-image-right .engineering-copy,
    #engineering .engineering-row.engineering-image-left .engineering-copy {
        order: 2;
        justify-self: stretch;
        max-width: 100%;
    }

    .gallery-editorial {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 18px;
    }

    .gallery-editorial h2,
    #galleryModelTitle {
        margin-right: 0;
        overflow-wrap: anywhere;
    }

    .gallery-slider {
        height: min(62svh, 580px) !important;
        min-height: 420px !important;
    }

    .gallery-control-btn {
        width: 48px !important;
        height: 48px !important;
    }

    .gallery-control-prev {
        left: 14px !important;
    }

    .gallery-control-next {
        right: 14px !important;
    }

    #rete-italia .section-content,
    #rete-italia .rete-content,
    #rete-italia .rete-grid {
        width: 100%;
        max-width: 100%;
    }

    #rete-italia .rete-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    #rete-italia .rete-card {
        min-width: 0;
        padding: 26px;
        border: 1px solid rgba(185, 150, 74, 0.22);
        border-radius: 24px;
        background: rgba(255, 250, 241, 0.56);
    }

    #brochure.brochure-section {
        padding-inline: 18px;
    }

    #brochure .brevo-form-container {
        width: min(100%, 720px);
        max-width: 100%;
        padding: 42px 30px;
        border-radius: 30px;
    }

    #brevo-form-target,
    #brevo-form-target .sib-form,
    #brevo-form-target .sib-form-container,
    #brevo-form-target #sib-container,
    #brevo-form-target form {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    #brevo-form-target input,
    #brevo-form-target select,
    #brevo-form-target textarea,
    #brevo-form-target button {
        max-width: 100%;
    }

    .footer-note {
        padding-inline: 28px;
    }
}

@media (max-width: 640px) {
    .omaya-header {
        width: calc(100% - 20px);
        top: 10px;
        min-height: 58px;
        padding: 8px 9px 8px 14px;
    }

    .omaya-logo img {
        height: 30px;
    }

    .omaya-menu-toggle {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .omaya-nav {
        max-height: calc(100svh - 84px);
        padding: 10px;
        border-radius: 22px;
    }

    .omaya-nav-link,
    .omaya-nav-cta {
        min-height: 48px;
        padding-inline: 15px;
        font-size: .68rem;
        letter-spacing: 1.35px;
    }

    #home .hero-content {
        padding: 102px 18px 44px;
    }

    #home .hero-logo {
        height: 112px;
    }

    #engineering > .container,
    #gallery > .container,
    #rete-italia > .container,
    #brochure > .container,
    #rete-italia.rete-section > .container {
        width: calc(100% - 28px) !important;
        padding-bottom: 58px !important;
    }

    #engineering .engineering-story {
        gap: 42px;
    }

    #engineering .engineering-media,
    #engineering .engineering-media img {
        width: min(100%, 280px) !important;
        max-width: 100% !important;
    }

    #engineering .engineering-copy p,
    #rete-italia p {
        text-align: left;
        hyphens: auto;
    }

    .gallery-editorial {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .gallery-counter {
        min-width: 0 !important;
        text-align: left !important;
    }

    .gallery-slider {
        height: 54svh !important;
        min-height: 340px !important;
        max-height: 520px !important;
    }

    .gallery-control-btn {
        width: 42px !important;
        height: 42px !important;
        font-size: 1.7rem !important;
    }

    .gallery-control-prev {
        left: 9px !important;
    }

    .gallery-control-next {
        right: 9px !important;
    }

    .gallery-slide-caption {
        left: 18px !important;
        right: 18px !important;
        bottom: 20px !important;
    }

    .gallery-slide-caption strong {
        font-size: clamp(1.6rem, 10vw, 2.7rem) !important;
        letter-spacing: 2px !important;
        overflow-wrap: anywhere;
    }

    #rete-italia .section-heading {
        margin-bottom: 34px;
    }

    #rete-italia .rete-card {
        padding: 22px;
        border-radius: 21px;
    }

    #brochure.brochure-section {
        padding: 72px 14px;
    }

    #brochure .brevo-form-container {
        padding: 32px 18px;
        border-radius: 25px;
    }

    #brevo-form-target {
        padding: 18px;
        border-radius: 18px;
    }

    #brevo-form-target input,
    #brevo-form-target select,
    #brevo-form-target textarea,
    #brevo-form-target button,
    #brevo-form-target [role="button"] {
        min-height: 44px;
        font-size: 16px !important;
    }

    .brochure-download-link {
        width: 100%;
        min-height: 48px;
        padding-inline: 18px;
    }

    .footer-note {
        padding: 30px 22px;
    }

    .footer-note__inner {
        align-items: flex-start;
        gap: 12px;
    }

    .footer-note__brand,
    .footer-note__credit {
        overflow-wrap: anywhere;
    }
}

@media (prefers-reduced-motion: reduce) {
    .omaya-menu-toggle__line,
    .omaya-nav,
    .omaya-mobile-backdrop,
    .omaya-gallery-toggle::before,
    .omaya-gallery-model-expander span {
        transition: none !important;
    }
}
/* === FINE OMAYA RESPONSIVE MOBILE/TABLET === */


/* === GALLERY ARROW FINAL: NO PLUS, NO CACHE AMBIGUITY === */
@media (max-width: 980px) {
    .omaya-gallery-toggle::before,
    .omaya-gallery-toggle::after {
        content: none !important;
        display: none !important;
    }

    .omaya-gallery-toggle-label {
        min-width: 0;
    }

    .omaya-gallery-toggle-chevron {
        display: block !important;
        width: 10px;
        height: 10px;
        margin-left: auto;
        margin-right: 4px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: translateY(-2px) rotate(45deg);
        transform-origin: center;
        transition: transform .22s ease;
        flex: 0 0 auto;
    }

    .omaya-gallery-toggle[aria-expanded="true"] .omaya-gallery-toggle-chevron {
        transform: translateY(3px) rotate(225deg);
    }
}
/* === FINE GALLERY ARROW FINAL === */


/* === MOBILE: IMMAGINI DELLE SEZIONI CENTRATE === */
@media (max-width: 980px) {
    #engineering .engineering-row.engineering-image-right .engineering-media,
    #engineering .engineering-row.engineering-image-left .engineering-media,
    #engineering .engineering-media {
        justify-self: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    #engineering .engineering-media img {
        display: block;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    #gallery .gallery-slider-shell,
    #gallery .gallery-slider,
    #rete-italia img,
    #brochure img {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    #rete-italia img,
    #brochure img {
        display: block;
        max-width: 100%;
        height: auto;
    }
}
/* === FINE MOBILE: IMMAGINI DELLE SEZIONI CENTRATE === */


/* === PROSSIMI EVENTI + ENGINEERING SENZA NUMERI === */
#engineering .engineering-copy h3 {
    margin-top: 0;
}

#events {
    background:
        radial-gradient(circle at 12% 0%, rgba(14, 58, 74, 0.10), transparent 34%),
        radial-gradient(circle at 92% 100%, rgba(185, 150, 74, 0.15), transparent 36%),
        linear-gradient(180deg, rgba(236, 244, 245, 0.96), rgba(255, 250, 241, 0.93));
}

.events-section {
    padding: clamp(82px, 8vw, 128px) 0;
}

.events-section > .container {
    width: min(calc(100% - 48px), 1180px);
    margin: 0 auto;
}

.events-heading {
    width: min(100%, 760px);
    margin: 0 auto clamp(34px, 5vw, 58px);
    text-align: center;
}

.events-heading p {
    margin: 0;
    color: rgba(35, 53, 58, 0.74);
    font-family: var(--font-primary);
    font-size: clamp(0.98rem, 1.15vw, 1.12rem);
    line-height: 1.8;
}

.events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

.event-card {
    width: min(100%, 980px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(300px, 0.76fr) minmax(0, 1.24fr);
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(185, 150, 74, 0.24);
    border-radius: 36px;
    background: rgba(255, 250, 241, 0.78);
    box-shadow: 0 28px 72px rgba(14, 58, 74, 0.13);
    backdrop-filter: blur(14px) saturate(125%);
    -webkit-backdrop-filter: blur(14px) saturate(125%);
}

.event-media {
    width: 100%;
    margin: 0;
    padding: clamp(24px, 3vw, 38px);
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    background:
        radial-gradient(circle at center, rgba(255,255,255,0.78), rgba(238, 226, 201, 0.42));
}

.event-media img {
    width: min(100%, 360px);
    height: auto;
    margin: 0 auto;
    border-radius: 22px;
    object-fit: contain;
    box-shadow: 0 18px 42px rgba(14, 58, 74, 0.18);
}

.event-content {
    padding: clamp(34px, 5vw, 70px);
}

.event-date {
    margin: 0 0 13px;
    color: rgba(185, 150, 74, 0.98);
    font-family: var(--font-primary);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 2.4px;
    text-transform: uppercase;
}

.event-content h3 {
    margin: 0 0 15px;
    color: rgba(14, 58, 74, 0.98);
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.8vw, 3.8rem);
    font-weight: 500;
    line-height: 1.04;
}

.event-location {
    margin: 0 0 22px;
    color: rgba(14, 58, 74, 0.80);
    font-family: var(--font-primary);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.event-description {
    margin: 0 0 30px;
    color: rgba(35, 53, 58, 0.78);
    font-family: var(--font-primary);
    font-size: clamp(0.98rem, 1.08vw, 1.08rem);
    line-height: 1.82;
}

.event-link {
    display: inline-flex;
    min-height: 48px;
    padding: 0 24px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(185, 150, 74, 0.78);
    border-radius: 999px;
    background: rgba(185, 150, 74, 0.10);
    color: rgba(14, 58, 74, 0.96);
    font-family: var(--font-primary);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background .22s ease, color .22s ease, transform .22s ease;
}

.event-link:hover,
.event-link:focus-visible {
    background: rgba(185, 150, 74, 0.92);
    color: #fffaf1;
    transform: translateY(-2px);
}

#rete-italia + #events,
#events + #brochure {
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.44);
}

@media (max-width: 980px) {
    #events {
        scroll-margin-top: 92px !important;
    }

    .events-section {
        padding: 76px 0;
    }

    .events-section > .container {
        width: min(100% - 36px, 760px);
    }

    .event-card {
        grid-template-columns: 1fr;
        width: 100%;
        border-radius: 30px;
    }

    .event-media {
        padding: 30px 24px 14px;
    }

    .event-media img {
        width: min(100%, 380px);
        margin-left: auto;
        margin-right: auto;
    }

    .event-content {
        padding: 32px 30px 42px;
        text-align: center;
    }
}

@media (max-width: 640px) {
    #events {
        background: linear-gradient(180deg, rgba(255, 250, 241, 0.96), rgba(238, 246, 247, 0.90));
    }

    .events-section {
        padding: 68px 0;
    }

    .events-section > .container {
        width: calc(100% - 28px);
    }

    .events-heading {
        margin-bottom: 30px;
    }

    .event-card {
        border-radius: 25px;
    }

    .event-media {
        padding: 20px 18px 10px;
    }

    .event-media img {
        width: min(100%, 320px);
        border-radius: 18px;
    }

    .event-content {
        padding: 28px 20px 34px;
    }

    .event-content h3 {
        font-size: clamp(1.9rem, 10vw, 2.8rem);
    }

    .event-link {
        width: 100%;
        min-height: 50px;
    }
}
/* === FINE PROSSIMI EVENTI === */


/* === MODULI BREVO INTEGRATI + POPUP VISITA === */
.brevo-form-container--integrated {
    max-width: 920px;
    padding: clamp(40px, 5vw, 68px);
    text-align: center;
}

.brochure-contact-title {
    display: block;
    margin: 0;
    color: rgba(14, 58, 74, 0.98);
    font-family: var(--font-display);
    font-size: clamp(4rem, 8.5vw, 8rem);
    font-weight: 500;
    line-height: .88;
    letter-spacing: -.035em;
}

.brochure-contact-subtitle {
    margin: 18px 0 34px !important;
    color: rgba(185, 150, 74, 0.98) !important;
    font-family: var(--font-primary) !important;
    font-size: clamp(.88rem, 1.25vw, 1.08rem) !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.brevo-form-target--iframe {
    width: 100%;
    padding: clamp(20px, 3vw, 34px) !important;
    overflow: hidden;
    border: 1px solid rgba(185, 150, 74, .30) !important;
    border-radius: 28px !important;
    background: rgba(255,255,255,.34) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}

.omaya-brevo-frame {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
}

.omaya-brevo-frame--inline {
    min-height: 980px;
    transition: height .2s ease;
}

.event-link[type="button"] {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

body.omaya-modal-open {
    overflow: hidden;
}

.omaya-visit-modal[hidden] {
    display: none !important;
}

.omaya-visit-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: grid;
    place-items: center;
    padding: clamp(14px, 3vw, 34px);
    opacity: 0;
    transition: opacity .22s ease;
}

.omaya-visit-modal.is-open {
    opacity: 1;
}

.omaya-visit-modal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(6, 26, 34, .78);
    backdrop-filter: blur(12px) saturate(110%);
    -webkit-backdrop-filter: blur(12px) saturate(110%);
    cursor: default;
}

.omaya-visit-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 960px);
    max-height: calc(100vh - clamp(28px, 6vw, 68px));
    overflow: hidden;
    border: 1px solid rgba(185, 150, 74, .42);
    border-radius: 34px;
    background: linear-gradient(180deg, #fffaf0 0%, #f7efe0 100%);
    box-shadow: 0 38px 100px rgba(0,0,0,.36);
    transform: translateY(18px) scale(.985);
    transition: transform .22s ease;
}

.omaya-visit-modal.is-open .omaya-visit-modal__dialog {
    transform: translateY(0) scale(1);
}

.omaya-visit-modal__close {
    position: absolute;
    z-index: 3;
    top: 16px;
    right: 16px;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.62);
    border-radius: 50%;
    background: rgba(14, 58, 74, .82);
    color: #fffaf0;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0,0,0,.16);
}

.omaya-visit-modal__header {
    display: grid;
    grid-template-columns: minmax(190px, 310px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 4vw, 54px);
    padding: clamp(28px, 4vw, 48px);
    background:
        radial-gradient(circle at 12% 10%, rgba(255,255,255,.80), transparent 44%),
        linear-gradient(135deg, rgba(230,240,242,.88), rgba(255,250,240,.96));
    border-bottom: 1px solid rgba(185, 150, 74, .25);
}

.omaya-visit-modal__header img {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 16px 38px rgba(14, 58, 74, .16);
}

.omaya-visit-modal__date {
    margin: 0 0 10px;
    color: rgba(185, 150, 74, .98);
    font-family: var(--font-primary);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}

.omaya-visit-modal__header h2 {
    margin: 0 0 12px;
    color: rgba(14, 58, 74, .98);
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 4.4rem);
    font-weight: 500;
    line-height: .98;
}

.omaya-visit-modal__header p:last-child {
    margin: 0;
    color: rgba(35,53,58,.76);
    line-height: 1.65;
}

.omaya-visit-modal__body {
    height: min(62vh, 720px);
    padding: clamp(20px, 3vw, 34px);
    overflow: hidden;
}

.omaya-brevo-frame--modal {
    height: 100%;
    border-radius: 22px;
}

@media (max-width: 760px) {
    .brevo-form-container--integrated {
        padding: 38px 20px;
    }

    .brochure-contact-title {
        font-size: clamp(3.5rem, 19vw, 6rem);
    }

    .brochure-contact-subtitle {
        margin-bottom: 26px !important;
        letter-spacing: .11em;
    }

    .brevo-form-target--iframe {
        padding: 16px 12px !important;
        border-radius: 22px !important;
    }

    .omaya-visit-modal {
        padding: 10px;
    }

    .omaya-visit-modal__dialog {
        width: 100%;
        max-height: calc(100dvh - 20px);
        border-radius: 25px;
    }

    .omaya-visit-modal__header {
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 16px;
        padding: 24px 56px 24px 20px;
    }

    .omaya-visit-modal__header img {
        max-height: 120px;
        border-radius: 14px;
    }

    .omaya-visit-modal__header h2 {
        font-size: clamp(1.85rem, 9vw, 2.7rem);
    }

    .omaya-visit-modal__header p:last-child {
        display: none;
    }

    .omaya-visit-modal__body {
        height: calc(100dvh - 184px);
        min-height: 430px;
        padding: 14px 10px 18px;
    }

    .omaya-visit-modal__close {
        top: 12px;
        right: 12px;
        width: 42px;
        height: 42px;
    }
}
/* === FINE MODULI BREVO INTEGRATI + POPUP VISITA === */


/* === UNIFORMAZIONE TITOLO CONTATTO E TIPOGRAFIA MODULI === */
#brochure.brochure-section {
    flex-direction: column;
    align-items: center;
}

#brochure > .brochure-section-label {
    width: 100%;
    max-width: 1400px;
}

/* "Contatto" usa ora esattamente la stessa label delle altre sezioni. */
.brochure-contact-title {
    display: none !important;
}

.brochure-contact-subtitle {
    margin: 0 0 28px !important;
    color: rgba(14, 58, 74, .88) !important;
    font-family: var(--font-primary) !important;
    font-size: clamp(.78rem, .95vw, .92rem) !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase;
}

@media (max-width: 760px) {
    #brochure > .brochure-section-label {
        margin-bottom: 26px;
    }

    .brochure-contact-subtitle {
        margin-bottom: 22px !important;
        font-size: .76rem !important;
        letter-spacing: .09em !important;
    }
}
/* === FINE UNIFORMAZIONE TITOLO CONTATTO E TIPOGRAFIA MODULI === */


/* === CACHE-SAFE CONTACT TYPOGRAPHY V3 === */
#brochure > .section-menu-label.brochure-section-label span {
    min-width: 168px !important;
    padding: 10px 22px !important;
    font-family: var(--font-primary) !important;
    font-size: clamp(.68rem, .8vw, .78rem) !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 2.4px !important;
    text-transform: uppercase !important;
}

#brochure .brochure-contact-subtitle {
    margin: 0 0 26px !important;
    font-size: clamp(.76rem, .88vw, .88rem) !important;
    line-height: 1.45 !important;
    letter-spacing: .10em !important;
}

@media (max-width: 640px) {
    #brochure > .section-menu-label.brochure-section-label span {
        min-width: 0 !important;
        padding: 9px 16px !important;
        font-size: .64rem !important;
        letter-spacing: 1.6px !important;
    }
}
/* === END CACHE-SAFE CONTACT TYPOGRAPHY V3 === */


/* === CONTATTO V4: STESSA STRUTTURA DEGLI ALTRI TITOLI + IFRAME AD ALTEZZA REALE === */
#brochure.brochure-section {
    display: block !important;
    padding: 0 !important;
}

#brochure > .brochure-section-inner {
    width: min(1180px, calc(100% - 48px)) !important;
    max-width: none !important;
    margin-inline: auto !important;
    padding-top: clamp(18px, 2vw, 30px) !important;
    padding-bottom: clamp(34px, 4vw, 56px) !important;
}

/* Nessuna variante tipografica: è la stessa label usata dalle altre sezioni. */
#brochure .section-menu-label {
    width: 100% !important;
    margin: 0 0 clamp(24px, 2.8vw, 36px) !important;
    padding: 0 !important;
}

#brochure .section-menu-label span {
    min-width: 168px !important;
    padding: 10px 22px !important;
    font-family: var(--font-primary) !important;
    font-size: clamp(.68rem, .8vw, .78rem) !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 2.4px !important;
    text-transform: uppercase !important;
}

#brochure .brevo-form-container--integrated {
    margin: 0 auto !important;
    padding-bottom: clamp(28px, 3vw, 42px) !important;
}

#brochure .brevo-form-target--iframe {
    padding-bottom: clamp(12px, 1.8vw, 20px) !important;
}

#infoBrochureFormFrame.omaya-brevo-frame--inline {
    height: 640px;
    min-height: 0 !important;
    overflow: hidden;
}

@media (max-width: 640px) {
    #brochure > .brochure-section-inner {
        width: min(100% - 24px, 1180px) !important;
        padding-bottom: 30px !important;
    }

    #brochure .section-menu-label span {
        min-width: 0 !important;
        padding: 9px 16px !important;
        font-size: .64rem !important;
        letter-spacing: 1.6px !important;
    }

    #infoBrochureFormFrame.omaya-brevo-frame--inline {
        height: 700px;
    }
}
/* === FINE CONTATTO V4 === */


/* === MODULI BREVO V5: integrazione diretta e mobile stabile === */
#brevo-form-target.brevo-form-target--embedded {
    width: 100%;
    padding: clamp(18px, 2.6vw, 30px) !important;
    overflow: visible !important;
    border: 1px solid rgba(185, 150, 74, .30) !important;
    border-radius: 28px !important;
    background: rgba(255,255,255,.34) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}
#brevo-form-target *,
#brevo-form-target *::before,
#brevo-form-target *::after { box-sizing: border-box !important; }
#brevo-form-target .sib-form {
    width: 100% !important;
    padding: 0 !important;
    background: transparent !important;
}
#brevo-form-target .sib-form-container,
#brevo-form-target #sib-form-container,
#brevo-form-target #sib-container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 22px !important;
    background: transparent !important;
    box-shadow: none !important;
}
#brevo-form-target #sib-container > form {
    width: 100% !important;
    max-width: 720px !important;
    margin: 0 auto !important;
}
#brevo-form-target #sib-container > form > div[style*="padding"] {
    padding: 6px 0 !important;
}
#brevo-form-target .entry__label,
#brevo-form-target .sib-form-block p,
#brevo-form-target .sib-form-block span,
#brevo-form-target .sib-form__declaration,
#brevo-form-target .sib-form__declaration p {
    font-family: var(--font-primary) !important;
}
#brevo-form-target .entry__label {
    color: rgba(14, 58, 74, .96) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    letter-spacing: .015em !important;
}
#brevo-form-target .entry__field {
    width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    border: 1px solid rgba(185, 150, 74, .34) !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, .90) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.82) !important;
}
#brevo-form-target .entry__field input,
#brevo-form-target .entry__field textarea,
#brevo-form-target .entry__field select,
#brevo-form-target .sib-sms-input .input {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 40px !important;
    padding: 8px 10px !important;
    border: 0 !important;
    color: #23353a !important;
    background: transparent !important;
    font-family: var(--font-primary) !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
}
#brevo-form-target .entry__field textarea {
    min-height: 88px !important;
    resize: vertical !important;
}
#brevo-form-target .sib-sms-input-wrapper { width: 100% !important; }
#brevo-form-target .sib-sms-input {
    display: grid !important;
    grid-template-columns: minmax(96px, .34fr) minmax(0, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
}
#brevo-form-target .sib-sms-input > .entry__field {
    width: 100% !important;
    min-width: 0 !important;
}
#brevo-form-target .entry__choice label {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 9px !important;
}
#brevo-form-target .entry__choice p { margin: 0 !important; }
#brevo-form-target .entry__choice p,
#brevo-form-target .sib-form__declaration p,
#brevo-form-target .sib-form-block--checkbox p {
    color: rgba(35,53,58,.74) !important;
    font-size: 10.5px !important;
    line-height: 1.45 !important;
}
#brevo-form-target .declaration-block-icon { display: none !important; }
#brevo-form-target .sib-divider-form-block { opacity: .34 !important; }
#brevo-form-target .sib-form-block__button {
    min-height: 46px !important;
    padding: 0 26px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(185, 150, 74, .96) !important;
    color: #fffaf0 !important;
    font-family: var(--font-primary) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .10em !important;
    text-transform: uppercase !important;
    box-shadow: 0 12px 26px rgba(14, 58, 74, .15) !important;
}
#brevo-form-target .sib-form-message-panel,
#brevo-form-target .entry__error,
#brevo-form-target .sib-form-message-panel__inner-text {
    width: 100% !important;
    max-width: none !important;
    border-radius: 14px !important;
    font-family: var(--font-primary) !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
}

/* Il popup visita è una vera finestra intera su smartphone: niente iframe schiacciato. */
.omaya-brevo-frame--modal {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

@media (max-width: 760px) {
    #brochure .brevo-form-container--integrated {
        padding: 30px 14px !important;
    }
    #brevo-form-target.brevo-form-target--embedded {
        padding: 14px 10px !important;
        overflow: visible !important;
        border-radius: 20px !important;
    }
    #brevo-form-target #sib-container > form > div[style*="padding"] {
        padding: 5px 0 !important;
    }
    #brevo-form-target .entry__field input,
    #brevo-form-target .entry__field textarea,
    #brevo-form-target .entry__field select,
    #brevo-form-target .sib-sms-input .input {
        min-height: 44px !important;
        padding: 9px 10px !important;
        font-size: 16px !important;
    }
    #brevo-form-target .entry__label { font-size: 12px !important; }
    #brevo-form-target .sib-form-block__button {
        width: 100% !important;
        min-height: 48px !important;
    }

    .omaya-visit-modal {
        padding: 0 !important;
    }
    .omaya-visit-modal__dialog {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        height: 100dvh !important;
        max-height: none !important;
        border: 0 !important;
        border-radius: 0 !important;
    }
    .omaya-visit-modal__header {
        flex: 0 0 auto !important;
        grid-template-columns: 76px minmax(0, 1fr) !important;
        gap: 12px !important;
        padding: 14px 54px 14px 14px !important;
    }
    .omaya-visit-modal__header img {
        max-height: 82px !important;
        border-radius: 10px !important;
    }
    .omaya-visit-modal__date {
        margin-bottom: 4px !important;
        font-size: .64rem !important;
        letter-spacing: 1.3px !important;
    }
    .omaya-visit-modal__header h2 {
        margin-bottom: 0 !important;
        font-size: clamp(1.35rem, 7vw, 2rem) !important;
        line-height: 1 !important;
    }
    .omaya-visit-modal__body {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        height: auto !important;
        padding: 10px 10px 0 !important;
        overflow: hidden !important;
        -webkit-overflow-scrolling: touch;
    }
    .omaya-visit-modal__close {
        top: 10px !important;
        right: 10px !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 1.7rem !important;
    }
}
/* === FINE MODULI BREVO V5 === */


/* === POPUP VISITA V6: ALTEZZA REALE, CAMPI NON TAGLIATI, NIENTE SCROLL CHAINING === */
html.omaya-modal-open,
body.omaya-modal-open {
    overflow: hidden !important;
    overscroll-behavior: none !important;
}

.omaya-visit-modal {
    overscroll-behavior: none !important;
    touch-action: none;
}

.omaya-visit-modal__dialog {
    display: flex !important;
    flex-direction: column !important;
    height: min(92dvh, 920px) !important;
    max-height: 92dvh !important;
    min-height: 0 !important;
    overflow: hidden !important;
    overscroll-behavior: contain !important;
    touch-action: auto;
}

.omaya-visit-modal__header {
    flex: 0 0 auto !important;
}

.omaya-visit-modal__body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: hidden !important;
    overscroll-behavior: contain !important;
    touch-action: pan-y;
    padding-bottom: max(clamp(20px, 3vw, 34px), env(safe-area-inset-bottom)) !important;
}

.omaya-brevo-frame--modal {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    border: 0 !important;
    overflow: auto !important;
    overscroll-behavior: contain !important;
    background: transparent !important;
}

@media (max-width: 760px) {
    .omaya-visit-modal__dialog {
        width: 100% !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        border-radius: 0 !important;
    }

    .omaya-visit-modal__body {
        padding: 8px 8px max(14px, env(safe-area-inset-bottom)) !important;
    }
}
/* === FINE POPUP VISITA V6 === */


/* === POPUP VISITA V7: UN SOLO SCROLLER ESTERNO === */
.omaya-visit-modal {
    touch-action: auto !important;
}

.omaya-visit-modal__dialog {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

.omaya-visit-modal__header {
    flex: 0 0 auto !important;
}

.omaya-visit-modal__body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: contain !important;
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-gutter: stable;
}

.omaya-brevo-frame--modal {
    display: block !important;
    width: 100% !important;
    height: 1450px;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
    overscroll-behavior: auto !important;
    touch-action: auto !important;
    border: 0 !important;
}

@media (max-width: 760px) {
    .omaya-visit-modal__dialog {
        height: 100dvh !important;
        max-height: 100dvh !important;
    }

    .omaya-visit-modal__body {
        padding: 8px 8px max(22px, env(safe-area-inset-bottom)) !important;
    }
}
/* === FINE POPUP VISITA V7 === */


/* === POPUP VISITA V8: ROTELLA COLLEGATA ALLO SCROLLER DEL MODULO === */
.omaya-visit-modal__body {
    scroll-behavior: auto !important;
    pointer-events: auto !important;
}

.omaya-brevo-frame--modal {
    pointer-events: auto !important;
}
/* === FINE POPUP VISITA V8 === */


/* Fix checkbox alignment in brochure/info form */
#brevo-form-target .entry__choice label {
    display: grid !important;
    grid-template-columns: 18px minmax(0, 1fr) !important;
    column-gap: 14px !important;
    align-items: start !important;
}
#brevo-form-target .entry__choice .input_replaced {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
#brevo-form-target .entry__choice .checkbox {
    position: static !important;
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    margin: 2px 0 0 !important;
    box-sizing: border-box !important;
}
#brevo-form-target .entry__choice label > span:last-child {
    display: block !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
#brevo-form-target .entry__choice label > span:last-child p {
    margin: 0 !important;
}


/* === MOBILE PHONE FIELD + CHECKBOX FINAL FIX === */
@media (max-width: 760px) {
    #brevo-form-target .sib-sms-input {
        grid-template-columns: 68px minmax(0, 1fr) !important;
        gap: 5px !important;
    }
    #brevo-form-target .sib-sms-input > .entry__field:first-child {
        width: 68px !important;
        min-width: 68px !important;
        max-width: 68px !important;
    }
    #brevo-form-target .sib-sms-input > .entry__field:first-child select {
        width: 68px !important;
        min-width: 68px !important;
        max-width: 68px !important;
        padding-left: 5px !important;
        padding-right: 17px !important;
        font-size: 13px !important;
    }
    #brevo-form-target .sib-sms-input > .entry__field:last-child {
        width: 100% !important;
        min-width: 0 !important;
    }
}
/* === END MOBILE PHONE FIELD + CHECKBOX FINAL FIX === */
