/* ==========================================================================
   CSS Reset & Variables
   ========================================================================== */
:root {
    --primary-color: #c5a880; /* Elegant gold/bronze */
    --primary-dark: #a98d65;
    --text-dark: #1f2421; /* Charcoal black */
    --text-muted: #5c6761;
    --bg-light: #faf9f6; /* Off-white linen */
    --bg-dark: #0f1412; /* Rich dark olive/slate */
    --white: #ffffff;
    --glass-bg: rgba(15, 20, 18, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: all 0.2s ease;

    /* Harmonized Component Metrics (Proportional rem-based scaling) */
    --ctrl-height: 2.25rem;
    --ctrl-label-size: 0.80rem;
    --switch-font-size: 0.78rem;
    --switch-pad-x: 1.125rem;
    --switch-3opt-font-size: 0.72rem;
    --switch-3opt-pad-x: 0.8125rem;
    --stepper-btn-size: 2.25rem;
    --stepper-val-size: 1.15rem;
    --controls-gap: 0.5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==========================================================================
   Fluid & Proportional Scaling Architecture
   Reference Baseline: Laptop L (1440px)
   Chrome DevTools Target Presets:
   - 4K Computer: 2560px (~1.778x proportional scale)
   - Laptop L: 1440px (1.000x baseline reference)
   - Laptop Computer: 1024px (~0.906x proportional scale)
   - Tablet: 768px (~0.875x proportional scale)
   - Mobile: <= 767px
   ========================================================================== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
    font-size: 16px; /* 16px anchor at 1440px */
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    html {
        font-size: 14px;
        scroll-padding-top: 4.5rem;
    }
}

/* Laptop / Computer Standard (1024px - 1440px) */
@media (min-width: 1024px) and (max-width: 1440px) {
    html {
        /* Fluid interpolation: 14.5px at 1024px to 16px at 1440px */
        font-size: calc(14.5px + (100vw - 1024px) * (1.5 / 416));
        scroll-padding-top: 4.75rem;
    }
}

/* 4K & Ultra-Wide Displays (1441px - 2560px+) */
@media (min-width: 1441px) {
    html {
        /* Proportional scale:
           - 1440px: 16px
           - 1920px: 21.33px (1.33x)
           - 2560px: 28.44px (exact 1.778x ratio 2560/1440)
        */
        font-size: clamp(16px, 1.1111vw, 28.5px);
        scroll-padding-top: 5.5rem;
    }
}

/* Mobile Phones (<= 767px) */
@media (max-width: 767px) {
    html {
        font-size: 14px;
        scroll-padding-top: 4.25rem;
    }
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
}

section[id], div[id], article[id] {
    scroll-margin-top: 5rem;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: clip;
    overflow-y: visible;
    width: 100%;
    max-width: 100%;
    position: relative;
}

/* ==========================================================================
   Typography & Common Elements
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 0.05em;
}

p {
    font-weight: 300;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

.container {
    width: 90%;
    max-width: 75rem; /* 1200px at 16px (1440px) -> 2133px at 28.44px (2560px) */
    margin: 0 auto;
    padding: 5rem 0; /* 80px at 16px -> 142px at 28.44px */
}

.section-header {
    --header-title-size: clamp(1.85rem, 3.5vw, 3.2rem);
    text-align: center;
    margin-bottom: 3.75rem;
}

.section-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary-color);
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: var(--header-title-size);
    color: var(--text-dark);
    position: relative;
    padding-bottom: 0;
    line-height: 1.2;
}

.section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: calc(var(--header-title-size) * 0.15) auto 0;
    font-size: calc(var(--header-title-size) * 0.36);
    color: var(--primary-color);
}

.section-icon i {
    color: var(--primary-color);
    opacity: 0.9;
}

.divider {
    width: calc(var(--header-title-size) * 0.9);
    max-width: 60px;
    min-width: 36px;
    height: 1px;
    background-color: var(--primary-color);
    margin: calc(var(--header-title-size) * 0.18) auto 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 0.85rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-sizing: border-box;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    z-index: 1100;
    background-color: rgba(15, 20, 18, 0.88);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

/* Scrolled state applied via JS */
.main-header.scrolled {
    padding: 14px 50px;
    background-color: rgba(15, 20, 18, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

/* ==========================================================================
   Header Extension: Saldi di Fine Stagione Banner (Translucent Black)
   Slides smoothly down from under the menu when reaching #configura
   ========================================================================== */
.season-sales-header-banner {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    margin-top: -1px;
    z-index: 1095; /* Immediately under .main-header (z-index: 1100) */
    background: rgba(12, 16, 14, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(197, 168, 128, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    padding: 8px 24px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, visibility 0.35s ease;
    pointer-events: none;
    white-space: nowrap !important;
    overflow: hidden !important;
}

.season-sales-header-banner.is-visible {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.season-sales-marquee-track {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex-wrap: nowrap !important;
}

.season-sales-header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.02em;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
}

/* Esclusione categorica del clone e del divisore loop su desktop e versioni standard (scritta singola) */
.season-sales-header-inner.season-sales-marquee-clone,
.season-sales-header-banner .season-sales-marquee-clone,
.season-sales-marquee-clone {
    display: none !important;
}

.season-sales-header-banner .season-sales-loop-divider,
.season-sales-divider.season-sales-loop-divider,
.season-sales-loop-divider {
    display: none !important;
}

.season-sales-header-banner .season-sales-tag {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    color: #ffbe76;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.season-sales-header-banner .season-sales-tag i {
    color: #ff6b6b;
}

.season-sales-header-banner .season-sales-divider {
    color: rgba(197, 168, 128, 0.6);
    font-size: 0.9rem;
}

.season-sales-header-banner .banner-strike-price {
    text-decoration: line-through;
    opacity: 0.75;
    color: #cbd5e1;
    margin-right: 2px;
}

.season-sales-header-banner .banner-bronze-price {
    color: var(--primary-color) !important;
    font-weight: 700;
}

.nav-configura-badge .badge-strike-price {
    text-decoration: line-through;
    opacity: 0.7;
    margin-right: 1px;
}

.nav-configura-badge .badge-bronze-price {
    color: #9e2a14;
    font-weight: 700;
}

.season-sales-header-banner .season-sales-text strong {
    color: var(--primary-color);
    font-weight: 700;
}

.season-sales-header-banner .season-sales-validity {
    color: rgba(255, 255, 255, 0.75);
}

.season-sales-header-banner .season-sales-validity strong {
    color: #ffffff;
}

/* Tablet (768px - 1023px): Singola riga fissa centrata */
@media (min-width: 768px) and (max-width: 1023px) {
    .season-sales-header-banner {
        padding: 8px 16px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
    }
    .season-sales-marquee-track {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        animation: none !important;
        transform: none !important;
    }
    .season-sales-header-inner.season-sales-marquee-clone,
    .season-sales-header-banner .season-sales-marquee-clone,
    .season-sales-marquee-clone,
    .season-sales-header-banner .season-sales-loop-divider,
    .season-sales-divider.season-sales-loop-divider,
    .season-sales-loop-divider {
        display: none !important;
    }
    .season-sales-header-inner {
        gap: 10px !important;
        font-size: 0.76rem !important;
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
    }
    .season-sales-header-banner .season-sales-tag {
        font-size: 0.72rem !important;
        gap: 5px !important;
    }
    .season-sales-header-banner .season-sales-divider {
        font-size: 0.75rem !important;
    }
}


.logo a {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-style: italic;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--white);
}

/* Desktop Navigation (>= 1024px) */
@media (min-width: 1024px) {
    .nav-view-sub,
    .mobile-drilldown-btn {
        display: none !important;
    }

    .nav-view-main {
        display: contents !important;
    }

    .desktop-nav-link {
        display: inline-flex !important;
        align-items: center;
    }
}

.nav-menu > ul,
.nav-menu .nav-list {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    cursor: pointer;
    transition: var(--transition-fast);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: var(--transition-fast);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Floating Season Sale Badge over 'Configura' menu button */
.nav-item-configura {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-configura-badge {
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translate(-50%, 14px) scale(0.90);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    font-family: var(--font-body);
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #101512;
    background: linear-gradient(135deg, #ecd3a9 0%, #c5a880 100%);
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    z-index: 10;
    transition: transform 0.42s cubic-bezier(0.35, 1, 0.4, 1),
                opacity 0.35s ease,
                visibility 0.42s ease;
}

.nav-configura-badge i {
    color: #9e2a14;
    font-size: 0.62rem;
}

/* Revealed state: floats gracefully above the text */
.nav-configura-badge.is-revealed {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0) scale(1);
}

/* ==========================================================================
   Dropdown Menu
   ========================================================================== */
.nav-menu .dropdown {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: -12px;
}

.nav-arrow {
    font-size: 0.65rem;
    margin-left: 6px;
    transition: transform var(--transition-fast);
    vertical-align: middle;
}

.nav-menu .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: rgba(15, 20, 18, 0.96);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    padding: 10px 0;
    margin-top: 0;
    display: none !important;
    flex-direction: column;
    gap: 0 !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    pointer-events: none;
    z-index: 150;
}

/* Desktop Only: apertura a tendina su hover */
@media (min-width: 1024px) {
    .nav-menu .dropdown:hover .nav-arrow,
    .nav-menu .dropdown.open .nav-arrow {
        transform: rotate(180deg);
    }

    .nav-menu .dropdown:hover > .dropdown-menu,
    .nav-menu .dropdown.open > .dropdown-menu {
        display: flex !important;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
}

.nav-menu .dropdown-menu li {
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
}

.nav-menu .dropdown-menu a {
    display: block;
    padding: 12px 22px;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    transition: var(--transition-fast);
    white-space: nowrap;
    text-align: left;
}

.nav-menu .dropdown-menu a::after {
    display: none !important;
}

.nav-menu .dropdown-menu a:hover {
    background-color: rgba(197, 168, 128, 0.15);
    color: var(--primary-color);
    padding-left: 26px;
}

.nav-item-lang {
    display: inline-flex;
    align-items: center;
    list-style: none;
}

.nav-item-lang a::after {
    display: none !important;
}

.lang-switch-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(197, 168, 128, 0.4);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    user-select: none;
    transition: all 0.25s ease;
}

.lang-switch-wrapper:hover {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.12);
}

.lang-switch-wrapper a.lang-btn {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 2px 4px;
    line-height: 1;
}

.lang-switch-wrapper a.lang-btn:hover {
    color: var(--white);
}

.lang-switch-wrapper a.lang-btn.active {
    color: var(--primary-color) !important;
    font-weight: 800;
}

.lang-switch-wrapper .lang-divider {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.72rem;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background-color: var(--white);
    transition: var(--transition-fast);
}

/* ==========================================================================
   Hero Section & Carousel
   ========================================================================== */
.hero-section {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background-color: var(--bg-dark);
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
    transition: transform 6s ease-out;
}

.carousel-slide.active img {
    transform: scale(1);
}

/* Overlay covering the images for high-contrast text overlay */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.25) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.overlay-content {
    max-width: 65.625rem; /* 1050px at 16px -> 1866px at 28.44px (4K) */
    width: 95%;
    color: var(--white);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards 0.3s;
}

.overlay-subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--primary-color);
    display: block;
    margin-bottom: 1.25rem;
}

.overlay-title {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-style: italic;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.overlay-text {
    font-size: clamp(0.78rem, 1.65vw, 1.2rem);
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
    font-weight: 300;
    letter-spacing: 0.015em;
    white-space: nowrap;
    overflow: visible;
}

.overlay-text-lead,
.overlay-text-sub {
    display: inline;
}

.dynamic-word {
    display: inline-block;
    color: var(--primary-color);
    font-size: 1.15em;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-shadow: 0 0 16px rgba(197, 168, 128, 0.7), 0 2px 8px rgba(0, 0, 0, 0.9);
    transition: transform 0.12s ease, color 0.12s ease;
    vertical-align: baseline;
    margin: 0 2px;
    white-space: nowrap;
}

/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--white);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 4;
    transition: var(--transition-fast);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.carousel-btn:hover {
    background-color: var(--white);
    color: var(--bg-dark);
    border-color: var(--white);
}

.carousel-btn.prev {
    left: 40px;
}

.carousel-btn.next {
    right: 40px;
}

/* Dots Indicators */
.carousel-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 4;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition-fast);
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.3);
}

/* Scroll Down Mouse */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 40px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.scroll-indicator .mouse {
    width: 20px;
    height: 32px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    position: relative;
}

.scroll-indicator .wheel {
    width: 4px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollMouse 2s ease-in-out infinite;
}

/* ==========================================================================
   Activity Quick Navigation Chips (Option 3 - Smartphone Only)
   ========================================================================== */
.activities-nav-chips {
    display: none;
}

/* ==========================================================================
   Experience Section
   ========================================================================== */
.experience-section {
    position: relative;
    z-index: 1;
    background-color: var(--bg-light);
}

.experience-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.75rem;
    align-items: center;
}

.experience-grid.reversed {
    grid-template-columns: 0.9fr 1.1fr;
}

.experience-text p {
    margin-bottom: 1.25rem;
    color: var(--text-muted);
}

.experience-text p.lead {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-weight: 400;
}

/* Read More Toggle for Activity Lead Paragraphs */
.read-more-toggle-btn {
    display: none;
}

.truncate-mobile .text-collapsible {
    display: inline;
}

.mobile-activity-cta-wrap {
    display: none;
}

.desktop-only-text {
    display: inline;
}

.br-desktop {
    display: inline;
}

@media (max-width: 767px) {
    .read-more-toggle-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: transparent;
        border: none;
        color: var(--primary-color);
        font-size: 0.88rem;
        font-weight: 600;
        letter-spacing: 0.04em;
        cursor: pointer;
        padding: 6px 0;
        margin-top: 4px;
        margin-bottom: 8px;
        font-family: inherit;
        text-transform: none;
        transition: color 0.25s ease, transform 0.25s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .read-more-toggle-btn:hover {
        color: #e0c89a;
    }

    .read-more-toggle-btn .toggle-icon {
        font-size: 0.72rem;
        transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .read-more-toggle-btn.is-expanded .toggle-icon {
        transform: rotate(180deg);
    }

    .truncate-mobile .text-collapsible {
        display: block;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease, margin 0.3s ease;
    }

    .truncate-mobile.is-expanded .text-collapsible {
        max-height: 600px;
        opacity: 1;
        margin-top: 4px;
    }
}

/* ==========================================================================
   Interactive Experience Text Cards (Flip / Hover Reveal)
   ========================================================================== */
.experience-text.interactive-card {
    perspective: 1200px;
    user-select: none;
    container-type: inline-size;
}

.card-inner {
    position: relative;
    width: 100%;
    min-height: 100%;
    transition: transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-style: preserve-3d;
}

.experience-text.interactive-card.is-flipped .card-inner {
    transform: rotateY(180deg);
}

.card-face {
    width: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.card-front {
    position: relative;
    transform: rotateY(0deg);
}

.card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;
}

.hover-hint-wrapper {
    text-align: left;
    width: 100%;
    margin-top: 24px;
    margin-bottom: 0;
}

.hover-hint-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--primary-color);
    font-weight: 600;
    background: transparent;
    border: none;
    padding: 0.35rem 0;
    cursor: pointer;
    transition: color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
    opacity: 0.9;
}

.hover-hint-btn:hover {
    background: transparent;
    color: #e0c89a;
    border: none;
    box-shadow: none;
    transform: translateX(4px);
    opacity: 1;
}

.card-back-footer {
    width: 100%;
    margin-top: 20px;
    text-align: left;
}

.back-flip-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--primary-color);
    font-weight: 600;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.35rem 0;
    opacity: 0.9;
    transition: color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.back-flip-btn:hover {
    color: #e0c89a;
    opacity: 1;
    transform: translateX(-4px);
}

.activities-title {
    font-size: 1.5rem;
    font-size: clamp(1rem, 4.8cqw, 1.5rem);
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 22px;
    margin-bottom: clamp(10px, 4.4cqw, 22px);
    letter-spacing: 0.08em;
    letter-spacing: clamp(0.04em, 0.8cqw, 0.08em);
    text-transform: uppercase;
    text-align: left;
    width: 100%;
    padding: 0;
}

.activities-menu {
    display: flex;
    flex-direction: column;
    gap: 16px;
    gap: clamp(8px, 3.2cqw, 16px);
    width: 100%;
    text-align: left;
    margin-bottom: 24px;
    margin-bottom: clamp(12px, 4.8cqw, 24px);
    padding: 0;
}

.activity-item {
    display: block;
    font-size: 1.22rem;
    font-size: clamp(0.82rem, 3.9cqw, 1.22rem);
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--text-dark);
    text-decoration: none;
    text-align: left;
    padding: 3px 0;
    padding: clamp(1px, 0.6cqw, 3px) 0;
    line-height: 1.35;
    transition: color 0.25s ease, transform 0.25s ease;
    cursor: pointer;
}

.activity-item::before {
    content: '— ';
    color: var(--primary-color);
    opacity: 0.7;
    transition: opacity 0.25s ease, margin-right 0.25s ease;
}

.activity-item:hover {
    color: var(--primary-color);
    transform: translateX(6px);
}

.activity-item:hover::before {
    opacity: 1;
    margin-right: 4px;
}

.btn-sm {
    padding: 0.625rem 1.5rem;
    font-size: 0.75rem;
    line-height: 1.2;
    letter-spacing: 0.15em;
}

@media (min-width: 768px) {
    .experience-text.interactive-card {
        padding: 0;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        box-shadow: none;
    }
    .experience-text.interactive-card:hover {
        background: transparent;
        box-shadow: none;
        border: none;
    }
    .experience-text.interactive-card .card-back .activity-item {
        color: var(--text-dark);
    }
}

@media (max-width: 767px) {
    .activity-item {
        color: rgba(255, 255, 255, 0.95);
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    }
}

.features-list {
    margin-top: 2.1875rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.9375rem;
    margin-bottom: 0.9375rem;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.feature-item i {
    color: var(--primary-color);
}

.experience-image {
    position: relative;
    padding: 2.1875rem 0;
}

.experience-image .image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
    box-shadow: 0 30px 60px rgba(0,0,0,0.06);
    background-color: var(--bg-dark);
    border-radius: 16px;
}

.parallax-carousel {
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.exp-carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.exp-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    overflow: hidden;
}

.exp-slide.active {
    opacity: 1;
    z-index: 2;
}

.exp-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

/* Mini Carousel Controls */
.exp-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(15, 20, 18, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 5;
    transition: var(--transition-fast);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
}

.experience-image .image-wrapper:hover .exp-carousel-btn {
    opacity: 1;
}

.exp-carousel-btn.prev {
    left: 15px;
}

.exp-carousel-btn.next {
    right: 15px;
}

.exp-carousel-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-50%) scale(1.08);
}

/* Mini Carousel Dots */
.exp-carousel-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.exp-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition-fast);
}

.exp-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.exp-dot.active {
    background-color: var(--primary-color);
    width: 22px;
    border-radius: 4px;
}

#escursioni .container {
    padding-bottom: 40px;
}

#borghi .container {
    padding-top: 40px;
    padding-bottom: 40px;
}

#borghi .section-header {
    margin-bottom: 30px;
}

/* ==========================================================================
   Configura la tua esplorazione Section
   ========================================================================== */
.configura-section {
    position: relative;
    z-index: 1;
    background-color: var(--bg-light);
    padding: 0;
}

.configura-section .container {
    padding-top: 40px;
    padding-bottom: 80px;
}

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

.config-category {
    margin-top: 50px;
}

.category-header {
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(197, 168, 128, 0.25);
    padding-bottom: 12px;
}

.category-tag {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.config-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.1875rem;
}

.config-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(197, 168, 128, 0.2);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.35s ease;
    scroll-margin-top: 100px;
    display: flex;
    flex-direction: column;
}

.config-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(197, 168, 128, 0.18);
    border-color: rgba(197, 168, 128, 0.6);
}

.config-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.config-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

#configura-triora .config-card-image img {
    object-position: center 65%;
}

#configura-giardini-botanici .config-card-image img {
    object-position: center 70%;
}

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

.config-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(12, 18, 16, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--white);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.config-card-badge i {
    color: var(--primary-color);
}

.config-card-body {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.config-card-body h3 {
    font-size: 1.35rem;
    font-family: var(--font-heading);
    letter-spacing: 0.08em;
    color: var(--text-dark);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.config-card-body p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 12px;
    flex-grow: 1;
}

.config-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.config-tags span {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: var(--primary-dark);
    background: rgba(197, 168, 128, 0.12);
    border: 1px solid rgba(197, 168, 128, 0.3);
    padding: 4px 10px;
    border-radius: 3px;
    font-weight: 500;
}

@media (max-width: 1023px) {
    .config-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.875rem;
        max-width: 40rem;
        margin: 0 auto;
    }
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.gallery-section {
    background-color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 25px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 20, 18, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-fast);
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

.item-overlay span {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 5px;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

.gallery-item:hover .item-overlay span {
    transform: translateY(0);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.main-footer h3 {
    color: var(--white);
    font-size: 1.8rem;
    letter-spacing: 0.1em;
    margin-bottom: 15px;
}

.main-footer h4 {
    color: var(--white);
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    margin-bottom: 25px;
    position: relative;
}

.main-footer h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 1px;
    background-color: var(--primary-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 12px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    transition: var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--primary-color);
    padding-left: 4px;
}

.footer-contact i {
    color: var(--primary-color);
    font-size: 1rem;
}

.footer-payment-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(197, 168, 128, 0.25);
    border-radius: 10px;
    font-size: 0.80rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.footer-payment-badge i {
    color: var(--primary-color);
    font-size: 0.95rem;
}

.footer-bottom {
    padding-top: 30px;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 767px) {
    .overlay-title {
        font-size: 4rem;
    }
    .carousel-btn.prev {
        left: 20px;
    }
    .carousel-btn.next {
        right: 20px;
    }
    /* ==========================================================================
       Activity Sections: Smartphone Story Card Verticale (Option 1 + 3)
       ========================================================================== */
    .activities-nav-chips {
        display: block;
        position: -webkit-sticky;
        position: sticky;
        top: 55px;
        z-index: 999;
        width: 100%;
        background: rgba(250, 249, 246, 0.94);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-bottom: 1px solid rgba(197, 168, 128, 0.35);
        padding: 8px 12px;
        box-shadow: 0 4px 16px rgba(15, 20, 18, 0.07);
    }

    .activities-chips-track {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
        padding: 2px 4px;
    }

    .activities-chips-track::-webkit-scrollbar {
        display: none;
    }

    .activity-chip {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 14px;
        border-radius: 50px;
        font-size: 0.76rem;
        font-weight: 600;
        letter-spacing: 0.03em;
        color: #2b332f;
        background: #ffffff;
        border: 1px solid rgba(197, 168, 128, 0.35);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
        text-decoration: none;
        white-space: nowrap;
        transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
        -webkit-tap-highlight-color: transparent;
        flex-shrink: 0;
    }

    .activity-chip i {
        font-size: 0.74rem;
        color: var(--primary-dark);
        transition: color 0.25s ease;
    }

    .activity-chip:active {
        transform: scale(0.96);
    }

    .activity-chip.active {
        background: linear-gradient(135deg, #dfc49e, #cca675);
        color: #ffffff;
        border-color: #be9762;
        font-weight: 600;
        text-shadow: 0 1px 2px rgba(60, 45, 20, 0.28);
        box-shadow: 0 3px 12px rgba(197, 168, 128, 0.35);
    }

    .activity-chip.active i {
        color: #ffffff;
        filter: drop-shadow(0 1px 2px rgba(60, 45, 20, 0.28));
    }

    #mare,
    #escursioni,
    #borghi {
        scroll-margin-top: 106px;
    }

    .experience-section .container {
        padding: 2.2rem 0 1.8rem 0;
    }

    .experience-section .section-header {
        margin-bottom: 1.5rem;
    }

    .experience-grid,
    .experience-grid.reversed {
        position: static;
        display: flex;
        flex-direction: column;
        min-height: auto;
        gap: 16px;
        border-radius: 0;
        overflow: visible;
        margin: 8px 0 24px 0;
        box-shadow: none;
        background: transparent;
    }

    /* Rhythmic consistency: Photo Carousel Top (order: 1), Story Card Bottom (order: 2) */
    .experience-grid .experience-image {
        order: 1;
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
        min-height: auto;
        z-index: 2;
        padding: 0;
        border-radius: 14px;
        overflow: hidden;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .experience-grid .experience-image .image-wrapper {
        position: relative;
        width: 100%;
        height: auto;
        min-height: auto;
        aspect-ratio: 16 / 10;
        border-radius: 16px;
        overflow: hidden;
        background-color: var(--bg-dark);
        box-shadow: none;
    }

    .experience-grid .experience-image .exp-carousel-track {
        width: 100%;
        height: 100%;
    }

    .experience-grid .experience-image .exp-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .exp-carousel-dots {
        bottom: 12px;
    }

    .exp-dot {
        width: 7px;
        height: 7px;
        background-color: rgba(255, 255, 255, 0.55);
    }

    .exp-dot.active {
        background-color: var(--primary-color);
        width: 20px;
    }

    /* Chevron buttons subtly visible on mobile for quick tap navigation */
    .experience-image .exp-carousel-btn {
        opacity: 0.75;
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
        background-color: rgba(15, 20, 18, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.25);
    }
    .experience-image .exp-carousel-btn.prev {
        left: 10px;
    }
    .experience-image .exp-carousel-btn.next {
        right: 10px;
    }

    .experience-grid .experience-text {
        order: 2;
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        z-index: 3;
        width: 100%;
        max-width: 100%;
        min-height: auto;
        background: linear-gradient(165deg, rgba(19, 28, 24, 0.94), rgba(12, 17, 15, 0.97));
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(197, 160, 89, 0.24);
        border-radius: 14px;
        padding: 22px 20px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.1);
        text-align: left;
        pointer-events: auto;
    }

    .experience-text.interactive-card {
        min-height: 240px;
    }

    .experience-text.interactive-card .card-inner {
        min-height: 240px;
    }

    .experience-text p {
        text-align: left;
        color: rgba(255, 255, 255, 0.92);
        margin-bottom: 12px;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    }

    .experience-text p.lead {
        text-align: left;
        color: var(--white);
        font-size: 1.02rem;
        line-height: 1.62;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
    }

    .experience-text .hover-hint-wrapper {
        margin-top: 14px;
    }

    .experience-text .card-back {
        padding: 4px 0;
    }

    .experience-text.interactive-card.is-flipped .card-front {
        pointer-events: none;
    }

    .experience-text.interactive-card.is-flipped .card-back {
        pointer-events: auto;
    }

    .experience-text.interactive-card:not(.is-flipped) .card-back {
        pointer-events: none;
    }
}

/* ==========================================================================
   Mobile & Tablet Navigation: Minimal Dropdown Curtain (<= 1023px)
   ========================================================================== */
@media (max-width: 1023px) {
    .main-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding: 16px 24px;
        z-index: 1100;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        will-change: transform, opacity;
        transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease, padding 0.3s ease, background 0.3s ease;
    }
    .main-header.scrolled {
        padding: 12px 24px;
    }
    .logo a {
        font-size: 1.35rem;
        letter-spacing: 0.01em;
    }

    /* Hamburger Toggle Button */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.12);
        cursor: pointer;
        z-index: 1005;
        transition: all 0.25s ease;
    }
    .menu-toggle:hover,
    .menu-toggle:focus {
        background: rgba(197, 168, 128, 0.18);
        border-color: rgba(197, 168, 128, 0.4);
    }
    .menu-toggle .bar {
        display: block;
        width: 20px;
        height: 2px;
        margin: 0 auto;
        background-color: var(--white);
        border-radius: 2px;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.2s ease,
                    background-color 0.25s ease;
    }
    .menu-toggle.active {
        background: rgba(197, 168, 128, 0.25);
        border-color: var(--primary-color);
    }
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
        background-color: var(--primary-color);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
        background-color: var(--primary-color);
    }

    /* Dropdown Popover Navigation Under Hamburger (Right-Aligned, Content-Fit Width) */
    .nav-menu {
        position: absolute;
        top: calc(100% + 8px);
        right: 24px;
        left: auto;
        width: -moz-fit-content;
        width: fit-content;
        width: max-content;
        max-width: calc(100vw - 32px);
        box-sizing: border-box;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px) scale(0.96);
        transform-origin: top right;
        background: linear-gradient(180deg, #141c18 0%, #0c110f 100%);
        border: 1px solid rgba(197, 168, 128, 0.3);
        border-radius: 14px;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05);
        overflow: hidden;
        transition: max-height 0.32s cubic-bezier(0.2, 0.8, 0.2, 1),
                    opacity 0.25s ease,
                    transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
                    visibility 0.32s ease;
        z-index: 1150;
        display: grid !important;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
    }
    .nav-menu.active {
        max-height: 350px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    /* Desktop elements hidden on mobile/tablet */
    .desktop-nav-link,
    .nav-menu .desktop-nav-link,
    a.desktop-nav-link,
    .nav-configura-badge,
    .nav-menu .dropdown-menu,
    .dropdown-menu,
    .nav-menu .dropdown:hover > .dropdown-menu,
    .nav-menu .dropdown:focus-within > .dropdown-menu,
    .nav-menu .dropdown.open > .dropdown-menu,
    li.dropdown:hover > .dropdown-menu,
    .nav-view-main .dropdown-menu,
    .nav-view-main .dropdown:hover > .dropdown-menu,
    .nav-view-main .dropdown.open > .dropdown-menu {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        height: 0 !important;
        max-height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        clip: rect(0, 0, 0, 0) !important;
    }

    /* Viste Mobile/Tablet: Condividono la cella grid (1 / 1) per larghezza uniforme basata sulla scritta più lunga */
    .nav-view {
        grid-area: 1 / 1;
        width: 100%;
        box-sizing: border-box;
        padding: 8px 16px 10px 16px;
        transition: transform 0.34s cubic-bezier(0.25, 1, 0.5, 1),
                    opacity 0.24s ease !important;
        will-change: transform, opacity;
    }

    /* STATO DEFAULT: Menu principale visibile, sottomenu pronto a destra */
    .nav-view-main {
        display: block !important;
        transform: translateX(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
    .nav-view-sub {
        display: block !important;
        transform: translateX(100%) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /* STATO SUBMENU ATTIVO: Entrambe le viste scorrono fluide a sinistra del 100% */
    .nav-menu.is-submenu-active .nav-view-main {
        display: block !important;
        transform: translateX(-100%) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    .nav-menu.is-submenu-active .nav-view-sub {
        display: block !important;
        transform: translateX(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    /* Reset contenitori voci menu mobile/tablet */
    .nav-menu .dropdown,
    .nav-item-configura {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        position: relative !important;
        text-align: right !important;
    }

    /* Mobile/Tablet Lists */
    .nav-menu .nav-list {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        list-style: none;
        margin: 0;
        padding: 0;
        gap: 0;
        text-align: right !important;
    }

    .nav-sub-list {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        list-style: none;
        margin: 0;
        padding: 0;
        gap: 0;
        text-align: left !important;
    }

    .nav-menu .nav-list > li {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        box-sizing: border-box !important;
        text-align: right !important;
    }

    .nav-sub-list > li {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        box-sizing: border-box !important;
        text-align: left !important;
    }

    .nav-menu .nav-list > li:last-child,
    .nav-sub-list > li:last-child {
        border-bottom: none !important;
    }

    .nav-menu .nav-list > li.nav-item-lang {
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        padding: 10px 6px !important;
    }

    /* Allineamento a destra delle voci del Menu Principale */
    .nav-menu .nav-list a:not(.desktop-nav-link),
    .mobile-drilldown-btn {
        display: flex !important;
        align-items: center;
        justify-content: flex-end !important;
        text-align: right !important;
        width: 100%;
        padding: 12px 6px;
        font-family: var(--font-body);
        font-size: 0.78rem;
        font-weight: 500;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.9);
        text-decoration: none;
        background: transparent;
        border: none;
        cursor: pointer;
        transition: color 0.2s ease, transform 0.2s ease;
        box-sizing: border-box;
        white-space: nowrap !important;
    }
    .nav-menu a::after {
        display: none !important;
    }
    /* Mobile/Tablet: Azzeramento assoluto di stati hover/focus persistenti */
    .mobile-drilldown-btn,
    .mobile-drilldown-btn:not(:active),
    .mobile-drilldown-btn:focus,
    .mobile-drilldown-btn:focus-visible {
        color: rgba(255, 255, 255, 0.9) !important;
        transform: none !important;
        outline: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    .mobile-drilldown-btn .mobile-arrow-right,
    .mobile-drilldown-btn:not(:active) .mobile-arrow-right,
    .mobile-drilldown-btn:focus .mobile-arrow-right,
    .mobile-drilldown-btn:focus-visible .mobile-arrow-right {
        transform: none !important;
    }

    /* Feedback touch attivo ESCLUSIVAMENTE durante la pressione fisica istantanea */
    .nav-menu .nav-list a:active,
    .mobile-drilldown-btn:active {
        color: var(--primary-color) !important;
        transform: translateX(-4px) !important;
    }

    .nav-sub-link:active {
        color: var(--primary-color) !important;
        transform: translateX(4px) !important;
    }

    .nav-back-btn:active {
        transform: translateX(-3px) !important;
    }

    /* Ripristino immediato al rilascio per tutte le voci touch */
    .nav-menu .nav-list a:not(:active) {
        color: rgba(255, 255, 255, 0.9) !important;
        transform: none !important;
    }

    .nav-sub-link:not(:active) {
        color: rgba(255, 255, 255, 0.85) !important;
        transform: none !important;
    }

    .nav-back-btn:not(:active) {
        transform: none !important;
    }

    /* Rimuovi focus ring e tap highlight persistenti su touch */
    .mobile-drilldown-btn,
    .mobile-drilldown-btn:focus,
    .mobile-drilldown-btn:focus-visible,
    .nav-back-btn,
    .nav-back-btn:focus,
    .nav-back-btn:focus-visible {
        outline: none !important;
        box-shadow: none !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .mobile-drilldown-btn {
        gap: 8px;
    }

    .mobile-drilldown-btn .mobile-arrow-right {
        font-size: 0.70rem;
        color: var(--primary-color);
        margin: 0;
        transition: transform 0.2s ease;
    }

    /* Allineamento a sinistra delle voci del Sottomenu Attività (IL MARE, LE ESCURSIONI, I BORGHI) */
    .nav-sub-link {
        display: flex !important;
        align-items: center;
        justify-content: flex-start !important;
        text-align: left !important;
        width: 100%;
        padding: 12px 6px;
        font-family: var(--font-body);
        font-size: 0.76rem;
        font-weight: 500;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.85);
        text-decoration: none;
        background: transparent;
        border: none;
        cursor: pointer;
        transition: color 0.2s ease, transform 0.2s ease;
        box-sizing: border-box;
        white-space: nowrap !important;
    }

    /* Submenu Header */
    .nav-sub-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 6px 4px 8px 4px;
        margin-bottom: 2px;
        border-bottom: 1px solid rgba(197, 168, 128, 0.22);
    }
    .nav-back-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: transparent;
        border: none;
        color: var(--primary-color);
        font-family: var(--font-body);
        font-size: 0.76rem;
        font-weight: 600;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        cursor: pointer;
        padding: 3px 0;
        transition: transform 0.2s ease;
    }
    .nav-back-btn i {
        font-size: 0.70rem;
    }
    .nav-sub-title {
        font-family: var(--font-heading);
        font-size: 1.0rem;
        font-style: italic;
        color: rgba(255, 255, 255, 0.65);
        letter-spacing: 0.02em;
        text-align: right;
    }
}

@media (max-width: 768px) {
    .overlay-title {
        font-size: 3rem;
        margin-bottom: 15px;
    }
    .overlay-text {
        font-size: clamp(0.68rem, 2.3vw, 0.95rem);
        margin-bottom: 25px;
        white-space: nowrap;
    }
    .carousel-btn {
        width: 45px;
        height: 45px;
    }
    .scroll-indicator {
        display: none;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-item.large {
        grid-column: span 2;
        aspect-ratio: 4/3;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        right: 14px;
        width: -moz-fit-content;
        width: fit-content;
        width: max-content;
        max-width: calc(100vw - 28px);
    }
    .logo a {
        font-size: 1.15rem;
    }
    .overlay-title {
        font-size: 2.2rem;
    }
    .overlay-text {
        font-size: clamp(0.58rem, 2.7vw, 0.82rem);
        margin-bottom: 20px;
        white-space: nowrap;
    }
    .experience-grid,
    .experience-grid.reversed {
        gap: 14px;
        margin: 6px 0 20px 0;
    }
    .experience-grid .experience-text {
        padding: 18px 16px;
    }
    .experience-text p.lead {
        font-size: 0.94rem;
        line-height: 1.58;
    }
    .experience-text.interactive-card,
    .experience-text.interactive-card .card-inner {
        min-height: 230px;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-item.large {
        grid-column: span 1;
        aspect-ratio: 1;
    }
}

/* ==========================================================================
   Configuratore Interattivo di Esplorazione & Itinerary Planner
   ========================================================================== */

/* Card Selezionabile */
.config-card.selectable {
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1),
                box-shadow 0.35s cubic-bezier(0.25, 1, 0.5, 1),
                border-color 0.35s ease,
                background-color 0.35s ease;
    user-select: none;
}

.config-card.selectable:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 45px rgba(26, 38, 52, 0.12);
}

/* Stato Card Selezionata */
.config-card.selectable.is-selected {
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(197, 168, 128, 0.28), 0 0 0 1px rgba(197, 168, 128, 0.4);
    background-color: var(--white);
    transform: translateY(-4px);
}

/* Cerchio di Selezione in Alto a Destra */
.card-select-circle {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(26, 38, 52, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 1rem;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.config-card.selectable:hover .card-select-circle {
    border-color: var(--primary-color);
    transform: scale(1.08);
}

.config-card.selectable.is-selected .card-select-circle {
    background: linear-gradient(135deg, #d4b589, #b38f56);
    border-color: #ffffff;
    color: #ffffff;
    transform: scale(1.12);
    box-shadow: 0 6px 16px rgba(179, 143, 86, 0.45);
}

.card-select-circle i {
    opacity: 0;
    transform: scale(0.4);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.config-card.selectable.is-selected .card-select-circle i {
    opacity: 1;
    transform: scale(1);
}

/* Controlli di Configurazione Card (Switch iOS & Indicatori) */
.card-config-controls {
    --controls-gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(197, 168, 128, 0.2);
    display: flex;
    flex-direction: column;
    gap: var(--controls-gap);
    position: relative;
}

.config-control-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: var(--ctrl-height);
    z-index: 5;
    transition: z-index 0s 0.25s;
}

.config-control-row:hover,
.config-control-row:has(.has-tooltip:hover),
.config-control-row:has(.ios-segmented-switch:hover) {
    z-index: 50;
    transition: z-index 0s 0s;
}

.control-label {
    font-size: var(--ctrl-label-size);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    white-space: nowrap;
}

.control-label i {
    color: var(--primary-color);
    font-size: 0.88rem;
}

/* Indicatore Fisso (Badge) */
.fixed-duration-badge {
    position: relative;
    cursor: default;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    height: var(--ctrl-height);
    padding: 0 1.125rem;
    background: rgba(197, 168, 128, 0.12);
    border: 1px solid rgba(197, 168, 128, 0.35);
    border-radius: 9999px;
    font-size: 0.80rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 0.02em;
    line-height: 1.2;
    box-sizing: border-box;
    z-index: 10;
    transition: z-index 0s 0.25s, all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.fixed-duration-badge i {
    color: var(--primary-color);
}

.ios-segmented-switch .switch-option i,
.ios-segmented-switch .switch-option .switch-svg-icon {
    font-size: 0.85em;
    width: 0.95em;
    height: 0.95em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.ios-segmented-switch .switch-option .switch-svg-icon {
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    flex-shrink: 0;
}

/* Tooltip info on hover & click: universale per desktop, tablet e mobile.
   Centrato sull'origine del bottone/trigger, con freccia puntata esattamente al centro del bottone.
   --tooltip-shift viene calcolato da JS per mantenere il tooltip interamente dentro i confini della card. */
.switch-tooltip,
.switch-tooltip.tooltip-multiline {
    position: absolute;
    bottom: calc(100% + 9px);
    left: 50%;
    right: auto;
    transform: translateX(calc(-50% + var(--tooltip-shift, 0px))) translateY(4px);
    background: #111a24;
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 500;
    line-height: 1.45;
    padding: 8px 12px;
    border-radius: 9px;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    text-align: center;
    width: max-content;
    max-width: min(290px, calc(100cqw - 24px));
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    /* Quando il mouse esce dal bottone, il tooltip scompare all'istante (0s) senza ritardi o dissolvenze sovrapposte */
    transition: opacity 0s 0s, visibility 0s 0s, transform 0s 0s;
    transition-delay: 0s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(197, 168, 128, 0.65);
    z-index: 99999;
    letter-spacing: 0.02em;
    box-sizing: border-box;
}

/* Freccia: centrata sull'origine del bottone.
   Se il tooltip viene shiftato (--tooltip-shift) per non debordare dalla card,
   la freccia compensa esattamente con -var(--tooltip-shift) e resta perfettamente allineata al centro del bottone. */
.switch-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: clamp(14px, calc(50% - var(--tooltip-shift, 0px)), calc(100% - 14px));
    right: auto;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #111a24;
}

/* Elevazione z-index della card attiva affinché il tooltip sovrasti le card vicine */
.config-card:hover,
.config-card:focus-within,
.config-card:has(.switch-tooltip.is-active),
.config-card:has(.switch-option:hover),
.config-card:has(.has-tooltip:hover) {
    z-index: 45;
}

/* Attivazione via hover desktop/tablet: transizione fluida all'ingresso */
.ios-segmented-switch .switch-option:hover .switch-tooltip,
.has-tooltip:hover .switch-tooltip,
.fixed-duration-badge:hover .switch-tooltip,
.interactive-note-toggle:hover .switch-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(calc(-50% + var(--tooltip-shift, 0px))) translateY(0);
    transition: opacity 0.16s cubic-bezier(0.4, 0, 0.2, 1), transform 0.16s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.16s ease;
    transition-delay: 0.1s;
}

/* Attivazione via classe .is-active (click desktop o tocco tablet/smartphone) */
.switch-tooltip.is-active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(calc(-50% + var(--tooltip-shift, 0px))) translateY(0) !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* Elevazione trigger genitore in hover */
.has-tooltip,
.interactive-note-toggle,
.fixed-duration-badge {
    position: relative;
    z-index: 10;
    transition: z-index 0s 0.25s, all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.has-tooltip:hover,
.interactive-note-toggle:hover,
.fixed-duration-badge:hover,
.has-tooltip:has(.switch-tooltip.is-active),
.interactive-note-toggle:has(.switch-tooltip.is-active),
.fixed-duration-badge:has(.switch-tooltip.is-active) {
    z-index: 100;
    transition: z-index 0s 0s, all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Container Query per le Card */
.config-card {
    container-type: inline-size;
    container-name: configCard;
}

/* iOS Segmented / Toggle Switcher & Dynamic Glider */
.ios-segmented-switch {
    position: relative;
    display: inline-flex;
    align-items: stretch;
    background: #e9ecef;
    border-radius: 9999px;
    padding: 0.1875rem;
    user-select: none;
    cursor: pointer;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    height: var(--ctrl-height);
    max-width: 100%;
}

.ios-segmented-switch .switch-glider {
    position: absolute;
    top: 0;
    left: 0;
    background: #ffffff;
    border-radius: 9999px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.08);
    transition: transform 0.28s cubic-bezier(0.25, 1, 0.5, 1), 
                width 0.28s cubic-bezier(0.25, 1, 0.5, 1), 
                height 0.28s cubic-bezier(0.25, 1, 0.5, 1),
                opacity 0.2s ease,
                visibility 0.2s ease;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
}

.ios-segmented-switch.is-inactive .switch-glider {
    opacity: 0 !important;
    visibility: hidden !important;
}

.config-card.selectable.is-selected .ios-segmented-switch .switch-glider {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ios-segmented-switch .switch-option {
    position: relative;
    z-index: 2;
    padding: 0 var(--switch-pad-x);
    height: 100%;
    font-size: var(--switch-font-size);
    font-weight: 500;
    color: #6c757d;
    border-radius: 9999px;
    transition: color 0.25s ease, font-weight 0.25s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    box-sizing: border-box;
    cursor: pointer;
    line-height: 1.2;
}

.ios-segmented-switch.three-options .switch-option {
    padding: 0 var(--switch-3opt-pad-x);
    font-size: var(--switch-3opt-font-size);
    gap: 0.3rem;
}

.ios-segmented-switch .switch-option.active {
    color: var(--text-dark);
    font-weight: 600;
}

.ios-segmented-switch.is-inactive .switch-option {
    color: #6c757d;
    font-weight: 500;
}

/* Interactive Note Toggle Switches */
.ios-segmented-switch.note-toggle-switch {
    width: fit-content;
    max-width: 100%;
    cursor: pointer;
    height: var(--ctrl-height);
}

.ios-segmented-switch.note-toggle-switch .switch-option {
    padding: 0 0.95rem;
    font-size: 0.76rem;
    line-height: 1.2;
    cursor: pointer;
    user-select: none;
}

.ios-segmented-switch.note-toggle-switch:hover .switch-option {
    color: #495057;
}

.ios-segmented-switch.note-toggle-switch:hover i {
    transform: scale(1.08);
}

.ios-segmented-switch.note-toggle-switch:not(.is-inactive) .switch-option {
    color: var(--text-dark);
    font-weight: 600;
}

.ios-segmented-switch.note-toggle-switch:not(.is-inactive) .switch-option i {
    color: var(--primary-color-dark);
    transform: scale(1.05);
}

/* Double half circle icon */
.double-half-icon {
    display: inline-flex;
    align-items: center;
    gap: 1.5px;
}

.double-half-icon i {
    width: 10px;
    font-size: 0.72rem;
}

.double-half-icon .switch-svg-icon {
    width: 11px;
    height: 11px;
}

/* Fluid responsive adjustments based on Card Container width */
@container configCard (max-width: 375px) {
    .config-control-row {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }
    .control-label {
        font-size: 0.76rem;
        margin-bottom: 0;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .ios-segmented-switch:not(.note-toggle-switch) {
        width: auto;
        max-width: 100%;
        display: inline-flex;
        margin-left: auto;
    }
    .ios-segmented-switch:not(.note-toggle-switch) .switch-option {
        flex: 0 0 auto;
        min-width: 0;
        padding: 0 0.75rem;
        font-size: 0.74rem;
        text-align: center;
        justify-content: center;
    }
}

/* Stepper per il numero di persone (Pulsanti circolari e counter ingranditi) */
.ios-stepper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: var(--ctrl-height);
    background: transparent;
    user-select: none;
    box-sizing: border-box;
}

.ios-stepper .stepper-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--stepper-btn-size);
    height: var(--stepper-btn-size);
    background: #ffffff;
    border: 1.5px solid #d1d5db;
    border-radius: 50%;
    color: var(--text-dark, #2b2d42);
    font-size: 0.90rem;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    padding: 0;
    flex-shrink: 0;
    line-height: 1;
}

.ios-stepper .stepper-btn:hover:not(:disabled) {
    background: #fdfaf6;
    border-color: var(--primary-color-dark, #8b6b3e);
    color: var(--primary-color-dark, #8b6b3e);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.ios-stepper .stepper-btn:active:not(:disabled) {
    transform: scale(0.92);
}

.ios-stepper .stepper-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    border-color: #e5e7eb;
    background: #f8f9fa;
    box-shadow: none;
}

.ios-stepper .stepper-value {
    font-size: var(--stepper-val-size);
    font-weight: 700;
    color: var(--text-dark, #2b2d42);
    min-width: 28px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

.config-card.selectable.is-selected .ios-stepper .stepper-btn {
    border-color: rgba(139, 107, 62, 0.35);
}

.config-card.selectable.is-selected .ios-stepper .stepper-btn:hover:not(:disabled) {
    border-color: var(--primary-color-dark, #8b6b3e);
}

.config-control-row.people-count-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.group-stepper-hint {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    font-weight: 600;
    color: #78716c;
    background: #f5f5f4;
    border: 1px solid #e2e0dc;
    border-radius: 6px;
    padding: 2px 7px;
    margin-left: 6px;
    text-transform: none;
    letter-spacing: normal;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.group-stepper-hint i {
    color: #a8a29e;
}

.group-stepper-hint.is-active {
    color: #8c5300;
    background: #fff9ec;
    border-color: #f6cf8a;
    box-shadow: 0 1px 6px rgba(245, 166, 35, 0.18);
    font-weight: 700;
}

.group-stepper-hint.is-active i {
    color: #198754;
}

/* Gruppo di bottoni pillola per le note (2 mezze giornate, tutto il giorno, ecc.) */
.two-half-pills-group {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    flex-wrap: nowrap;
    max-width: 100%;
}

.two-half-pills-group:not(.two-by-two):not(.three-options):not(.options-3) {
    flex-wrap: nowrap !important;
}

.two-half-pills-group .ios-segmented-switch.note-toggle-switch {
    width: fit-content;
    height: var(--ctrl-height);
    flex-shrink: 0;
}

.two-half-pills-group .ios-segmented-switch.note-toggle-switch .switch-option {
    padding: 0 0.65rem;
    font-size: 0.72rem;
    line-height: 1.2;
    gap: 0.25rem;
    white-space: nowrap;
}

/* Quando è selezionato Tutto il Giorno o 2 Mezze Giornate */
.two-half-pills-group.full-day-notes {
    gap: 0.35rem;
}

.two-half-pills-group.full-day-notes .ios-segmented-switch.note-toggle-switch {
    width: fit-content;
    height: var(--ctrl-height);
    flex-shrink: 0;
}

.two-half-pills-group.full-day-notes .ios-segmented-switch.note-toggle-switch .switch-option {
    padding: 0 0.65rem;
    font-size: 0.72rem;
    line-height: 1.2;
    gap: 0.25rem;
    white-space: nowrap;
    width: auto;
}

/* Disposizione 2 a 2 per 4 opzioni di note (es. SUP stessa giornata) */
.two-half-pills-group.two-by-two,
.two-half-pills-group.sup-notes-group.two-by-two {
    display: grid !important;
    grid-template-columns: repeat(2, max-content);
    gap: 0.35rem 0.45rem;
    justify-content: end;
    align-items: center;
}

.two-half-pills-group.two-by-two .ios-segmented-switch.note-toggle-switch,
.two-half-pills-group.sup-notes-group.two-by-two .ios-segmented-switch.note-toggle-switch {
    width: 100%;
    height: var(--ctrl-height);
    box-sizing: border-box;
    flex-shrink: 0;
}

.two-half-pills-group.two-by-two .ios-segmented-switch.note-toggle-switch .switch-option,
.two-half-pills-group.sup-notes-group.two-by-two .ios-segmented-switch.note-toggle-switch .switch-option {
    width: 100%;
    padding: 0 0.7rem;
    font-size: 0.72rem;
    line-height: 1.2;
    gap: 0.25rem;
    white-space: nowrap;
    justify-content: center;
    box-sizing: border-box;
}

.config-control-row.has-two-by-two,
.config-control-row.sup-note-control-row.has-two-by-two {
    align-items: flex-start !important;
    max-height: calc(2 * var(--ctrl-height) + 1.5rem);
}

.config-control-row.has-two-by-two .control-label,
.config-control-row.sup-note-control-row.has-two-by-two .control-label {
    padding-top: 0.35rem;
}

/* Note del SUP: quando sono su una riga senza wrapping */
.two-half-pills-group.sup-notes-group:not(.two-by-two):not(.three-options):not(.options-3) {
    flex-wrap: nowrap !important;
}

.two-half-pills-group.sup-notes-group:not(.two-by-two):not(.three-options):not(.options-3) .ios-segmented-switch.note-toggle-switch {
    height: var(--ctrl-height);
    flex-shrink: 0;
}

/* Quando ci sono 3 opzioni (es. card SUP o Isole con 3 note) */
.config-control-row.has-three-options,
.config-control-row.sup-note-control-row.has-three-options {
    gap: 6px;
}

.config-control-row.has-three-options .control-label,
.config-control-row.sup-note-control-row.has-three-options .control-label {
    font-size: 0.74rem;
    gap: 4px;
    flex-shrink: 0;
    white-space: nowrap;
}

.two-half-pills-group.three-options,
.two-half-pills-group.sup-notes-group.three-options {
    gap: 0.35rem;
}

.config-control-row.spiagge-note-control-row,
.config-control-row.hiking-note-control-row,
.config-control-row.sup-note-control-row,
.config-control-row.isole-note-control-row {
    align-items: center;
}

.config-control-row.spiagge-note-control-row .control-label,
.config-control-row.hiking-note-control-row .control-label,
.config-control-row.sup-note-control-row .control-label,
.config-control-row.isole-note-control-row .control-label {
    padding-top: 0;
}

/* Nota informativa discreta sotto le note (es. Le Spiagge) */
.config-card-info-note {
    display: flex;
    align-items: center;
    gap: 6.5px;
    font-size: clamp(0.71rem, 2cqw, 0.76rem);
    color: #6c757d;
    margin-top: -2px;
    padding: 2px 2px 0;
    line-height: 1.35;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.config-card-info-note i {
    color: var(--primary-color-dark, #8b6b3e);
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}

.config-card-info-note:hover i {
    transform: scale(1.15);
    color: var(--primary-color, #c5a880);
}

@container configCard (max-width: 375px) {
    .two-half-pills-group:not(.two-by-two) {
        width: auto;
        display: inline-flex;
        gap: 0.25rem;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    .two-half-pills-group:not(.two-by-two) .ios-segmented-switch.note-toggle-switch {
        flex: 0 0 auto;
        width: fit-content;
    }
    .two-half-pills-group:not(.two-by-two) .ios-segmented-switch.note-toggle-switch .switch-option {
        width: auto;
        padding: 0 0.4rem;
        font-size: 0.64rem;
        gap: 0.2rem;
    }

    .two-half-pills-group.full-day-notes {
        width: auto;
        display: inline-flex;
        gap: 0.25rem;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    .two-half-pills-group.full-day-notes .ios-segmented-switch.note-toggle-switch {
        flex: 0 0 auto;
        width: fit-content;
    }
    .two-half-pills-group.full-day-notes .ios-segmented-switch.note-toggle-switch .switch-option {
        width: auto;
        padding: 0 0.4rem;
        font-size: 0.64rem;
        gap: 0.2rem;
    }
}

/* Animazioni uniformi, rapide e fluide per righe ed opzioni */
@keyframes optionFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.spiagge-normal-timeslot-switch,
.hiking-normal-timeslot-switch,
.trekking-normal-timeslot-switch,
.giardini-normal-timeslot-switch,
.bici-normal-timeslot-switch,
.sup-normal-timeslot-switch,
.dolceacqua-normal-timeslot-switch,
.ceriana-normal-timeslot-switch,
.triora-normal-timeslot-switch,
.borghi-riviera-normal-timeslot-switch,
.spiagge-split-switch,
.trekking-split-switch,
.hiking-split-switch,
.giardini-split-switch,
.bici-split-switch,
.sup-split-switch,
.dolceacqua-split-switch,
.ceriana-split-switch,
.triora-split-switch,
.borghi-riviera-split-switch,
.spiagge-day1-slot-switch,
.spiagge-day2-slot-switch,
.trekking-day1-slot-switch,
.trekking-day2-slot-switch,
.hiking-day1-slot-switch,
.hiking-day2-slot-switch,
.giardini-day1-slot-switch,
.giardini-day2-slot-switch,
.bici-day1-slot-switch,
.bici-day2-slot-switch,
.sup-day1-slot-switch,
.sup-day2-slot-switch,
.dolceacqua-day1-slot-switch,
.dolceacqua-day2-slot-switch,
.ceriana-day1-slot-switch,
.ceriana-day2-slot-switch,
.triora-day1-slot-switch,
.triora-day2-slot-switch,
.borghi-riviera-day1-slot-switch,
.borghi-riviera-day2-slot-switch,
.spiagge-diff-momento-switch,
.sup-diff-momento-switch,
.spiagge-two-half-momento-group,
.hiking-two-half-momento-group,
.spiagge-two-half-notes-group,
.trekking-two-half-notes-group,
.hiking-two-half-notes-group,
.giardini-two-half-notes-group,
.bici-two-half-notes-group,
.dolceacqua-two-half-notes-group,
.ceriana-two-half-notes-group,
.triora-two-half-notes-group,
.borghi-riviera-two-half-notes-group,
.sup-notes-group,
.isole-notes-group,
.triora-notes-group,
#spiagge-note-badge,
#trekking-note-badge,
#hiking-note-badge,
#giardini-note-badge,
#bici-note-badge,
#dolceacqua-note-badge,
#ceriana-note-badge,
#triora-note-badge,
#borghi-riviera-note-badge,
.two-half-pills-group .ios-segmented-switch.note-toggle-switch {
    animation: optionFadeIn 0.22s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.config-control-row.time-slot-row,
.config-control-row.sup-note-row,
.config-control-row.collapsible-row {
    max-height: calc(var(--ctrl-height) + 0.75rem);
    min-height: var(--ctrl-height);
    opacity: 1;
    transform: translateY(0);
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    pointer-events: auto;
    visibility: visible;
    overflow: hidden;
    transition: max-height 0.34s cubic-bezier(0.25, 1, 0.5, 1),
                min-height 0.34s cubic-bezier(0.25, 1, 0.5, 1),
                margin-top 0.34s cubic-bezier(0.25, 1, 0.5, 1),
                opacity 0.28s cubic-bezier(0.25, 1, 0.5, 1),
                transform 0.34s cubic-bezier(0.25, 1, 0.5, 1),
                visibility 0.34s ease;
}

.config-control-row.time-slot-row:not(.is-hidden):hover,
.config-control-row.sup-note-row:not(.is-hidden):hover,
.config-control-row.collapsible-row:not(.is-hidden):hover,
.config-control-row:has(.switch-tooltip:hover),
.config-control-row:has(.switch-option:hover) {
    overflow: visible;
}

.config-control-row.time-slot-row.is-hidden,
.config-control-row.sup-note-row.is-hidden,
.config-control-row.collapsible-row.is-hidden {
    max-height: 0 !important;
    min-height: 0 !important;
    opacity: 0 !important;
    transform: translateY(-6px) !important;
    margin-top: calc(-1 * var(--controls-gap, 8px)) !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    overflow: hidden !important;
}

.config-card.selectable.is-selected .ios-segmented-switch .switch-option.active {
    color: var(--text-dark);
    font-weight: 600;
}

.config-card.selectable.is-selected .ios-segmented-switch .switch-glider {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Sezione "ITINERARIO" Espandibile per le Card del Configuratore
   Pulsante stile .hover-hint-btn ("ESPLORA I BORGHI") con icona a freccia.
   Espansione fluida ed emersione del testo da sotto con traslazione e dissolvenza.
   ========================================================================== */
.card-itinerary-section {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px dashed rgba(197, 168, 128, 0.28);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 4;
}

.card-itinerary-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.80rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--primary-color, #c5a880);
    font-weight: 600;
    background: transparent;
    border: none;
    padding: 0.35rem 0;
    cursor: pointer;
    transition: color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
    opacity: 0.92;
    -webkit-appearance: none;
    appearance: none;
}

.card-itinerary-toggle-btn:hover {
    color: #e0c89a;
    transform: translateX(3px);
    opacity: 1;
}

.card-itinerary-toggle-btn .itinerary-toggle-icon {
    font-size: 0.72rem;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}

.card-itinerary-section.is-itinerary-open .card-itinerary-toggle-btn .itinerary-toggle-icon,
.card-itinerary-toggle-btn[aria-expanded="true"] .itinerary-toggle-icon {
    transform: rotate(180deg);
}

.card-itinerary-drawer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    box-sizing: border-box;
}

.card-itinerary-section.is-itinerary-open .card-itinerary-drawer {
    grid-template-rows: 1fr;
}

.card-itinerary-inner {
    overflow: hidden;
    min-height: 0;
}

.card-itinerary-text {
    margin: 0;
    padding: 0.75rem 0 0.25rem 0;
    font-size: 0.84rem;
    line-height: 1.55;
    color: #4a5550;
    font-weight: 400;
    opacity: 0;
    transform: translateY(-22px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
    white-space: pre-line;
}

.card-itinerary-section.is-itinerary-open .card-itinerary-text {
    opacity: 1;
    transform: translateY(0);
}

/* Sticky / Floating Itinerary Planner Bar */
.planner-bar-wrapper {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    width: 92%;
    max-width: 56.25rem;
    z-index: 1050;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), 
                opacity 0.35s ease, 
                width 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), 
                max-width 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
                bottom 0.4s ease;
    opacity: 0;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.planner-bar-wrapper.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.planner-bar {
    background: rgba(26, 38, 52, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(197, 168, 128, 0.45);
    border-radius: 1.375rem;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08);
    color: #ffffff;
    gap: 1.25rem;
    width: 100%;
    box-sizing: border-box;
    opacity: 1;
    transform: scale(1);
    transform-origin: center center;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                filter 0.35s ease;
    filter: blur(0px);
}

.planner-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}

.planner-count-badge {
    min-width: 52px;
    width: auto;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #c5a880, #9f7d4d);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(197, 168, 128, 0.4);
    flex-shrink: 0;
    padding: 0 6px;
    box-sizing: border-box;
}

.planner-count-badge .number {
    font-size: 1.25rem;
    line-height: 1;
}

.planner-count-badge .label {
    font-size: 0.52rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    opacity: 0.95;
    white-space: nowrap;
    text-align: center;
    line-height: 1;
    margin-top: 2px;
}

.planner-summary-text h4 {
    font-size: 1.05rem;
    font-family: var(--font-heading);
    color: #ffffff;
    margin-bottom: 3px;
    letter-spacing: 0.02em;
}

.planner-summary-text p {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
}

.planner-summary-text .highlight-days {
    color: var(--primary-color);
    font-weight: 600;
}

.planner-prefix,
.planner-suffix {
    display: inline;
}

.planner-mobile-caption {
    display: none;
}

.planner-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.planner-btn {
    padding: 0.65rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.84rem;
    line-height: 1.2;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    text-decoration: none;
    box-sizing: border-box;
}

.planner-btn.btn-reset {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.65rem 1.25rem;
}

.planner-btn.btn-reset:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.planner-btn.btn-view {
    background: linear-gradient(135deg, #c5a880, #aa8653);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(179, 143, 86, 0.4);
    padding: 0.6875rem 1.5rem;
}

.planner-btn.btn-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(179, 143, 86, 0.55);
}

.planner-btn.btn-view .btn-text-short {
    display: none;
}

.planner-btn.btn-view .btn-text-full {
    display: inline;
}

/* Collapsed Floating Trigger - Disabled (Banner remains permanently accessible when active) */
.planner-collapsed-trigger {
    display: none !important;
}

/* Modal / Drawer Dettaglio Itinerario */
body.modal-open {
    overflow: hidden !important;
    touch-action: none !important;
    -webkit-overflow-scrolling: auto !important;
}

.itinerary-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 32, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.itinerary-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.itinerary-modal {
    background: var(--bg-light);
    border-radius: 1.5rem;
    width: 100%;
    max-width: 47.5rem;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(197, 168, 128, 0.4);
    overflow: hidden;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.itinerary-modal-overlay.is-open .itinerary-modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 1.5rem 1.875rem;
    background: #ffffff;
    border-bottom: 1px solid rgba(197, 168, 128, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin: 0;
    font-family: var(--font-heading);
}

.modal-close-btn {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: #f4f5f7;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: #e2e5e9;
    color: var(--text-dark);
}

.modal-body {
    padding: 14px 30px 28px 30px;
    overflow-y: auto;
    flex: 1;
}

/* Itinerary Modal Pricing Summary & Discounts */
.itinerary-pricing-summary-wrapper {
    margin-top: 28px;
    margin-bottom: 10px;
}

.itinerary-pricing-summary {
    width: 100%;
}

.pricing-main-card {
    background: #ffffff;
    border: 1px solid rgba(197, 168, 128, 0.35);
    border-radius: 20px;
    padding: 22px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.pricing-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(197, 168, 128, 0.22);
}

.pricing-title-box {
    display: flex;
    flex-direction: column;
}

.pricing-kicker {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-color-dark);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.pricing-numbers {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.price-strike-gray {
    color: #8a9490;
    text-decoration: line-through;
    font-size: 1.35rem;
    font-weight: 600;
}

.price-active-bronze {
    color: var(--primary-color);
    font-size: 2.15rem;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.pricing-savings-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #2b7a30;
    background: #eef7ee;
    border: 1px solid rgba(46, 125, 50, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    margin-top: 6px;
    font-weight: 500;
    width: fit-content;
}

.pricing-savings-pill strong {
    font-weight: 700;
}

.pricing-active-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
    margin-top: 8px;
}

.pricing-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 12px;
    letter-spacing: 0.01em;
}

.pricing-badge.season-badge {
    background: #fff5eb;
    color: #c94a00;
    border: 1px solid #ffd1b3;
}

.pricing-badge.season-badge i {
    color: #f55d00;
}

.pricing-badge.multi-badge {
    background: #fff4e5;
    color: #b76e00;
    border: 1px solid #ffd8a8;
}

.pricing-badge.vip-badge {
    background: #fff0eb;
    color: #c93a00;
    border: 1px solid #ffc9b5;
}

.pricing-badge.group-badge {
    background: #eaf3ff;
    color: #0b63e5;
    border: 1px solid #b8d7ff;
}

.pricing-badge.combo-badge {
    background: rgba(197, 168, 128, 0.18);
    color: var(--primary-color-dark);
    border: 1px solid rgba(197, 168, 128, 0.45);
}

/* Guida Sconti e Vantaggi Interattiva */
.discounts-guide-box {
    margin-top: 18px;
    background: #faf8f5;
    border-radius: 16px;
    padding: 16px 20px;
    border: 1px dashed rgba(197, 168, 128, 0.4);
}

.guide-intro {
    font-size: 0.88rem;
    color: var(--text-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.discounts-guide-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.guide-card {
    background: #ffffff;
    border: 1px solid #e7eaf0;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
}

.guide-card.is-achieved {
    border-color: rgba(197, 168, 128, 0.65);
    background: #fffdf9;
    box-shadow: 0 2px 10px rgba(197, 168, 128, 0.12);
}

.guide-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.guide-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.01em;
}

/* Container per la barra di progresso Sconto Attività Multiple */
.multi-progress-container {
    position: relative;
    padding: 0.85rem 0.25rem 3.75rem 0.25rem;
    margin: 0.5rem 0 0 0;
}

.multi-progress-bar-area {
    position: relative;
    height: 8px;
    margin: 0 40px 0 16px;
}

.multi-progress-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: #ebeef2;
    border-radius: 6px;
    overflow: hidden;
}

.multi-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #c5a880 0%, #b89358 50%, #9a7336 100%);
    border-radius: 6px;
    transition: width 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.progress-tick {
    position: absolute;
    top: 4px;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    z-index: 2;
}

.progress-tick .tick-pin {
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #adb5bd;
    box-shadow: none;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.progress-tick.is-reached .tick-pin {
    background: #b8860b;
    border-color: #adb5bd;
    box-shadow: none;
}

.progress-tick.is-current .tick-pin {
    background: #b8860b;
    border-color: #adb5bd;
    box-shadow: none;
}

.progress-tick .tick-label {
    position: absolute;
    top: 1.35rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    white-space: nowrap;
    text-align: center;
    gap: 0.25rem;
    line-height: 1.2;
}

.progress-tick.tick-4 .tick-label {
    transform: translateX(-15%);
}

.progress-tick .tick-title {
    font-size: 0.72rem;
    font-weight: 600;
    color: #6c757d;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.progress-tick.is-reached .tick-title {
    color: var(--text-dark);
    font-weight: 700;
}

.progress-tick .tick-badge {
    font-size: 0.68rem;
    padding: 0.2rem 0.55rem;
    border-radius: 0.375rem;
    background: #f1f3f5;
    color: #495057;
    font-weight: 600;
    line-height: 1.2;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.progress-tick.is-reached .tick-badge {
    background: rgba(197, 168, 128, 0.18);
    color: var(--primary-color-dark);
    border-color: rgba(197, 168, 128, 0.45);
}

.progress-tick.is-current .tick-badge {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 2px 6px rgba(197, 168, 128, 0.35);
    font-weight: 700;
}

.progress-tick .tick-badge.discount-10,
.progress-tick .tick-badge.discount-20 {
    font-weight: 700;
}

.guide-msg {
    font-size: clamp(0.68rem, 1.8vw, 0.82rem);
    color: var(--text-dark);
    margin-top: 0.5rem;
    line-height: 1.35;
    position: relative;
    z-index: 3;
    clear: both;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.guide-card-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 6px 0;
    line-height: 1.35;
}

.discounts-footer-note {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid rgba(197, 168, 128, 0.22);
    font-size: 0.82rem;
    color: var(--primary-color-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Planning section header inside modal */
.itinerary-planning-section-header {
    margin: 0 0 14px 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.itinerary-planning-section-header h4 {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
}

.itinerary-planning-section-header .planning-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Header inside activity info for per-activity price */
.activity-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.activity-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-bottom: 4px;
}

.activity-info-header h5 {
    margin: 0 !important;
}

.itinerary-act-price-badge {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 3px 8px;
    background: #faf8f5;
    border-radius: 8px;
    border: 1px solid rgba(197, 168, 128, 0.25);
    margin-left: auto;
    flex-shrink: 0;
}

.itinerary-act-price-badge .price-strike-gray {
    font-size: 0.85rem;
    color: #8a9490;
    text-decoration: line-through;
    font-weight: 500;
}

.itinerary-act-price-badge .price-active-bronze {
    font-size: 1.05rem;
    color: var(--primary-color);
    font-weight: 800;
    line-height: 1;
}

.act-mini-discount {
    font-size: 0.68rem;
    font-weight: 700;
    color: #b76e00;
    background: #fff4e5;
    padding: 1px 5px;
    border-radius: 4px;
}

/* Dettaglio quota e motivi sconti per singola attività nella timeline */
.act-discounts-breakdown {
    width: 100%;
    box-sizing: border-box;
    margin-top: 8px;
    padding: 8px 12px;
    background: #fdfbf7;
    border-radius: 8px;
    border: 1px solid rgba(197, 168, 128, 0.25);
    border-left: 3px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.act-discounts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
}

.act-breakdown-title {
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.act-breakdown-title i {
    color: var(--primary-color);
}

.act-savings-note {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--primary-color-dark);
    background: rgba(197, 168, 128, 0.15);
    padding: 2px 7px;
    border-radius: 6px;
}

.act-discounts-reasons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.act-reason-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.73rem;
    color: var(--text-dark);
    background: #ffffff;
    border: 1px solid #e7eaf0;
    padding: 3px 8px;
    border-radius: 6px;
    line-height: 1.35;
}

.act-reason-item.season {
    border-color: rgba(255, 107, 107, 0.35);
    background: #fff8f8;
}

.act-reason-item.season i {
    color: #ff6b6b;
}

.act-reason-item.multi {
    border-color: rgba(197, 168, 128, 0.45);
    background: rgba(197, 168, 128, 0.12);
    color: var(--primary-color-dark);
    font-weight: 600;
}

.act-reason-item.multi i {
    color: var(--primary-color);
}

.act-reason-item.group {
    border-color: rgba(46, 125, 50, 0.35);
    background: rgba(46, 125, 50, 0.08);
    color: #2e7d32;
    font-weight: 600;
}

.act-reason-item.group i {
    color: #2e7d32;
}

/* Itinerary empty state */
.itinerary-empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
}

.itinerary-empty-state .empty-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    opacity: 0.8;
}

.itinerary-empty-state h4 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.itinerary-empty-state p {
    font-size: 0.9rem;
    max-width: 440px;
    margin: 0 auto;
    line-height: 1.5;
}

.day-timeline-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 20px 24px;
    margin-bottom: 20px;
    border: 1px solid rgba(197, 168, 128, 0.25);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    width: 100%;
    box-sizing: border-box;
}

.day-timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(197, 168, 128, 0.3);
    width: 100%;
}

.day-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.day-type-badge {
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(197, 168, 128, 0.15);
    color: var(--text-dark);
    font-weight: 600;
    flex-shrink: 0;
}

.day-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 8px;
    border-radius: 12px;
    width: 100%;
    box-sizing: border-box;
    transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.day-activity-item.draggable-item {
    cursor: grab;
}

.day-activity-item.draggable-item:active {
    cursor: grabbing;
}

.day-activity-item.is-dragging {
    opacity: 0.35;
    background: rgba(197, 168, 128, 0.15);
}

.day-activity-item.drag-over-top {
    border-top: 2px solid var(--primary-color) !important;
    background: rgba(197, 168, 128, 0.08);
}

.day-activity-item.drag-over-bottom {
    border-bottom: 2px solid var(--primary-color) !important;
    background: rgba(197, 168, 128, 0.08);
}

.activity-reorder-ctrls {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    flex-shrink: 0;
    user-select: none;
    margin-top: 1px;
    padding: 1px 0;
}

.itinerary-move-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.25rem;
    background: transparent;
    border: none;
    padding: 0;
    font-size: 0.72rem;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 0.25rem;
    transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
    line-height: 1;
}

.itinerary-move-btn:hover:not(:disabled) {
    color: var(--primary-color-dark);
    background: rgba(197, 168, 128, 0.2);
    transform: scale(1.15);
}

.itinerary-move-btn:active:not(:disabled) {
    transform: scale(0.92);
}

.itinerary-move-btn:disabled {
    opacity: 0.18;
    cursor: not-allowed;
    pointer-events: none;
}

.activity-drag-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.25rem;
    color: #a0aec0;
    font-size: 0.92rem;
    cursor: grab;
    flex-shrink: 0;
    transition: color 0.2s ease, transform 0.2s ease;
    user-select: none;
}

.day-activity-item:hover .activity-drag-handle {
    color: var(--primary-color-dark);
    transform: scale(1.12);
}

.day-activity-item:not(:last-child) {
    border-bottom: 1px solid #f2f3f5;
}

.day-activity-item.slot-morning {
    border-left: 4px solid #f59e0b;
    background: rgba(245, 158, 11, 0.03);
}

.day-activity-item.slot-afternoon {
    border-left: 4px solid #0d6efd;
    background: rgba(13, 110, 253, 0.03);
}

.day-activity-item.slot-fullday {
    border-left: 4px solid #10b981;
    background: rgba(16, 185, 129, 0.03);
}

.activity-slot-tag {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 8px;
    background: #f0f2f5;
    color: var(--text-dark);
    flex-shrink: 0;
    margin-top: 2px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.activity-slot-tag.morning {
    background: #fff4e5;
    color: #b76e00;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.activity-slot-tag.morning i {
    color: #f59e0b;
}

.activity-slot-tag.afternoon {
    background: #e8f4fd;
    color: #0d6efd;
    border: 1px solid rgba(13, 110, 253, 0.35);
}

.activity-slot-tag.afternoon i {
    color: #0d6efd;
}

.activity-slot-tag.fullday {
    background: #e6f7ed;
    color: #198754;
    border: 1px solid rgba(25, 135, 84, 0.35);
}

.activity-slot-tag.fullday i {
    color: #198754;
}

/* Selettore orario (Mattina / Pomeriggio) nella timeline */
.itinerary-slot-toggle {
    display: inline-flex;
    align-items: center;
    background: #edf2f7;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 2px;
    gap: 3px;
    flex-shrink: 0;
    margin-top: 2px;
    user-select: none;
}

.itinerary-slot-toggle .slot-opt {
    border: none;
    background: transparent;
    border-radius: 16px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1.2;
}

.itinerary-slot-toggle .slot-opt:hover:not(.active):not(.is-active) {
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.75);
}

.itinerary-slot-toggle .slot-opt.morning.active,
.itinerary-slot-toggle .slot-opt.morning.is-active {
    background: #fff4e5;
    color: #b76e00;
    border: 1px solid rgba(245, 158, 11, 0.5);
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25);
}

.itinerary-slot-toggle .slot-opt.morning.active i,
.itinerary-slot-toggle .slot-opt.morning.is-active i {
    color: #f59e0b;
}

.itinerary-slot-toggle .slot-opt.afternoon.active,
.itinerary-slot-toggle .slot-opt.afternoon.is-active {
    background: #e8f4fd;
    color: #0d6efd;
    border: 1px solid rgba(13, 110, 253, 0.4);
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.25);
}

.itinerary-slot-toggle .slot-opt.afternoon.active i,
.itinerary-slot-toggle .slot-opt.afternoon.is-active i {
    color: #0d6efd;
}

/* Badge Momento nel resoconto dettagliato dell'attività */
.itinerary-momento-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.02em;
    vertical-align: middle;
    transition: all 0.2s ease;
}

.itinerary-momento-pill.morning {
    color: #b76e00;
    background: #fff4e5;
    border: 1px solid rgba(245, 158, 11, 0.45);
}

.itinerary-momento-pill.morning i {
    color: #f59e0b;
}

.itinerary-momento-pill.afternoon {
    color: #0d6efd;
    background: #e8f4fd;
    border: 1px solid rgba(13, 110, 253, 0.4);
}

.itinerary-momento-pill.afternoon i {
    color: #0d6efd;
}

.itinerary-momento-pill.fullday {
    color: #198754;
    background: #e6f7ed;
    border: 1px solid rgba(25, 135, 84, 0.35);
}

.itinerary-momento-pill.fullday i {
    color: #198754;
}


.activity-info h5 {
    font-size: 0.98rem;
    color: var(--text-dark);
    margin: 0 0 5px 0;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.activity-info p,
.itinerary-activity-details {
    font-size: 0.83rem;
    color: #4a5568;
    margin: 0;
    line-height: 1.5;
}

.itinerary-activity-details strong {
    color: var(--text-dark);
    font-weight: 600;
}


/* ==========================================================================
   Laptop Computer Adaptations (1024px - 1440px)
   Maintains side-by-side proportions with calibrated rem metrics.
   ========================================================================== */
@media (min-width: 1024px) and (max-width: 1440px) {
    .container {
        max-width: 60rem;
    }
    .experience-grid {
        gap: 2.5rem;
    }
    .config-cards-grid {
        gap: 1.5rem;
    }
    .planner-bar-wrapper {
        max-width: 50rem;
    }

    /* ==========================================================================
       Desktop & Laptop (1024px - 1439px)
       Uniformazione Bottoni, Slider, Testi e Simboli
       ========================================================================== */
    :root {
        --ctrl-height: 2.25rem;
        --ctrl-label-size: 0.78rem;
        --switch-font-size: 0.78rem;
        --switch-pad-x: 0.75rem;
        --switch-icon-size: 0.80rem;
        --stepper-btn-size: 2.25rem;
        --stepper-val-size: 1.05rem;
        --controls-gap: 0.5rem;
    }

    .config-control-row {
        gap: var(--controls-gap) !important;
        align-items: center !important;
    }

    .control-label {
        font-size: var(--ctrl-label-size) !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    .control-label i {
        font-size: var(--switch-icon-size) !important;
    }

    /* Slider / Segmented Switch (Durata, Split) */
    .ios-segmented-switch {
        height: var(--ctrl-height) !important;
        border-radius: 9999px !important;
        width: auto !important;
        max-width: 100% !important;
    }

    .ios-segmented-switch .switch-option {
        height: 100% !important;
        font-size: var(--switch-font-size) !important;
        font-weight: 600 !important;
        padding: 0 var(--switch-pad-x) !important;
        gap: 0.35rem !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    .ios-segmented-switch .switch-option i,
    .ios-segmented-switch .switch-option .switch-svg-icon {
        font-size: var(--switch-icon-size) !important;
        width: 0.95em !important;
        height: 0.95em !important;
    }

    /* Badge a Durata Fissa (es. Giornata Intera) */
    .fixed-duration-badge {
        height: var(--ctrl-height) !important;
        font-size: var(--switch-font-size) !important;
        font-weight: 600 !important;
        padding: 0 var(--switch-pad-x) !important;
        gap: 0.35rem !important;
        line-height: 1.2 !important;
        border-radius: 9999px !important;
        display: inline-flex !important;
        align-items: center !important;
        white-space: nowrap !important;
        width: auto !important;
    }

    .fixed-duration-badge i {
        font-size: var(--switch-icon-size) !important;
    }

    /* Bottoni / Pills delle Note (Singoli e Multipli) */
    .ios-segmented-switch.note-toggle-switch {
        height: var(--ctrl-height) !important;
        width: auto !important;
        max-width: 100% !important;
        border-radius: 9999px !important;
    }

    .ios-segmented-switch.note-toggle-switch .switch-option {
        height: 100% !important;
        font-size: var(--switch-font-size) !important;
        font-weight: 600 !important;
        padding: 0 var(--switch-pad-x) !important;
        gap: 0.35rem !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    .ios-segmented-switch.note-toggle-switch .switch-option i {
        font-size: var(--switch-icon-size) !important;
    }

    /* Raggruppamento Note: wrap fluido elegante senza schiacciare i bottoni */
    .two-half-pills-group {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.35rem !important;
        align-items: center !important;
    }

    .two-half-pills-group .ios-segmented-switch.note-toggle-switch {
        flex: 0 0 auto !important;
        width: auto !important;
    }

    .two-half-pills-group .ios-segmented-switch.note-toggle-switch .switch-option {
        padding: 0 var(--switch-pad-x) !important;
        font-size: var(--switch-font-size) !important;
        gap: 0.35rem !important;
    }

    .two-half-pills-group .ios-segmented-switch.note-toggle-switch .switch-option i {
        font-size: var(--switch-icon-size) !important;
    }

    /* Stepper Persone */
    .ios-stepper {
        height: var(--ctrl-height) !important;
    }

    .ios-stepper .stepper-btn {
        width: var(--stepper-btn-size) !important;
        height: var(--stepper-btn-size) !important;
        font-size: var(--switch-icon-size) !important;
    }

    .ios-stepper .stepper-value {
        font-size: var(--stepper-val-size) !important;
    }
}

/* ==========================================================================
   Desktop Globale (>= 1024px): Gruppi Note a 3 Opzioni
   Sempre 2 bottoni sulla prima riga e il 3° a capo sotto al 2° bottone,
   allineato a destra e con le stesse identiche dimensioni, a qualsiasi larghezza schermo.
   ========================================================================== */
@media (min-width: 1024px) {
    .config-control-row.has-three-options,
    .config-control-row.has-options-3 {
        align-items: flex-start !important;
    }

    .config-control-row.has-three-options .control-label,
    .config-control-row.has-options-3 .control-label {
        height: var(--ctrl-height, 2.25rem) !important;
        display: inline-flex !important;
        align-items: center !important;
    }

    .two-half-pills-group.three-options:not([style*="display: none"]):not([style*="display:none"]),
    .two-half-pills-group.options-3:not([style*="display: none"]):not([style*="display:none"]),
    .two-half-pills-group.isole-notes-group.three-options,
    .two-half-pills-group.sup-notes-group.three-options,
    .has-three-options .two-half-pills-group:not([style*="display: none"]):not([style*="display:none"]),
    .has-options-3 .two-half-pills-group:not([style*="display: none"]):not([style*="display:none"]) {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        justify-content: end !important;
        justify-items: stretch !important;
        align-items: center !important;
        gap: 0.35rem !important;
        width: fit-content !important;
        max-width: 100% !important;
    }

    .two-half-pills-group.three-options .ios-segmented-switch.note-toggle-switch,
    .two-half-pills-group.options-3 .ios-segmented-switch.note-toggle-switch,
    .two-half-pills-group.sup-notes-group.three-options .ios-segmented-switch.note-toggle-switch,
    .has-three-options .two-half-pills-group .ios-segmented-switch.note-toggle-switch,
    .has-options-3 .two-half-pills-group .ios-segmented-switch.note-toggle-switch {
        height: var(--ctrl-height, 2.25rem) !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .two-half-pills-group.three-options .ios-segmented-switch.note-toggle-switch .switch-option,
    .two-half-pills-group.options-3 .ios-segmented-switch.note-toggle-switch .switch-option,
    .two-half-pills-group.sup-notes-group.three-options .ios-segmented-switch.note-toggle-switch .switch-option,
    .has-three-options .two-half-pills-group .ios-segmented-switch.note-toggle-switch .switch-option,
    .has-options-3 .two-half-pills-group .ios-segmented-switch.note-toggle-switch .switch-option {
        height: 100% !important;
        width: 100% !important;
        padding: 0 var(--switch-pad-x, 0.75rem) !important;
        font-size: var(--switch-font-size, 0.78rem) !important;
        gap: 0.35rem !important;
        letter-spacing: normal !important;
        white-space: nowrap !important;
        justify-content: center !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    .two-half-pills-group.three-options .ios-segmented-switch.note-toggle-switch .switch-option i,
    .two-half-pills-group.options-3 .ios-segmented-switch.note-toggle-switch .switch-option i,
    .two-half-pills-group.sup-notes-group.three-options .ios-segmented-switch.note-toggle-switch .switch-option i,
    .has-three-options .two-half-pills-group .ios-segmented-switch.note-toggle-switch .switch-option i,
    .has-options-3 .two-half-pills-group .ios-segmented-switch.note-toggle-switch .switch-option i {
        font-size: var(--switch-icon-size, 0.80rem) !important;
    }

    .two-half-pills-group.three-options .note-visible-index-1,
    .two-half-pills-group.options-3 .note-visible-index-1,
    .has-three-options .two-half-pills-group .note-visible-index-1,
    .has-options-3 .two-half-pills-group .note-visible-index-1 {
        grid-column: 1 / 2 !important;
        grid-row: 1 !important;
        justify-self: stretch !important;
        width: 100% !important;
    }

    .two-half-pills-group.three-options .note-visible-index-2,
    .two-half-pills-group.options-3 .note-visible-index-2,
    .has-three-options .two-half-pills-group .note-visible-index-2,
    .has-options-3 .two-half-pills-group .note-visible-index-2 {
        grid-column: 2 / 3 !important;
        grid-row: 1 !important;
        justify-self: stretch !important;
        width: 100% !important;
    }

    .two-half-pills-group.three-options .note-visible-index-3,
    .two-half-pills-group.options-3 .note-visible-index-3,
    .has-three-options .two-half-pills-group .note-visible-index-3,
    .has-options-3 .two-half-pills-group .note-visible-index-3 {
        grid-column: 2 / 3 !important;
        grid-row: 2 !important;
        justify-self: stretch !important;
        width: 100% !important;
    }
}

/* ==========================================================================
   Tablet Adaptations (768px - 1023px)
   Preserves side-by-side layout and proportional elegance on iPad / Tablet.
   Leaves smartphone rules (<= 767px) strictly untouched.
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1023px) {
    :root {
        --ctrl-height: 2rem;
        --ctrl-label-size: 0.75rem;
        --switch-font-size: 0.74rem;
        --switch-pad-x: 0.625rem;
        --switch-3opt-font-size: 0.68rem;
        --switch-3opt-pad-x: 0.4375rem;
        --stepper-btn-size: 2rem;
        --stepper-val-size: 1.05rem;
        --controls-gap: 0.4375rem;
    }

    .experience-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: center;
    }

    .experience-grid.reversed {
        grid-template-columns: 1fr 1fr;
    }

    .card-config-controls {
        margin-top: 12px;
        padding-top: 10px;
    }

    .btn {
        padding: 11px 24px;
        font-size: 0.82rem;
    }

    .hover-hint-btn,
    .back-flip-btn {
        font-size: 0.78rem;
        letter-spacing: 0.14em;
    }

    .fixed-duration-badge {
        padding: 0 12px;
        font-size: 0.76rem;
    }

    /* Uniformazione Controlli Tablet */
    .config-control-row {
        gap: var(--controls-gap) !important;
        align-items: center !important;
    }

    .control-label {
        font-size: var(--ctrl-label-size) !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    .control-label i {
        font-size: var(--switch-icon-size) !important;
    }

    .ios-segmented-switch {
        height: var(--ctrl-height) !important;
        border-radius: 9999px !important;
        width: auto !important;
        max-width: 100% !important;
    }

    .ios-segmented-switch .switch-option {
        height: 100% !important;
        font-size: var(--switch-font-size) !important;
        font-weight: 600 !important;
        padding: 0 var(--switch-pad-x) !important;
        gap: 0.35rem !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    .ios-segmented-switch .switch-option i,
    .ios-segmented-switch .switch-option .switch-svg-icon {
        font-size: var(--switch-icon-size) !important;
        width: 0.95em !important;
        height: 0.95em !important;
    }

    .fixed-duration-badge {
        height: var(--ctrl-height) !important;
        font-size: var(--switch-font-size) !important;
        font-weight: 600 !important;
        padding: 0 var(--switch-pad-x) !important;
        gap: 0.35rem !important;
        line-height: 1.2 !important;
        border-radius: 9999px !important;
        display: inline-flex !important;
        align-items: center !important;
        white-space: nowrap !important;
        width: auto !important;
    }

    .fixed-duration-badge i {
        font-size: var(--switch-icon-size) !important;
    }

    .ios-segmented-switch.note-toggle-switch {
        height: var(--ctrl-height) !important;
        width: auto !important;
        max-width: 100% !important;
        border-radius: 9999px !important;
    }

    .ios-segmented-switch.note-toggle-switch .switch-option {
        height: 100% !important;
        font-size: var(--switch-font-size) !important;
        font-weight: 600 !important;
        padding: 0 var(--switch-pad-x) !important;
        gap: 0.35rem !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    .ios-segmented-switch.note-toggle-switch .switch-option i {
        font-size: var(--switch-icon-size) !important;
    }

    .two-half-pills-group:not([style*="display: none"]):not([style*="display:none"]) {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.35rem !important;
        align-items: center !important;
    }

    .two-half-pills-group .ios-segmented-switch.note-toggle-switch {
        flex: 0 0 auto !important;
        width: auto !important;
    }

    .two-half-pills-group .ios-segmented-switch.note-toggle-switch .switch-option {
        padding: 0 var(--switch-pad-x) !important;
        font-size: var(--switch-font-size) !important;
        gap: 0.35rem !important;
    }

    .two-half-pills-group .ios-segmented-switch.note-toggle-switch .switch-option i {
        font-size: var(--switch-icon-size) !important;
    }

    .ios-stepper {
        height: var(--ctrl-height) !important;
    }

    .ios-stepper .stepper-btn {
        width: var(--stepper-btn-size) !important;
        height: var(--stepper-btn-size) !important;
        font-size: var(--switch-icon-size) !important;
    }

    .ios-stepper .stepper-value {
        font-size: var(--stepper-val-size) !important;
    }

    .planner-bar-wrapper {
        max-width: 44rem;
    }

    .planner-btn.btn-view {
        padding: 10px 20px;
        font-size: 0.80rem;
    }

    .planner-btn.btn-reset {
        padding: 9px 16px;
        font-size: 0.78rem;
    }

    .two-half-pills-group.two-by-two,
    .two-half-pills-group.sup-notes-group.two-by-two {
        gap: 4px 6px;
    }

    .two-half-pills-group.two-by-two .ios-segmented-switch.note-toggle-switch .switch-option,
    .two-half-pills-group.sup-notes-group.two-by-two .ios-segmented-switch.note-toggle-switch .switch-option {
        padding: 0 7px;
        font-size: 0.66rem;
    }

    .config-control-row.has-two-by-two .control-label,
    .config-control-row.sup-note-control-row.has-two-by-two .control-label {
        padding-top: 6px;
    }

    .pricing-main-card {
        padding: 18px 20px;
    }

    .discounts-guide-grid {
        gap: 10px;
    }

    .price-active-bronze {
        font-size: 1.85rem;
    }
}

/* ==========================================================================
   Tablet Orizzontale / Landscape (768px - 1023px, altezza tablet >= 501px)
   Uniformazione Bottoni, Slider, Testi e Simboli
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1023px) and (orientation: landscape) and (min-height: 501px),
       (min-width: 768px) and (max-width: 1023px) and (min-aspect-ratio: 1/1) and (min-height: 501px) {
    :root {
        --tablet-btn-height: 2.35rem;
        --tablet-btn-font-size: 0.82rem;
        --tablet-btn-icon-size: 0.84rem;
        --tablet-btn-pad-x: 0.85rem;
        --tablet-ctrl-label-size: 0.80rem;
    }

    .config-control-row {
        gap: 0.55rem !important;
        align-items: center !important;
    }

    .control-label {
        font-size: var(--tablet-ctrl-label-size) !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    .control-label i {
        font-size: var(--tablet-btn-icon-size) !important;
    }

    /* Slider / Segmented Switch */
    .ios-segmented-switch {
        height: var(--tablet-btn-height) !important;
        border-radius: 9999px !important;
        width: auto !important;
        max-width: 100% !important;
    }

    .ios-segmented-switch .switch-option {
        height: 100% !important;
        font-size: var(--tablet-btn-font-size) !important;
        font-weight: 600 !important;
        padding: 0 var(--tablet-btn-pad-x) !important;
        gap: 0.4rem !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    .ios-segmented-switch .switch-option i,
    .ios-segmented-switch .switch-option .switch-svg-icon {
        font-size: var(--tablet-btn-icon-size) !important;
        width: 0.95em !important;
        height: 0.95em !important;
    }

    /* Badge a Durata Fissa */
    .fixed-duration-badge {
        height: var(--tablet-btn-height) !important;
        font-size: var(--tablet-btn-font-size) !important;
        font-weight: 600 !important;
        padding: 0 var(--tablet-btn-pad-x) !important;
        gap: 0.4rem !important;
        line-height: 1.2 !important;
        border-radius: 9999px !important;
        display: inline-flex !important;
        align-items: center !important;
        white-space: nowrap !important;
        width: auto !important;
    }

    .fixed-duration-badge i {
        font-size: var(--tablet-btn-icon-size) !important;
    }

    /* Bottoni delle Note */
    .ios-segmented-switch.note-toggle-switch {
        height: var(--tablet-btn-height) !important;
        width: auto !important;
        max-width: 100% !important;
        border-radius: 9999px !important;
    }

    .ios-segmented-switch.note-toggle-switch .switch-option {
        height: 100% !important;
        font-size: var(--tablet-btn-font-size) !important;
        font-weight: 600 !important;
        padding: 0 var(--tablet-btn-pad-x) !important;
        gap: 0.4rem !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    .ios-segmented-switch.note-toggle-switch .switch-option i {
        font-size: var(--tablet-btn-icon-size) !important;
    }

    /* Gruppi di Note Multi-Opzione */
    .two-half-pills-group:not([style*="display: none"]):not([style*="display:none"]) {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
        align-items: center !important;
    }

    .two-half-pills-group .ios-segmented-switch.note-toggle-switch {
        flex: 0 0 auto !important;
        width: auto !important;
    }

    .two-half-pills-group .ios-segmented-switch.note-toggle-switch .switch-option {
        padding: 0 var(--tablet-btn-pad-x) !important;
        font-size: var(--tablet-btn-font-size) !important;
        gap: 0.4rem !important;
    }

    .two-half-pills-group .ios-segmented-switch.note-toggle-switch .switch-option i {
        font-size: var(--tablet-btn-icon-size) !important;
    }

    /* Gruppi Note a 3 Opzioni su Tablet Orizzontale: 2 sulla prima riga, 1 a capo sotto al 2° bottone allineato a destra con stesse dimensioni */
    .config-control-row.has-three-options,
    .config-control-row.has-options-3 {
        align-items: flex-start !important;
    }

    .config-control-row.has-three-options .control-label,
    .config-control-row.has-options-3 .control-label {
        height: var(--tablet-btn-height) !important;
        display: inline-flex !important;
        align-items: center !important;
    }

    .two-half-pills-group.three-options:not([style*="display: none"]):not([style*="display:none"]),
    .two-half-pills-group.options-3:not([style*="display: none"]):not([style*="display:none"]),
    .two-half-pills-group.isole-notes-group.three-options,
    .two-half-pills-group.sup-notes-group.three-options,
    .has-three-options .two-half-pills-group:not([style*="display: none"]):not([style*="display:none"]),
    .has-options-3 .two-half-pills-group:not([style*="display: none"]):not([style*="display:none"]) {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        justify-content: end !important;
        justify-items: stretch !important;
        align-items: center !important;
        gap: 0.35rem !important;
        width: fit-content !important;
        max-width: 100% !important;
    }

    .two-half-pills-group.three-options .ios-segmented-switch.note-toggle-switch,
    .two-half-pills-group.options-3 .ios-segmented-switch.note-toggle-switch,
    .two-half-pills-group.sup-notes-group.three-options .ios-segmented-switch.note-toggle-switch,
    .has-three-options .two-half-pills-group .ios-segmented-switch.note-toggle-switch,
    .has-options-3 .two-half-pills-group .ios-segmented-switch.note-toggle-switch {
        height: var(--tablet-btn-height) !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .two-half-pills-group.three-options .ios-segmented-switch.note-toggle-switch .switch-option,
    .two-half-pills-group.options-3 .ios-segmented-switch.note-toggle-switch .switch-option,
    .two-half-pills-group.sup-notes-group.three-options .ios-segmented-switch.note-toggle-switch .switch-option,
    .has-three-options .two-half-pills-group .ios-segmented-switch.note-toggle-switch .switch-option,
    .has-options-3 .two-half-pills-group .ios-segmented-switch.note-toggle-switch .switch-option {
        height: 100% !important;
        width: 100% !important;
        padding: 0 var(--tablet-btn-pad-x) !important;
        font-size: var(--tablet-btn-font-size) !important;
        gap: 0.35rem !important;
        letter-spacing: normal !important;
        white-space: nowrap !important;
        justify-content: center !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    .two-half-pills-group.three-options .ios-segmented-switch.note-toggle-switch .switch-option i,
    .two-half-pills-group.options-3 .ios-segmented-switch.note-toggle-switch .switch-option i,
    .two-half-pills-group.sup-notes-group.three-options .ios-segmented-switch.note-toggle-switch .switch-option i,
    .has-three-options .two-half-pills-group .ios-segmented-switch.note-toggle-switch .switch-option i,
    .has-options-3 .two-half-pills-group .ios-segmented-switch.note-toggle-switch .switch-option i {
        font-size: var(--tablet-btn-icon-size) !important;
    }

    .two-half-pills-group.three-options .note-visible-index-1,
    .two-half-pills-group.options-3 .note-visible-index-1,
    .has-three-options .two-half-pills-group .note-visible-index-1,
    .has-options-3 .two-half-pills-group .note-visible-index-1 {
        grid-column: 1 / 2 !important;
        grid-row: 1 !important;
        justify-self: stretch !important;
        width: 100% !important;
    }

    .two-half-pills-group.three-options .note-visible-index-2,
    .two-half-pills-group.options-3 .note-visible-index-2,
    .has-three-options .two-half-pills-group .note-visible-index-2,
    .has-options-3 .two-half-pills-group .note-visible-index-2 {
        grid-column: 2 / 3 !important;
        grid-row: 1 !important;
        justify-self: stretch !important;
        width: 100% !important;
    }

    .two-half-pills-group.three-options .note-visible-index-3,
    .two-half-pills-group.options-3 .note-visible-index-3,
    .has-three-options .two-half-pills-group .note-visible-index-3,
    .has-options-3 .two-half-pills-group .note-visible-index-3 {
        grid-column: 2 / 3 !important;
        grid-row: 2 !important;
        justify-self: stretch !important;
        width: 100% !important;
    }

    /* Stepper Persone */
    .ios-stepper {
        height: var(--tablet-btn-height) !important;
    }

    .ios-stepper .stepper-btn {
        width: var(--tablet-btn-height) !important;
        height: var(--tablet-btn-height) !important;
        font-size: var(--tablet-btn-icon-size) !important;
    }

    .ios-stepper .stepper-value {
        font-size: 1.1rem !important;
    }

    /* Tooltip su Tablet Orizzontale con puntatore fine (mouse/trackpad):
       pointer-events: auto già impostato dalla regola globale .switch-tooltip.is-active */
    .switch-tooltip.is-active {
        pointer-events: auto !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: transparent !important;
    }
}

/* ==========================================================================
   Tooltip su Tablet Orizzontale Touch (classe .is-touch-tablet aggiunta via JS su tablet touch in landscape)
   - Il tooltip è visibile ESCLUSIVAMENTE quando ha .is-active (aperto al tap)
   - Scompare all'istante quando .is-active viene rimossa (tap sul tooltip, tap sul bottone, auto-close)
   - Sovrascrive l'hover "appiccicoso" di iOS/Android che terrebbe il tooltip visibile dopo il rilascio
   ========================================================================== */
body.is-touch-tablet .switch-tooltip:not(.is-active) {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: none !important;
}

body.is-touch-tablet .switch-tooltip.is-active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(calc(-50% + var(--tooltip-shift, 0px))) translateY(0) !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* ==========================================================================
   Tablet Vertical (Portrait) Specific Adaptations (768px - 1023px)
   Rende le cards più larghe ed eleganti su tablet in orientamento verticale.
   Non impatta laptop/desktop (>= 1024px) né smartphone (<= 767px).
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1023px) and (orientation: portrait),
       (min-width: 768px) and (max-width: 1023px) and (max-aspect-ratio: 1/1) {
    .container {
        width: 94% !important;
        max-width: 100% !important;
    }

    .config-cards-grid {
        max-width: 100% !important;
        width: 100% !important;
        gap: 2.25rem !important;
    }

    .config-card {
        width: 100% !important;
        max-width: 100% !important;
    }

    .config-card-body {
        padding: 26px 28px !important;
    }

    .experience-grid {
        gap: 2.25rem !important;
    }

    .planner-bar-wrapper {
        max-width: 94% !important;
        width: 94% !important;
    }

    /* Logo Your Secret Riviera +50% più grande su Tablet Verticale (1.35rem -> 2.025rem) */
    .logo a {
        font-size: 2.025rem !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
    }

    /* Hero Overlay Proportions on Tablet Vertical (matches Horizontal Tablet proportions) */
    .overlay-subtitle {
        font-size: 1.15rem !important;
        letter-spacing: 0.32em !important;
        margin-bottom: 1.5rem !important;
    }

    .overlay-title {
        font-size: clamp(4.75rem, 7.75vw, 5.75rem) !important;
        line-height: 1.12 !important;
        margin-bottom: 1.5rem !important;
        white-space: nowrap !important;
    }

    .overlay-text {
        font-size: clamp(1.12rem, 2.2vw, 1.28rem) !important;
        line-height: 1.6 !important;
        margin-bottom: 2.75rem !important;
        white-space: nowrap !important;
    }

    .carousel-overlay .btn,
    .carousel-overlay .btn-primary {
        padding: 15px 36px !important;
        font-size: 1.05rem !important;
        letter-spacing: 0.16em !important;
        font-weight: 600 !important;
    }

    /* ==========================================================================
       Card Controls Ingranditi su Tablet Verticale (Slider, Bottoni, Font & Icone)
       Tutti i controlli hanno la stessa altezza, padding, dimensione testo e icone
       ========================================================================== */
    :root {
        --ctrl-height: 2.5rem !important;
        --ctrl-label-size: 0.88rem !important;
        --switch-font-size: 0.84rem !important;
        --switch-icon-size: 0.92rem !important;
        --switch-pad-x: 0.95rem !important;
        --stepper-btn-size: 2.5rem !important;
        --stepper-val-size: 1.18rem !important;
        --controls-gap: 0.65rem !important;
        --duration-slider-width: 15.5rem !important;
    }

    .card-config-controls {
        margin-top: 16px !important;
        padding-top: 14px !important;
        gap: 0.65rem !important;
    }

    .config-control-row {
        gap: 0.65rem !important;
        min-height: 2.5rem !important;
    }

    .control-label {
        font-size: 0.88rem !important;
        gap: 8px !important;
    }

    .control-label i {
        font-size: 0.95rem !important;
    }

    /* Slider / Segmented Switch */
    .ios-segmented-switch {
        height: 2.5rem !important;
    }

    .ios-segmented-switch .switch-option {
        font-size: 0.84rem !important;
        padding: 0 0.95rem !important;
        gap: 0.45rem !important;
    }

    .ios-segmented-switch .switch-option i,
    .ios-segmented-switch .switch-option .switch-svg-icon {
        font-size: 0.92rem !important;
        width: 1.05em !important;
        height: 1.05em !important;
    }

    /* Badge Durata Fissa */
    .fixed-duration-badge {
        height: 2.5rem !important;
        font-size: 0.84rem !important;
        padding: 0 1.15rem !important;
        gap: 0.45rem !important;
    }

    .fixed-duration-badge i {
        font-size: 0.92rem !important;
    }

    /* Bottoni Note Singoli e Multi-Opzione */
    .ios-segmented-switch.note-toggle-switch {
        height: 2.5rem !important;
    }

    .ios-segmented-switch.note-toggle-switch .switch-option {
        font-size: 0.84rem !important;
        padding: 0 0.95rem !important;
        gap: 0.45rem !important;
    }

    .ios-segmented-switch.note-toggle-switch .switch-option i {
        font-size: 0.92rem !important;
    }

    .two-half-pills-group:not([style*="display: none"]):not([style*="display:none"]) {
        gap: 0.5rem !important;
    }

    .two-half-pills-group .ios-segmented-switch.note-toggle-switch .switch-option {
        font-size: 0.84rem !important;
        padding: 0 0.95rem !important;
        gap: 0.45rem !important;
    }

    .two-half-pills-group .ios-segmented-switch.note-toggle-switch .switch-option i {
        font-size: 0.92rem !important;
    }

    /* Stepper Persone */
    .ios-stepper {
        height: 2.5rem !important;
    }

    .ios-stepper .stepper-btn {
        width: 2.5rem !important;
        height: 2.5rem !important;
        font-size: 0.95rem !important;
    }

    .ios-stepper .stepper-value {
        font-size: 1.18rem !important;
    }
}

/* ==========================================================================
   Desktop, Tablet Orizzontale e Tablet Verticale (>= 768px)
   Uniformazione Lunghezza Slider:
   Gli slider di Giornate, 1° Giorno, 2° Giorno, Mezzo e Momento
   devono avere la stessa lunghezza dello Slider del Tempo Stimato.
   ========================================================================== */
@media (min-width: 768px) {
    :root {
        --duration-slider-width: 14.5rem;
    }

    .card-config-controls .ios-segmented-switch[data-switch-type="duration"],
    .card-config-controls .ios-segmented-switch[data-switch-type="split"],
    .card-config-controls .ios-segmented-switch[data-switch-type="two_half_day1_slot"],
    .card-config-controls .ios-segmented-switch[data-switch-type="two_half_day2_slot"],
    .card-config-controls .ios-segmented-switch[data-switch-type="transport"],
    .card-config-controls .ios-segmented-switch[data-switch-type="timeslot"] {
        width: var(--duration-slider-width, 14.5rem) !important;
        max-width: 100% !important;
        display: inline-flex !important;
        flex: 0 0 auto !important;
    }

    .card-config-controls .ios-segmented-switch[data-switch-type="duration"] .switch-option,
    .card-config-controls .ios-segmented-switch[data-switch-type="split"] .switch-option,
    .card-config-controls .ios-segmented-switch[data-switch-type="two_half_day1_slot"] .switch-option,
    .card-config-controls .ios-segmented-switch[data-switch-type="two_half_day2_slot"] .switch-option,
    .card-config-controls .ios-segmented-switch[data-switch-type="transport"] .switch-option,
    .card-config-controls .ios-segmented-switch[data-switch-type="timeslot"] .switch-option {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        justify-content: center !important;
        text-align: center !important;
        padding-left: 0.35rem !important;
        padding-right: 0.35rem !important;
        white-space: nowrap !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) and (orientation: portrait),
       (min-width: 768px) and (max-width: 1023px) and (max-aspect-ratio: 1/1) {
    :root {
        --duration-slider-width: 15.5rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) and (orientation: landscape) and (min-height: 501px),
       (min-width: 768px) and (max-width: 1023px) and (min-aspect-ratio: 1/1) and (min-height: 501px) {
    :root {
        --duration-slider-width: 15rem;
    }
}

@media (min-width: 1024px) and (max-width: 1440px) {
    :root {
        --duration-slider-width: 14.5rem;
    }
}

@media (min-width: 1440.02px) {
    :root {
        --duration-slider-width: 15.75rem;
    }
}

/* ==========================================================================
   Smartphone Specific Adaptations (Verticale & Orizzontale)
   Stessa visualizzazione e stesse regole sia per smartphone verticale (<= 767px)
   che per smartphone orizzontale / landscape (<= 1023px con altezza <= 500px).
   ========================================================================== */
@media (max-width: 767px),
       (max-width: 1023px) and (orientation: landscape) and (max-height: 500px) {
    html, body {
        overflow-x: clip !important;
        overflow-y: visible !important;
        max-width: 100% !important;
        width: 100% !important;
        position: relative !important;
    }

    .logo a {
        font-size: 2.025rem !important; /* +50% rispetto a 1.35rem */
        line-height: 1.15 !important;
        white-space: nowrap !important;
    }

    /* Header Scomparsa su Smartphone Verticale con scorrimento fluido verso l'alto */
    .main-header.header-hidden-mobile {
        -webkit-transform: translate3d(0, -100%, 0) !important;
        transform: translate3d(0, -100%, 0) !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    /* Banner Selezione Attività a filo con la cima dello schermo (top: 0) più alto del 15% */
    .activities-nav-chips {
        display: block !important;
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 999 !important;
        transform: none !important;
        -webkit-transform: none !important;
        will-change: auto !important;
        padding: 10px 12px !important; /* +15% altezza banner */
        background: rgba(250, 249, 246, 0.94) !important;
        border-bottom: 1px solid rgba(197, 168, 128, 0.35) !important;
        box-shadow: 0 4px 16px rgba(15, 20, 18, 0.07) !important;
    }

    #attivita {
        overflow: visible !important;
        position: relative;
    }

    #mare,
    #escursioni,
    #borghi {
        scroll-margin-top: 60px !important;
    }

    /* Bottoni delle attività ingranditi del 15% in proporzione */
    .activity-chip {
        font-size: 0.88rem !important; /* +15% (da 0.76rem a 0.88rem) */
        padding: 7px 16px !important; /* +15% proporzionato (da 6px 14px a 7px 16px) */
        gap: 7px !important;
        font-weight: 600 !important;
        color: #2b332f !important;
        background: #ffffff !important;
        border: 1px solid rgba(197, 168, 128, 0.35) !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
    }

    .activity-chip i {
        font-size: 0.85rem !important; /* +15% (da 0.74rem a 0.85rem) */
        color: var(--primary-dark) !important;
    }

    .activity-chip.active {
        background: linear-gradient(135deg, #dfc49e, #cca675) !important;
        color: #ffffff !important;
        border-color: #be9762 !important;
        text-shadow: 0 1px 2px rgba(60, 45, 20, 0.28) !important;
        box-shadow: 0 3px 12px rgba(197, 168, 128, 0.35) !important;
    }

    .activity-chip.active i {
        color: #ffffff !important;
        filter: drop-shadow(0 1px 2px rgba(60, 45, 20, 0.28)) !important;
    }

    /* Hero Overlay Proportions on Smartphone Vertical (Perfect centering & responsive scaling) */
    .carousel-overlay {
        padding: 0 16px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        box-sizing: border-box !important;
    }

    .overlay-content {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    .overlay-subtitle {
        font-size: 0.95rem !important;
        letter-spacing: 0.28em !important;
        margin-bottom: 1.15rem !important;
        text-align: center !important;
        width: 100% !important;
    }

    .overlay-title {
        font-size: clamp(1.95rem, 9.3vw, 2.75rem) !important;
        line-height: 1.16 !important;
        margin: 0 auto 1.35rem auto !important;
        white-space: nowrap !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        letter-spacing: 0.02em !important;
    }

    .overlay-text {
        font-size: clamp(0.92rem, 3.5vw, 1.08rem) !important;
        line-height: 1.5 !important;
        white-space: normal !important;
        max-width: 25rem !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 2.25rem !important;
        text-align: center !important;
        font-weight: 300 !important;
    }

    .overlay-text-lead {
        display: block !important;
        margin-bottom: 0.32rem !important;
        font-weight: 300 !important;
        white-space: nowrap !important;
    }

    .overlay-text-sub {
        display: block !important;
        font-weight: 300 !important;
        opacity: 0.95 !important;
    }

    .carousel-overlay .btn,
    .carousel-overlay .btn-primary {
        padding: 14px 28px !important;
        font-size: 0.92rem !important;
        letter-spacing: 0.14em !important;
        font-weight: 600 !important;
    }

    /* ==========================================================================
       Activity Sections: Central Carousel & Light Minimalist Text on Smartphone Vertical
       ========================================================================== */
    .desktop-only-text {
        display: inline !important;
    }

    .read-more-toggle-btn {
        display: none !important;
    }

    .truncate-mobile .text-collapsible {
        display: inline !important;
        max-height: none !important;
        opacity: 1 !important;
        overflow: visible !important;
    }

    .truncate-mobile .text-collapsible .text-more {
        display: inline !important;
    }

    /* Rimuove l'a capo dopo le fronde degli ulivi, mediterranei la cingono e qualche abitante su smartphone verticale */
    .br-desktop {
        display: none !important;
    }

    .hover-hint-wrapper {
        display: none !important;
    }

    .card-back {
        display: none !important;
    }

    .experience-text.interactive-card {
        perspective: none !important;
        min-height: auto !important;
        height: auto !important;
    }

    .experience-text.interactive-card .card-inner {
        min-height: auto !important;
        height: auto !important;
        transform: none !important;
    }

    /* Central, Dominant Photo Carousel (Proporzioni 2:3 verticali per foto ritratto senza bordo bronzeo) */
    .experience-grid .experience-image {
        position: relative !important;
        z-index: 10 !important;
        border-radius: 18px !important;
        overflow: hidden !important;
        border: none !important;
        box-shadow: 0 14px 36px rgba(15, 20, 18, 0.40) !important;
        background: #0f1412 !important;
    }

    .experience-grid .experience-image .image-wrapper {
        aspect-ratio: 2 / 3 !important;
        min-height: auto !important;
        width: 100% !important;
        border-radius: 16px !important;
        overflow: hidden !important;
    }

    .experience-grid .experience-image .exp-carousel-track,
    .experience-grid .experience-image .exp-slide,
    .experience-grid .experience-image .exp-slide img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 16px !important;
    }

    /* Light, Minimalist Card strictly incentivizing "Configura la tua esplorazione"
       Sboccia ed emerge fisicamente da sotto al carosello durante lo scorrimento */
    .experience-grid .experience-text {
        position: relative !important;
        z-index: 5 !important;
        margin-top: -28px !important; /* Incastro naturale: la scheda scivola fuori da sotto il carosello */
        background: rgba(255, 255, 255, 0.98) !important;
        border: 1px solid rgba(197, 168, 128, 0.35) !important;
        border-radius: 20px !important;
        padding: 26px 20px 22px !important;
        box-shadow: 0 8px 24px rgba(15, 20, 18, 0.08) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        text-align: center !important;
        will-change: transform, opacity;
    }

    .experience-text p.lead {
        color: #1a221f !important;
        font-size: 0.98rem !important; /* Testo poetico completo perfettamente proporzionato */
        line-height: 1.68 !important;
        text-shadow: none !important;
        margin-bottom: 16px !important;
        text-align: center !important;
        font-family: var(--font-body) !important;
        font-weight: 400 !important;
        letter-spacing: 0.01em !important;
    }

    .experience-text p.lead span,
    .experience-text p.lead .text-visible,
    .experience-text p.lead .desktop-only-text,
    .experience-text p.lead .text-collapsible,
    .experience-text p.lead .text-more {
        color: #1a221f !important;
        display: inline !important;
        font-size: inherit !important;
        line-height: inherit !important;
        font-family: inherit !important;
    }

    /* Micro-Tags for Direct Card Access & Touch Prompt */
    .mobile-activity-cta-wrap {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
        width: 100% !important;
        margin-top: 8px !important;
    }

    .mobile-activity-prompt {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 7px !important;
        font-size: 0.80rem !important;
        font-weight: 600 !important;
        letter-spacing: 0.06em !important;
        text-transform: uppercase !important;
        color: var(--primary-dark) !important;
        margin-bottom: 2px !important;
    }

    .mobile-activity-prompt i {
        font-size: 0.88rem !important;
        color: var(--primary-color) !important;
        animation: gentleTap 2s infinite ease-in-out;
    }

    @keyframes gentleTap {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-3px); }
    }

    .mobile-activity-tags {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .mobile-activity-tag {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 8px 18px !important;
        border-radius: 22px !important;
        font-size: 0.84rem !important;
        font-weight: 600 !important;
        color: #1a221f !important;
        background: rgba(197, 168, 128, 0.14) !important;
        border: 1.5px solid rgba(197, 168, 128, 0.38) !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        box-shadow: 0 2px 6px rgba(15, 20, 18, 0.04) !important;
        transition: all 0.2s ease !important;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-activity-tag i {
        display: none !important;
    }

    .mobile-activity-tag:active {
        background: rgba(197, 168, 128, 0.28) !important;
        border-color: var(--primary-dark) !important;
        transform: scale(0.96);
    }

    .mobile-activity-cta-btn {
        display: none !important;
    }

    /* ==========================================================================
       Visualizzazione Opzioni e Altezza Naturale Singole Cards Configurazione
       Garantisce che ogni card si sviluppi verticalmente senza alcuna costrizione,
       senza altezze massime restrittive e con bottoni e note perfettamente visibili.
       ========================================================================== */
    .config-cards-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 2.25rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .config-card {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        overflow: visible !important;
        border-radius: 16px !important;
        box-shadow: 0 10px 30px rgba(15, 20, 18, 0.08) !important;
    }

    .config-card-image {
        border-radius: 16px 16px 0 0 !important;
        overflow: hidden !important;
    }

    .config-card-body {
        padding: 22px 18px !important;
        height: auto !important;
        min-height: auto !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .config-card-body h3 {
        font-size: 1.375rem !important; /* +10% rispetto a 1.25rem per facilitare la lettura */
        margin-bottom: 8px !important;
    }

    .config-card-body p {
        font-size: 0.99rem !important; /* +10% rispetto a 0.90rem per facilitare la lettura */
        line-height: 1.6 !important;
        margin-bottom: 14px !important;
    }

    .config-card-badge {
        font-size: 0.79rem !important; /* +10% rispetto a 0.72rem */
        padding: 5px 12px !important;
    }

    .config-tags {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        margin-bottom: 14px !important;
        margin-top: 0 !important;
    }

    .config-tags span {
        font-size: 0.825rem !important; /* +10% rispetto a 0.75rem */
        padding: 5px 11px !important;
    }

    .card-config-controls {
        --controls-gap: 12px !important;
        margin-top: 14px !important;
        padding-top: 16px !important;
        gap: var(--controls-gap) !important;
        border-top: 1px solid rgba(197, 168, 128, 0.25) !important;
        overflow: visible !important;
    }

    .config-control-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: wrap !important;
        gap: 8px 10px !important;
        min-height: 2.25rem !important;
        height: auto !important;
        overflow: visible !important;
    }

    .control-label {
        font-size: 0.78rem !important;
        font-weight: 600 !important;
        letter-spacing: 0.05em !important;
        text-transform: uppercase !important;
        margin-bottom: 0 !important;
        color: var(--text-dark) !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }

    .control-label i {
        color: var(--primary-color) !important;
        font-size: 0.88rem !important;
    }

    /* Righe opzionali e dinamiche: spazio naturale per contenere tutte le informazioni */
    .config-control-row.time-slot-row:not(.is-hidden),
    .config-control-row.sup-note-row:not(.is-hidden),
    .config-control-row.collapsible-row:not(.is-hidden),
    .config-control-row.has-two-by-two:not(.is-hidden),
    .config-control-row.sup-note-control-row.has-two-by-two:not(.is-hidden),
    .config-control-row.has-three-options:not(.is-hidden) {
        max-height: 400px !important;
        min-height: auto !important;
        height: auto !important;
        overflow: visible !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
        margin-top: 0 !important;
    }

    .config-control-row.time-slot-row.is-hidden,
    .config-control-row.sup-note-row.is-hidden,
    .config-control-row.collapsible-row.is-hidden {
        max-height: 0 !important;
        min-height: 0 !important;
        height: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
        visibility: hidden !important;
        margin-top: calc(-1 * var(--controls-gap, 12px)) !important;
    }

    /* Switch iOS e Badge compatti allineati a destra, identici alla versione desktop */
    .ios-segmented-switch:not(.note-toggle-switch) {
        width: auto !important;
        max-width: 100% !important;
        height: 2.25rem !important;
        display: inline-flex !important;
        align-items: stretch !important;
        box-sizing: border-box !important;
        margin-left: auto !important;
    }

    .ios-segmented-switch:not(.note-toggle-switch) .switch-option {
        flex: 0 0 auto !important;
        min-width: 0 !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 0 0.85rem !important;
        font-size: 0.76rem !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        line-height: 1.2 !important;
        height: 100% !important;
        display: inline-flex !important;
        align-items: center !important;
    }

    .ios-segmented-switch.three-options:not(.note-toggle-switch) .switch-option {
        padding: 0 0.55rem !important;
        font-size: 0.72rem !important;
    }

    .fixed-duration-badge {
        width: auto !important;
        height: 2.25rem !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 1rem !important;
        font-size: 0.78rem !important;
        font-weight: 600 !important;
        box-sizing: border-box !important;
        margin-left: auto !important;
    }

    /* ==========================================================================
       Consistency Bottoni Note su Smartphone Verticale:
       - 2 bottoni: sempre sulla stessa riga, dimensionati per stare all'interno della card
       - 3 bottoni: due sulla prima riga, il terzo sotto e centrato rispetto ai primi due,
                    con la stessa dimensione dei due sopra
       - 4 bottoni: disposti a 2 a 2 (due sopra e due sotto, perfettamente allineati)
       ========================================================================== */

    /* Il gruppo note delle card Mezza G / 2 Mezze G deve essere nascosto quando duration = half (Mezza G).
       Usa :has() per non dipendere dalla serializzazione di style="display:none"
       che varia tra browser mobile (es. Safari non aggiunge lo spazio dopo il colon). */
    #configura-spiagge:has(.ios-segmented-switch[data-switch-type="duration"][data-value="half"]) .spiagge-two-half-notes-group,
    #configura-trekking-mare:has(.ios-segmented-switch[data-switch-type="duration"][data-value="half"]) .trekking-two-half-notes-group,
    #configura-hiking-colli:has(.ios-segmented-switch[data-switch-type="duration"][data-value="half"]) .hiking-two-half-notes-group,
    #configura-giardini-botanici:has(.ios-segmented-switch[data-switch-type="duration"][data-value="half"]) .giardini-two-half-notes-group,
    #configura-bici:has(.ios-segmented-switch[data-switch-type="duration"][data-value="half"]) .bici-two-half-notes-group,
    #configura-dolceacqua:has(.ios-segmented-switch[data-switch-type="duration"][data-value="half"]) .dolceacqua-two-half-notes-group,
    #configura-ceriana:has(.ios-segmented-switch[data-switch-type="duration"][data-value="half"]) .ceriana-two-half-notes-group,
    #configura-borghi-riviera:has(.ios-segmented-switch[data-switch-type="duration"][data-value="half"]) .borghi-riviera-two-half-notes-group {
        display: none !important;
    }

    /* Mostra il badge singolo (Colazione/Aperitivo) quando duration = half */
    #configura-spiagge:has(.ios-segmented-switch[data-switch-type="duration"][data-value="half"]) #spiagge-note-badge,
    #configura-trekking-mare:has(.ios-segmented-switch[data-switch-type="duration"][data-value="half"]) #trekking-note-badge,
    #configura-hiking-colli:has(.ios-segmented-switch[data-switch-type="duration"][data-value="half"]) #hiking-note-badge,
    #configura-giardini-botanici:has(.ios-segmented-switch[data-switch-type="duration"][data-value="half"]) #giardini-note-badge,
    #configura-bici:has(.ios-segmented-switch[data-switch-type="duration"][data-value="half"]) #bici-note-badge,
    #configura-dolceacqua:has(.ios-segmented-switch[data-switch-type="duration"][data-value="half"]) #dolceacqua-note-badge,
    #configura-ceriana:has(.ios-segmented-switch[data-switch-type="duration"][data-value="half"]) #ceriana-note-badge,
    #configura-borghi-riviera:has(.ios-segmented-switch[data-switch-type="duration"][data-value="half"]) #borghi-riviera-note-badge {
        display: inline-flex !important;
    }

    .two-half-pills-group:not([style*="display: none"]):not([style*="display:none"]) {
        display: flex !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-top: 4px !important;
        gap: 6px !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    .config-control-row:has(.two-half-pills-group) {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
        width: 100% !important;
    }

    .config-control-row:has(.two-half-pills-group) .control-label {
        margin-bottom: 2px !important;
        align-self: flex-start !important;
    }

    /* Caso 1 bottone singolo (es. Mezza Giornata in card a badge dinamico): full-width e centrato */
    .two-half-pills-group:not(.options-2):not(.options-3):not(.three-options):not(.options-4):not(.two-by-two) {
        justify-content: center !important;
        width: 100% !important;
    }

    .two-half-pills-group:not(.options-2):not(.options-3):not(.three-options):not(.options-4):not(.two-by-two) > .ios-segmented-switch.note-toggle-switch {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        justify-content: center !important;
    }

    /* Caso 2 elementi: SEMPRE sulla stessa riga dentro la card */
    .two-half-pills-group.options-2,
    .config-control-row.has-options-2 .two-half-pills-group,
    .two-half-pills-group.triora-notes-group {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
        width: 100% !important;
        justify-items: stretch !important;
    }

    .two-half-pills-group.options-2 > .ios-segmented-switch.note-toggle-switch,
    .config-control-row.has-options-2 .two-half-pills-group > .ios-segmented-switch.note-toggle-switch,
    .two-half-pills-group.triora-notes-group > .ios-segmented-switch.note-toggle-switch {
        width: 100% !important;
        min-width: 0 !important;
        flex: 1 1 0 !important;
        margin-left: 0 !important;
    }

    .two-half-pills-group.options-2 .switch-option,
    .config-control-row.has-options-2 .two-half-pills-group .switch-option,
    .two-half-pills-group.triora-notes-group .switch-option {
        padding: 0 0.35rem !important;
        font-size: clamp(0.66rem, 2.5vw, 0.74rem) !important;
        gap: 0.25rem !important;
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .two-half-pills-group.options-2 .note-text,
    .config-control-row.has-options-2 .two-half-pills-group .note-text,
    .two-half-pills-group.triora-notes-group .note-text {
        font-size: inherit !important;
        gap: 0.25rem !important;
        padding: 0 !important;
        justify-content: center !important;
        text-align: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Caso 3 elementi: due sulla stessa riga e il terzo sotto centrato e della stessa identica dimensione dei due sopra */
    .two-half-pills-group.options-3,
    .two-half-pills-group.three-options,
    .config-control-row.has-options-3 .two-half-pills-group,
    .config-control-row.has-three-options .two-half-pills-group,
    .two-half-pills-group.isole-notes-group {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
        width: 100% !important;
        justify-items: stretch !important;
    }

    .two-half-pills-group.options-3 > .ios-segmented-switch.note-toggle-switch,
    .two-half-pills-group.three-options > .ios-segmented-switch.note-toggle-switch,
    .config-control-row.has-options-3 .two-half-pills-group > .ios-segmented-switch.note-toggle-switch,
    .config-control-row.has-three-options .two-half-pills-group > .ios-segmented-switch.note-toggle-switch,
    .two-half-pills-group.isole-notes-group > .ios-segmented-switch.note-toggle-switch {
        width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
    }

    /* Il 3° elemento visibile si posiziona al centro della seconda riga con la stessa larghezza di una colonna */
    .two-half-pills-group.options-3 > .ios-segmented-switch.note-toggle-switch.note-visible-index-3,
    .two-half-pills-group.three-options > .ios-segmented-switch.note-toggle-switch.note-visible-index-3,
    .config-control-row.has-options-3 .two-half-pills-group > .ios-segmented-switch.note-toggle-switch.note-visible-index-3,
    .config-control-row.has-three-options .two-half-pills-group > .ios-segmented-switch.note-toggle-switch.note-visible-index-3 {
        grid-column: 1 / span 2 !important;
        justify-self: center !important;
        width: calc(50% - 3px) !important;
    }

    .two-half-pills-group.options-3 .switch-option,
    .two-half-pills-group.three-options .switch-option,
    .two-half-pills-group.isole-notes-group .switch-option {
        padding: 0 0.35rem !important;
        font-size: clamp(0.65rem, 2.4vw, 0.73rem) !important;
        gap: 0.25rem !important;
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .two-half-pills-group.options-3 .note-text,
    .two-half-pills-group.three-options .note-text,
    .two-half-pills-group.isole-notes-group .note-text {
        font-size: inherit !important;
        gap: 0.25rem !important;
        padding: 0 !important;
        justify-content: center !important;
        text-align: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Caso 4 elementi: due a due (due sulla prima riga, due sulla seconda riga) */
    .two-half-pills-group.options-4,
    .two-half-pills-group.two-by-two,
    .config-control-row.has-options-4 .two-half-pills-group,
    .config-control-row.has-two-by-two .two-half-pills-group {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
        width: 100% !important;
        justify-items: stretch !important;
    }

    .two-half-pills-group.options-4 > .ios-segmented-switch.note-toggle-switch,
    .two-half-pills-group.two-by-two > .ios-segmented-switch.note-toggle-switch,
    .config-control-row.has-options-4 .two-half-pills-group > .ios-segmented-switch.note-toggle-switch,
    .config-control-row.has-two-by-two .two-half-pills-group > .ios-segmented-switch.note-toggle-switch {
        width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
    }

    .two-half-pills-group.options-4 .switch-option,
    .two-half-pills-group.two-by-two .switch-option {
        padding: 0 0.35rem !important;
        font-size: clamp(0.65rem, 2.4vw, 0.73rem) !important;
        gap: 0.25rem !important;
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .two-half-pills-group.options-4 .note-text,
    .two-half-pills-group.two-by-two .note-text {
        font-size: inherit !important;
        gap: 0.25rem !important;
        padding: 0 !important;
        justify-content: center !important;
        text-align: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Icone e stili comuni a tutti i bottoni note */
    .two-half-pills-group[style*="display: none"],
    .two-half-pills-group.is-hidden,
    .two-half-pills-group .ios-segmented-switch[style*="display: none"],
    .two-half-pills-group .ios-segmented-switch.is-hidden,
    .interactive-note-toggle[style*="display: none"],
    .interactive-note-toggle.is-hidden {
        display: none !important;
    }

    .two-half-pills-group .ios-segmented-switch.note-toggle-switch:not([style*="display: none"]),
    .ios-segmented-switch.note-toggle-switch:not([style*="display: none"]) {
        height: 2.25rem !important;
        min-height: 2.25rem !important;
        display: inline-flex !important;
        box-sizing: border-box !important;
    }

    .two-half-pills-group .ios-segmented-switch.note-toggle-switch .switch-option,
    .ios-segmented-switch.note-toggle-switch .switch-option {
        font-weight: 600 !important;
        white-space: nowrap !important;
        height: 100% !important;
        display: inline-flex !important;
        align-items: center !important;
        box-sizing: border-box !important;
    }

    .interactive-note-toggle:not([style*="display: none"]) {
        width: fit-content !important;
        max-width: 100% !important;
        margin-left: auto !important;
        padding: 0.1875rem !important;
        box-sizing: border-box !important;
        height: 2.25rem !important;
        min-height: 2.25rem !important;
        display: inline-flex !important;
        align-items: stretch !important;
    }

    .interactive-note-toggle .note-text {
        font-size: 0.76rem !important;
        padding: 0 0.95rem !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.45rem !important;
        line-height: 1.2 !important;
        height: 100% !important;
    }

    .interactive-note-toggle .note-text i,
    .two-half-pills-group .note-toggle-switch .note-text i,
    .two-half-pills-group .note-toggle-switch .switch-option i {
        margin-right: 0.35rem !important;
        font-size: 0.80rem !important;
        flex-shrink: 0 !important;
    }

    /* Elevazione z-index delle righe e card attive al tocco/hover per stare sopra le altre card ma sotto header/planner bar */
    .config-card:hover,
    .config-card:focus-within,
    .config-card:has(.switch-tooltip.is-active),
    .config-card:has(.switch-option:hover),
    .config-card:has(.has-tooltip:hover) {
        z-index: 25 !important;
    }

    .config-control-row:hover,
    .config-control-row:focus-within,
    .config-control-row:has(.switch-tooltip.is-active),
    .config-control-row:has(.switch-option:hover),
    .config-control-row:has(.has-tooltip:hover),
    .config-control-row:has(.interactive-note-toggle:hover),
    .config-control-row:has(.fixed-duration-badge:hover) {
        z-index: 30 !important;
    }

    .switch-option:hover,
    .switch-option:focus-within,
    .switch-option:has(.switch-tooltip.is-active),
    .has-tooltip:hover,
    .has-tooltip:has(.switch-tooltip.is-active),
    .interactive-note-toggle:hover,
    .interactive-note-toggle:has(.switch-tooltip.is-active),
    .fixed-duration-badge:hover,
    .fixed-duration-badge:has(.switch-tooltip.is-active) {
        z-index: 35 !important;
    }

    /* Posizionamento e contenimento tooltip per smartphone verticale:
       Centrato direttamente sopra il bottone/slider tappato.
       --tooltip-shift viene impostata via JS solo se il tooltip eccede i bordi dello schermo. */
    .switch-tooltip,
    .switch-tooltip.tooltip-multiline,
    .has-tooltip .switch-tooltip,
    .ios-segmented-switch .switch-option .switch-tooltip,
    .ios-segmented-switch .switch-option[data-opt="full"] .switch-tooltip,
    .ios-segmented-switch .switch-option:last-child .switch-tooltip {
        position: absolute !important;
        bottom: calc(100% + 8px) !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(calc(-50% + var(--tooltip-shift, 0px))) translateY(4px) !important;
        max-width: min(290px, calc(100vw - 36px)) !important;
        width: max-content !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
        text-align: center !important;
        line-height: 1.45 !important;
        padding: 9px 13px !important;
        font-size: 0.74rem !important;
        z-index: 999999 !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.12) !important;
    }

    /* Freccina: centrata al 50% del tooltip (quindi perfettamente al centro del bottone).
       Se il tooltip viene shiftato per non uscire dallo schermo, la freccia compensa con -var(--tooltip-shift)
       restando sempre esattamente puntata al centro del bottone. */
    .switch-tooltip::after,
    .has-tooltip .switch-tooltip::after,
    .ios-segmented-switch .switch-option .switch-tooltip::after,
    .ios-segmented-switch .switch-option[data-opt="full"] .switch-tooltip::after,
    .ios-segmented-switch .switch-option:last-child .switch-tooltip::after {
        left: calc(50% - var(--tooltip-shift, 0px)) !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }

    /* Su mobile verticale, il tooltip è visibile ESCLUSIVAMENTE quando ha la classe .is-active.
       La regola :not(.is-active) garantisce che, non appena .is-active viene rimossa (dopo 5s o al tocco),
       il tooltip scompaia all'istante, sovrascrivendo l'hover "appiccicoso" globale di iOS/Android. */
    .switch-tooltip:not(.is-active) {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transition: none !important;
    }

    .switch-tooltip.is-active {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateX(calc(-50% + var(--tooltip-shift, 0px))) translateY(0) !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    /* Riga partecipanti con disposizione pulita ed equilibrata (mai a capo, spazio ottimizzato) */
    .config-control-row.people-count-row {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        padding-top: 4px !important;
        width: 100% !important;
    }

    .config-control-row.people-count-row .control-label {
        display: inline-flex !important;
        align-items: center !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        gap: 4px !important;
        white-space: nowrap !important;
        font-size: 0.76rem !important;
    }

    /* Badge sconto comitiva compatto su mobile */
    .config-control-row.people-count-row .group-stepper-hint {
        font-size: 0.63rem !important;
        padding: 2px 5px !important;
        margin-left: 3px !important;
        flex-shrink: 1 !important;
        white-space: nowrap !important;
    }

    .config-control-row.people-count-row .ios-stepper {
        margin-left: auto !important;
        flex-shrink: 0 !important;
        gap: 6px !important;
        height: 2.35rem !important;
    }

    .config-control-row.people-count-row .ios-stepper .stepper-btn {
        width: 1.95rem !important;
        height: 1.95rem !important;
        font-size: 0.82rem !important;
    }

    .config-control-row.people-count-row .ios-stepper .stepper-value {
        min-width: 20px !important;
        font-size: 0.95rem !important;
    }

    /* ==========================================================================
       Banner Saldi di Fine Stagione: Singola Riga con Scorrimento in Loop
       Ordine: Saldi di fine stagione -> -20€ a persona... -> Validi fino al 31/09
       Spaziature rigorosamente equidistanti tra scritte e pallini (20px)
       ========================================================================== */
    .season-sales-header-banner {
        padding: 7px 0 !important;
        overflow: hidden !important;
        white-space: nowrap !important;
    }

    .season-sales-marquee-track {
        display: flex !important;
        width: -moz-max-content !important;
        width: max-content !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 0 !important;
        animation: seasonSalesMarquee 18s linear infinite !important;
        will-change: transform !important;
    }

    .season-sales-header-banner:hover .season-sales-marquee-track,
    .season-sales-header-banner:active .season-sales-marquee-track {
        animation-play-state: paused !important;
    }

    .season-sales-header-inner.season-sales-marquee-clone,
    .season-sales-header-banner .season-sales-marquee-clone,
    .season-sales-marquee-clone {
        display: inline-flex !important;
    }

    .season-sales-header-banner .season-sales-loop-divider,
    .season-sales-divider.season-sales-loop-divider,
    .season-sales-loop-divider {
        display: inline-flex !important;
    }

    .season-sales-header-inner {
        display: inline-flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        white-space: nowrap !important;
        padding: 0 20px 0 0 !important;
        margin: 0 !important;
        gap: 20px !important;
        font-size: 0.78rem !important;
        flex-shrink: 0 !important;
    }

    .season-sales-header-banner .season-sales-tag {
        font-size: 0.74rem !important;
        white-space: nowrap !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .season-sales-header-banner .season-sales-text {
        white-space: nowrap !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .season-sales-header-banner .season-sales-validity {
        white-space: nowrap !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .season-sales-header-banner .season-sales-divider {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.82rem !important;
        color: rgba(197, 168, 128, 0.7) !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
    }

    /* ==========================================================================
       CARDS CONFIGURATORE — Layout controlli su smartphone verticale (tutte le 12 cards)
       • Ogni slider va a capo sotto la propria etichetta (flex column)
       • Switch full-width con opzioni di uguale larghezza
       • Altezza aumentata a 2.75rem su tutti gli slider, badge e bottoni note
       • Dimensione testo 0.79rem e icone 0.83rem uniformi
       • Bottoni note singoli full-width e centrati
       • Bottoni note multipli (2, 3, 4) conformi ai layout a 2 colonne / centrati
       ========================================================================== */

    /* Tutte le righe di controllo tranne Persone: colonna (label sopra, switch sotto) */
    .config-card .config-control-row:not(.people-count-row) {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 6px !important;
        min-height: auto !important;
    }

    /* Label allineata a sinistra in cima */
    .config-card .config-control-row:not(.people-count-row) .control-label {
        align-self: flex-start !important;
        margin-bottom: 0 !important;
    }

    /* Switch navigazione: full-width, opzioni equal-length, più alti */
    .config-card .ios-segmented-switch:not(.note-toggle-switch) {
        width: 100% !important;
        height: 2.75rem !important;
        display: flex !important;
        margin-left: 0 !important;
        box-sizing: border-box !important;
    }

    .config-card .ios-segmented-switch:not(.note-toggle-switch) .switch-option {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        padding: 0 0.5rem !important;
        font-size: 0.79rem !important;
        justify-content: center !important;
        text-align: center !important;
        height: 100% !important;
    }

    /* Badge durata fissa (es. Isole, Whalewatching, Triora): full-width, altezza 2.75rem */
    .config-card .fixed-duration-badge {
        width: 100% !important;
        height: 2.75rem !important;
        margin-left: 0 !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        font-size: 0.79rem !important;
    }

    /* Badge singolo Note per Mezza G (es. Spiagge, Trekking, Hiking, Giardini, Bici, Dolceacqua, Ceriana, Borghi Riviera, Whalewatching): full-width, centrato */
    .config-card #spiagge-note-badge,
    .config-card #trekking-note-badge,
    .config-card #hiking-note-badge,
    .config-card #giardini-note-badge,
    .config-card #bici-note-badge,
    .config-card #dolceacqua-note-badge,
    .config-card #ceriana-note-badge,
    .config-card #borghi-riviera-note-badge,
    .config-card #whalewatching-note-badge,
    .config-card .dynamic-note-badge {
        align-self: stretch !important;
        width: 100% !important;
        height: 2.75rem !important;
        min-height: 2.75rem !important;
        justify-content: center !important;
        margin-left: 0 !important;
        padding: 0.1875rem !important;
        box-sizing: border-box !important;
    }

    /* Nei bottoni singoli a tutta larghezza, l'opzione e il glider bianco coprono l'intero bottone */
    .config-card #spiagge-note-badge .switch-option,
    .config-card #trekking-note-badge .switch-option,
    .config-card #hiking-note-badge .switch-option,
    .config-card #giardini-note-badge .switch-option,
    .config-card #bici-note-badge .switch-option,
    .config-card #dolceacqua-note-badge .switch-option,
    .config-card #ceriana-note-badge .switch-option,
    .config-card #borghi-riviera-note-badge .switch-option,
    .config-card #whalewatching-note-badge .switch-option,
    .config-card .dynamic-note-badge .switch-option,
    .config-card .two-half-pills-group:not(.options-2):not(.options-3):not(.three-options):not(.options-4):not(.two-by-two) .switch-option {
        width: 100% !important;
        flex: 1 1 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }

    /* Quando il bottone singolo è attivo, la capsula/glider bianca si estende su tutta la larghezza interna */
    .config-card #spiagge-note-badge:not(.is-inactive) .switch-glider,
    .config-card #trekking-note-badge:not(.is-inactive) .switch-glider,
    .config-card #hiking-note-badge:not(.is-inactive) .switch-glider,
    .config-card #giardini-note-badge:not(.is-inactive) .switch-glider,
    .config-card #bici-note-badge:not(.is-inactive) .switch-glider,
    .config-card #dolceacqua-note-badge:not(.is-inactive) .switch-glider,
    .config-card #ceriana-note-badge:not(.is-inactive) .switch-glider,
    .config-card #borghi-riviera-note-badge:not(.is-inactive) .switch-glider,
    .config-card #whalewatching-note-badge:not(.is-inactive) .switch-glider,
    .config-card .dynamic-note-badge:not(.is-inactive) .switch-glider,
    .config-card .two-half-pills-group:not(.options-2):not(.options-3):not(.three-options):not(.options-4):not(.two-by-two) .ios-segmented-switch:not(.is-inactive) .switch-glider {
        left: 0.1875rem !important;
        top: 0.1875rem !important;
        width: calc(100% - 0.375rem) !important;
        height: calc(100% - 0.375rem) !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Bottoni note (gruppi dinamici 2/3/4): stessa altezza e stesso font degli switch */
    .config-card .two-half-pills-group .ios-segmented-switch.note-toggle-switch:not([style*="display: none"]):not([style*="display:none"]),
    .config-card .ios-segmented-switch.note-toggle-switch:not([style*="display: none"]):not([style*="display:none"]) {
        height: 2.75rem !important;
        min-height: 2.75rem !important;
    }

    /* Caso 3 bottoni note: 2 sopra affiancati, 3° sotto centrato con la stessa dimensione di quelli sopra */
    .config-card .two-half-pills-group.options-3,
    .config-card .two-half-pills-group.three-options,
    .config-card .config-control-row.has-options-3 .two-half-pills-group,
    .config-card .config-control-row.has-three-options .two-half-pills-group,
    .config-card .spiagge-two-half-notes-group.options-3,
    .config-card .spiagge-two-half-notes-group.three-options,
    .config-card .sup-notes-group.options-3,
    .config-card .sup-notes-group.three-options {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
        width: 100% !important;
        justify-items: stretch !important;
    }

    .config-card .two-half-pills-group.options-3 > .ios-segmented-switch.note-toggle-switch,
    .config-card .two-half-pills-group.three-options > .ios-segmented-switch.note-toggle-switch,
    .config-card .spiagge-two-half-notes-group.options-3 > .ios-segmented-switch.note-toggle-switch,
    .config-card .spiagge-two-half-notes-group.three-options > .ios-segmented-switch.note-toggle-switch,
    .config-card .sup-notes-group.options-3 > .ios-segmented-switch.note-toggle-switch,
    .config-card .sup-notes-group.three-options > .ios-segmented-switch.note-toggle-switch {
        width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
    }

    /* Il 3° bottone visibile si posiziona al centro della seconda riga con la larghezza esatta di una colonna */
    .config-card .two-half-pills-group.options-3 > .ios-segmented-switch.note-toggle-switch.note-visible-index-3,
    .config-card .two-half-pills-group.three-options > .ios-segmented-switch.note-toggle-switch.note-visible-index-3,
    .config-card .spiagge-two-half-notes-group.options-3 > .ios-segmented-switch.note-toggle-switch.note-visible-index-3,
    .config-card .spiagge-two-half-notes-group.three-options > .ios-segmented-switch.note-toggle-switch.note-visible-index-3,
    .config-card .sup-notes-group.options-3 > .ios-segmented-switch.note-toggle-switch.note-visible-index-3,
    .config-card .sup-notes-group.three-options > .ios-segmented-switch.note-toggle-switch.note-visible-index-3,
    #configura-spiagge .spiagge-two-half-notes-group.options-3 #spiagge-note-a1-btn,
    #configura-spiagge .spiagge-two-half-notes-group.three-options #spiagge-note-a1-btn {
        grid-column: 1 / span 2 !important;
        justify-self: center !important;
        width: calc(50% - 3px) !important;
    }



    .config-card .two-half-pills-group .ios-segmented-switch.note-toggle-switch .switch-option,
    .config-card .ios-segmented-switch.note-toggle-switch .switch-option {
        font-size: 0.79rem !important;
        height: 100% !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.35rem !important;
    }

    /* Badge singoli Note: font uniforme */
    .config-card .interactive-note-toggle .note-text,
    .config-card #spiagge-note-badge .note-text,
    .config-card #whalewatching-note-badge .note-text {
        font-size: 0.79rem !important;
        gap: 0.35rem !important;
    }

    /* Icone uniformi (0.83rem) in tutti i bottoni note delle card */
    .config-card .interactive-note-toggle .note-text i,
    .config-card .two-half-pills-group .note-toggle-switch .note-text i,
    .config-card .two-half-pills-group .note-toggle-switch .switch-option i,
    .config-card #spiagge-note-badge .note-text i,
    .config-card #whalewatching-note-badge .note-text i {
        font-size: 0.83rem !important;
        margin-right: 0 !important;
        flex-shrink: 0 !important;
    }

    /* ==========================================================================
       MODAL ITINERARIO SU SMARTPHONE VERTICALE
       Rende l'itinerario visibile, armonioso e contenuto perfettamente nello schermo
       ========================================================================== */
    .itinerary-modal-overlay {
        padding: 8px !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
    }

    .itinerary-modal {
        max-width: 100% !important;
        width: 100% !important;
        max-height: 92vh !important;
        border-radius: 1.25rem !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .modal-header {
        padding: 12px 14px !important;
        flex-shrink: 0 !important;
        gap: 8px !important;
    }

    .modal-header h3 {
        font-size: 1.05rem !important;
        line-height: 1.25 !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .modal-header h3 i {
        font-size: 1.1rem !important;
        flex-shrink: 0 !important;
    }

    .modal-close-btn {
        width: 2rem !important;
        height: 2rem !important;
        min-width: 2rem !important;
        font-size: 1rem !important;
        flex-shrink: 0 !important;
    }

    .modal-body {
        padding: 12px 12px 20px 12px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    .modal-footer {
        padding: 10px 14px !important;
        flex-shrink: 0 !important;
    }

    .modal-footer .planner-btn {
        width: 100% !important;
        justify-content: center !important;
        font-size: 0.85rem !important;
        padding: 10px 16px !important;
    }

    /* Planning Section Header */
    .itinerary-planning-section-header {
        margin: 0 0 12px 0 !important;
    }

    .itinerary-planning-section-header h4 {
        font-size: 1.05rem !important;
    }

    .itinerary-planning-section-header .planning-subtitle {
        font-size: 0.72rem !important;
        line-height: 1.35 !important;
    }

    /* Timeline Day Cards */
    .day-timeline-card {
        padding: 12px 10px !important;
        margin-bottom: 12px !important;
        border-radius: 14px !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    .day-timeline-header {
        margin-bottom: 10px !important;
        padding-bottom: 8px !important;
        gap: 8px !important;
    }

    .day-title {
        font-size: 0.95rem !important;
    }

    .day-type-badge {
        font-size: 0.7rem !important;
        padding: 3px 8px !important;
    }

    .day-activity-item {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 8px !important;
        padding: 10px 6px !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    .activity-reorder-ctrls {
        gap: 2px !important;
        margin-top: 2px !important;
        flex-shrink: 0 !important;
    }

    .itinerary-move-btn {
        width: 1.35rem !important;
        height: 1.25rem !important;
        font-size: 0.7rem !important;
    }

    .activity-drag-handle {
        width: 1.35rem !important;
        height: 1.15rem !important;
        font-size: 0.85rem !important;
    }

    /* Struttura colonna interna per rispettare l'ordine richiesto */
    .activity-info {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
    }

    /* 1. Il selettore/tag Mattina o Pomeriggio è la prima cosa che c'è sotto la riga del giorno */
    .day-activity-item > .activity-slot-tag,
    .day-activity-item > .itinerary-slot-toggle {
        display: inline-flex !important;
        align-self: flex-start !important;
        flex-shrink: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 2px !important;
        order: -1 !important; /* Mostrato in cima dentro flex se necessario */
    }

    /* Rendiamo .day-activity-item un layout flessibile contenitore */
    .day-activity-item {
        display: grid !important;
        grid-template-columns: auto 1fr !important;
        grid-template-areas: 
            "ctrls slot"
            "ctrls info" !important;
        align-items: start !important;
        gap: 4px 8px !important;
    }

    .activity-reorder-ctrls {
        grid-area: ctrls !important;
        margin-top: 3px !important;
    }

    .day-activity-item > .activity-slot-tag,
    .day-activity-item > .itinerary-slot-toggle {
        grid-area: slot !important;
    }

    .activity-info {
        grid-area: info !important;
    }

    .day-activity-item > .activity-slot-tag {
        font-size: 0.72rem !important;
        padding: 3px 8px !important;
        border-radius: 8px !important;
        width: fit-content !important;
    }

    .day-activity-item > .itinerary-slot-toggle {
        padding: 2px !important;
        gap: 3px !important;
        border-radius: 16px !important;
        width: fit-content !important;
    }

    .day-activity-item > .itinerary-slot-toggle .slot-opt {
        padding: 3px 8px !important;
        font-size: 0.68rem !important;
        gap: 4px !important;
    }

    .day-activity-item > .itinerary-slot-toggle .slot-opt span {
        display: inline !important;
    }

    /* 2. Titolo dell'attività con a destra il prezzo */
    .activity-info-header {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        width: 100% !important;
        margin-bottom: 0 !important;
    }

    .activity-info-header h5 {
        font-size: 0.92rem !important;
        line-height: 1.25 !important;
        margin: 0 !important;
        color: var(--text-dark) !important;
        font-weight: 700 !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        word-break: break-word !important;
    }

    .itinerary-act-price-badge {
        margin-left: auto !important;
        align-self: center !important;
        padding: 2px 7px !important;
        flex-shrink: 0 !important;
        gap: 5px !important;
    }

    .itinerary-act-price-badge .price-strike-gray {
        font-size: 0.78rem !important;
    }

    .itinerary-act-price-badge .price-active-bronze {
        font-size: 0.98rem !important;
    }

    /* 3. Sotto le note */
    .itinerary-activity-details {
        font-size: 0.78rem !important;
        line-height: 1.4 !important;
        margin: 0 !important;
        color: #4a5568 !important;
        width: 100% !important;
    }

    /* 4. Sotto il dettaglio degli sconti applicati */

    /* Breakdown Sconti nella Timeline */
    .act-discounts-breakdown {
        margin-top: 6px !important;
        padding: 6px 8px !important;
        box-sizing: border-box !important;
        width: 100% !important;
        gap: 4px !important;
    }

    .act-discounts-header {
        flex-direction: row !important;
        justify-content: space-between !important;
        gap: 4px !important;
    }

    .act-breakdown-title {
        font-size: 0.68rem !important;
    }

    .act-savings-note {
        font-size: 0.68rem !important;
        padding: 2px 5px !important;
    }

    .act-discounts-reasons {
        gap: 4px !important;
    }

    .act-reason-item {
        font-size: 0.68rem !important;
        padding: 2px 6px !important;
        line-height: 1.3 !important;
    }

    /* Sezione Preventivo & Scheda Prezzo Totale */
    .itinerary-pricing-summary-wrapper {
        margin-top: 18px !important;
        margin-bottom: 6px !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    .pricing-main-card {
        padding: 14px 12px !important;
        border-radius: 14px !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    .pricing-header-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        padding-bottom: 12px !important;
    }

    .pricing-kicker {
        font-size: 0.72rem !important;
    }

    .pricing-numbers {
        gap: 8px !important;
    }

    .price-strike-gray {
        font-size: 1.15rem !important;
    }

    .price-active-bronze {
        font-size: 1.65rem !important;
    }

    .pricing-savings-pill {
        font-size: 0.74rem !important;
        padding: 4px 10px !important;
        white-space: normal !important;
        line-height: 1.3 !important;
    }

    .pricing-active-badges {
        gap: 6px !important;
        margin-top: 4px !important;
    }

    .pricing-badge {
        font-size: 0.7rem !important;
        padding: 4px 8px !important;
    }

    /* Guida Sconti & Barra di Progresso */
    .discounts-guide-box {
        margin-top: 14px !important;
        padding: 12px 10px !important;
        border-radius: 12px !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    .guide-intro {
        font-size: 0.8rem !important;
        margin-bottom: 8px !important;
    }

    .multi-progress-container {
        padding: 0.65rem 0 3.25rem 0 !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    .multi-progress-bar-area {
        margin: 0 32px 0 12px !important;
        height: 6px !important;
    }

    .multi-progress-track {
        height: 6px !important;
    }

    .progress-tick .tick-pin {
        width: 0.95rem !important;
        height: 0.95rem !important;
    }

    .progress-tick .tick-label {
        top: 1.15rem !important;
    }

    .progress-tick .tick-title {
        font-size: 0.65rem !important;
    }

    .progress-tick .tick-badge {
        font-size: 0.62rem !important;
        padding: 1px 5px !important;
    }

    .guide-msg {
        font-size: 0.72rem !important;
        white-space: normal !important;
        text-align: center !important;
        margin-top: 0.35rem !important;
        line-height: 1.3 !important;
    }

    .discounts-footer-note {
        font-size: 0.74rem !important;
        gap: 6px !important;
        margin-top: 10px !important;
        padding-top: 8px !important;
    }

    /* Floating Itinerary Planner Bar - Smartphone Verticale */
    .planner-bar-wrapper {
        bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
        width: calc(100% - 20px) !important;
        max-width: 480px !important;
    }

    .planner-bar {
        padding: 8px 10px !important;
        gap: 0 !important;
        border-radius: 16px !important;
    }

    .planner-stats {
        gap: 0 !important;
        min-width: 0 !important;
        flex: 1 !important;
        display: flex !important;
        align-items: center !important;
    }

    .planner-count-badge {
        min-width: 48px !important;
        width: auto !important;
        height: 42px !important;
        border-radius: 10px !important;
        background: linear-gradient(135deg, #c5a880, #9f7d4d) !important;
        color: #ffffff !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        box-shadow: 0 3px 10px rgba(197, 168, 128, 0.35) !important;
        margin: 0 !important;
        padding: 0 5px !important;
        box-sizing: border-box !important;
    }

    .planner-count-badge .number {
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        line-height: 1 !important;
    }

    .planner-count-badge .label {
        display: block !important;
        font-size: 0.48rem !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.01em !important;
        line-height: 1 !important;
        margin-top: 2px !important;
        color: rgba(255, 255, 255, 0.95) !important;
        white-space: nowrap !important;
    }

    .planner-summary-text {
        min-width: 0 !important;
        margin: 0 auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }

    .planner-mobile-caption {
        display: none !important;
    }

    .planner-summary-text h4 {
        font-size: 1rem !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        margin: 0 !important;
        padding: 0 !important;
        color: #ffffff !important;
        line-height: 1 !important;
        display: flex !important;
        align-items: center !important;
    }

    .planner-summary-text .planner-prefix,
    .planner-summary-text .planner-suffix {
        display: none !important;
    }

    .planner-summary-text .highlight-days {
        color: var(--primary-color, #c5a880) !important;
        font-weight: 700 !important;
        font-size: 1rem !important;
        line-height: 1 !important;
    }

    .planner-summary-text p {
        display: none !important;
    }

    .planner-actions {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        flex-shrink: 0 !important;
    }

    .planner-btn {
        padding: 8px 10px !important;
        font-size: 0.76rem !important;
        font-weight: 600 !important;
        gap: 5px !important;
        border-radius: 9px !important;
        white-space: nowrap !important;
    }

    .planner-btn.btn-reset {
        padding: 8px 9px !important;
        background: rgba(255, 255, 255, 0.12) !important;
        color: rgba(255, 255, 255, 0.92) !important;
        border: 1px solid rgba(255, 255, 255, 0.18) !important;
    }

    .planner-btn.btn-reset .btn-text {
        display: inline !important;
    }

    .planner-btn.btn-view {
        padding: 9px 14px !important;
        font-size: 0.82rem !important;
        font-weight: 700 !important;
        background: linear-gradient(135deg, #c5a880, #aa8653) !important;
        color: #ffffff !important;
        box-shadow: 0 4px 14px rgba(179, 143, 86, 0.45) !important;
        border-radius: 9px !important;
    }

    .planner-btn.btn-view i {
        font-size: 0.88rem !important;
    }
}

@keyframes seasonSalesMarquee {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

@media (max-width: 480px),
       (max-height: 480px) and (max-width: 767px) and (orientation: landscape) {
    .main-header {
        padding: 14px 18px;
    }
    .main-header.scrolled {
        padding: 10px 18px;
    }
    .logo a {
        font-size: 1.725rem !important; /* +50% rispetto a 1.15rem */
        line-height: 1.15 !important;
        white-space: nowrap !important;
    }
}

/* ==========================================================================
   4K & Ultra-Wide Enhancements (>= 1441px)
   ========================================================================== */
@media (min-width: 1440.02px) {
    :root {
        --ctrl-height: 2.375rem;
        --switch-font-size: 0.80rem;
        --switch-pad-x: 1rem;
        --switch-icon-size: 0.82rem;
        --stepper-btn-size: 2.375rem;
    }
    .overlay-title {
        font-size: 5.5rem;
    }
    .carousel-btn {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.25rem;
    }
    .carousel-btn.prev {
        left: 2rem;
    }
    .carousel-btn.next {
        right: 2rem;
    }
    .btn {
        padding: 0.875rem 2.25rem;
    }
    .btn-sm {
        padding: 0.625rem 1.625rem;
    }
    .planner-btn {
        padding: 0.75rem 1.5rem;
    }
    .planner-btn.btn-view {
        padding: 0.75rem 1.75rem;
    }
    .fixed-duration-badge {
        height: 2.375rem;
        padding: 0 1rem;
        font-size: 0.80rem;
    }
    .fixed-duration-badge i {
        font-size: 0.82rem;
    }
    .ios-segmented-switch.note-toggle-switch .switch-option {
        padding: 0 1rem;
        font-size: 0.80rem;
    }
    .ios-segmented-switch.note-toggle-switch .switch-option i {
        font-size: 0.82rem;
    }
    .day-activity-item {
        gap: 0.875rem;
        padding: 0.75rem 0.625rem;
    }
    .activity-info-header {
        gap: 0.875rem;
    }
    .act-discounts-breakdown {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }
    .multi-progress-container {
        padding-bottom: 3.75rem;
    }
    .guide-msg {
        font-size: clamp(0.62rem, 2.7vw, 0.76rem);
        margin-top: 0.35rem;
        white-space: nowrap;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .config-card-body {
        padding: 22px 18px;
    }

    .card-config-controls {
        --controls-gap: 12px;
        margin-top: 16px;
        padding-top: 16px;
        gap: var(--controls-gap);
    }

    .config-control-row {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .control-label {
        font-size: 0.8rem;
    }

    .ios-segmented-switch {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .planner-bar-wrapper {
        bottom: calc(14px + env(safe-area-inset-bottom, 0px));
        width: calc(100% - 20px);
        max-width: 480px;
    }

    .planner-bar {
        padding: 8px 10px;
        gap: 0;
        border-radius: 16px;
    }

    .planner-stats {
        gap: 0;
        min-width: 0;
        flex: 1;
        display: flex;
        align-items: center;
    }

    .planner-count-badge {
        min-width: 48px;
        width: auto;
        height: 42px;
        border-radius: 10px;
        background: linear-gradient(135deg, #c5a880, #9f7d4d);
        color: #ffffff;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        box-shadow: 0 3px 10px rgba(197, 168, 128, 0.35);
        margin: 0;
        padding: 0 5px;
        box-sizing: border-box;
    }

    .planner-count-badge .number {
        font-size: 1.1rem;
        font-weight: 700;
        line-height: 1;
    }

    .planner-count-badge .label {
        display: block !important;
        font-size: 0.48rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.01em;
        line-height: 1;
        margin-top: 2px;
        white-space: nowrap;
        color: rgba(255, 255, 255, 0.95);
    }

    .planner-summary-text {
        min-width: 0;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .planner-mobile-caption {
        display: none !important;
    }

    .planner-summary-text h4 {
        font-size: 1rem;
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin: 0;
        padding: 0;
        color: #ffffff;
        line-height: 1;
        display: flex;
        align-items: center;
    }

    .planner-summary-text .planner-prefix,
    .planner-summary-text .planner-suffix {
        display: none !important;
    }

    .planner-summary-text .highlight-days {
        color: var(--primary-color, #c5a880);
        font-weight: 700;
        font-size: 1rem;
        line-height: 1;
    }

    .planner-summary-text p {
        display: none !important;
    }

    .planner-actions {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
    }

    .planner-btn {
        padding: 8px 10px;
        font-size: 0.76rem;
        font-weight: 600;
        gap: 5px;
        border-radius: 9px;
        white-space: nowrap;
    }

    .planner-btn.btn-reset {
        padding: 8px 9px;
        background: rgba(255, 255, 255, 0.12);
        color: rgba(255, 255, 255, 0.92);
        border: 1px solid rgba(255, 255, 255, 0.18);
    }

    .planner-btn.btn-reset .btn-text {
        display: inline !important;
    }

    .planner-btn.btn-view {
        padding: 9px 14px;
        font-size: 0.82rem;
        font-weight: 700;
        background: linear-gradient(135deg, #c5a880, #aa8653);
        color: #ffffff;
        box-shadow: 0 4px 14px rgba(179, 143, 86, 0.45);
        border-radius: 9px;
    }

    .planner-btn.btn-view i {
        font-size: 0.88rem;
    }
}

@media (max-width: 540px) {
    .config-card-body {
        padding: 18px 14px;
    }

    .config-card-body h3 {
        font-size: 1.32rem;
        margin-bottom: 8px;
    }

    .config-card-body p {
        font-size: 0.97rem;
        line-height: 1.58;
        margin-bottom: 14px;
    }

    .config-tags span {
        font-size: 0.78rem;
        padding: 4px 9px;
    }

    .config-control-row {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px 10px;
        min-height: 2.25rem;
        overflow: visible;
    }

    .config-control-row.time-slot-row:not(.is-hidden),
    .config-control-row.sup-note-row:not(.is-hidden),
    .config-control-row.collapsible-row:not(.is-hidden) {
        max-height: 400px;
        overflow: visible;
    }

    .control-label {
        margin-bottom: 0;
        font-size: 0.76rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .ios-segmented-switch:not(.note-toggle-switch) {
        max-width: 100%;
        width: auto;
        height: 2.25rem;
        display: inline-flex;
        box-sizing: border-box;
        margin-left: auto;
    }

    .ios-segmented-switch:not(.note-toggle-switch) .switch-option {
        flex: 0 0 auto;
        min-width: 0;
        justify-content: center;
        text-align: center;
        padding: 0 0.75rem;
        font-size: 0.74rem;
        white-space: nowrap;
        height: 100%;
        display: inline-flex;
        align-items: center;
    }

    .ios-segmented-switch.three-options:not(.note-toggle-switch) .switch-option {
        padding: 0 0.50rem;
        font-size: 0.69rem;
        gap: 3px;
    }





    .multi-progress-bar-area {
        margin: 0 35px 0 14px;
    }

    .progress-tick .tick-title {
        font-size: 0.66rem;
    }

    .progress-tick .tick-badge {
        font-size: 0.62rem;
        padding: 1px 6px;
    }
}

/* ==========================================================================
   Gestione Globale Visibilità Note per Card a Durata Variabile (Mezza G / 2 Mezze G)
   Universale per Desktop, Tablet (Orizzontale e Verticale) e Smartphone:
   - duration = 'half' (Mezza Giornata):
     Mostra SEMPRE e SOLO il badge singolo (#...-note-badge: Colazione italiana o Aperitivo)
     e nasconde CATEGORICAMENTE il gruppo note a pillola (.two-half-notes-group).
   - duration = 'two_half' (2 Mezze Giornate):
     Nasconde CATEGORICAMENTE il badge singolo (#...-note-badge)
     e mostra il gruppo note a pillola (.two-half-notes-group).
   ========================================================================== */
#configura-spiagge:has(.ios-segmented-switch[data-switch-type="duration"][data-value="half"]) .spiagge-two-half-notes-group,
#configura-trekking-mare:has(.ios-segmented-switch[data-switch-type="duration"][data-value="half"]) .trekking-two-half-notes-group,
#configura-hiking-colli:has(.ios-segmented-switch[data-switch-type="duration"][data-value="half"]) .hiking-two-half-notes-group,
#configura-giardini-botanici:has(.ios-segmented-switch[data-switch-type="duration"][data-value="half"]) .giardini-two-half-notes-group,
#configura-bici:has(.ios-segmented-switch[data-switch-type="duration"][data-value="half"]) .bici-two-half-notes-group,
#configura-dolceacqua:has(.ios-segmented-switch[data-switch-type="duration"][data-value="half"]) .dolceacqua-two-half-notes-group,
#configura-ceriana:has(.ios-segmented-switch[data-switch-type="duration"][data-value="half"]) .ceriana-two-half-notes-group,
#configura-borghi-riviera:has(.ios-segmented-switch[data-switch-type="duration"][data-value="half"]) .borghi-riviera-two-half-notes-group {
    display: none !important;
}

#configura-spiagge:has(.ios-segmented-switch[data-switch-type="duration"][data-value="half"]) #spiagge-note-badge,
#configura-trekking-mare:has(.ios-segmented-switch[data-switch-type="duration"][data-value="half"]) #trekking-note-badge,
#configura-hiking-colli:has(.ios-segmented-switch[data-switch-type="duration"][data-value="half"]) #hiking-note-badge,
#configura-giardini-botanici:has(.ios-segmented-switch[data-switch-type="duration"][data-value="half"]) #giardini-note-badge,
#configura-bici:has(.ios-segmented-switch[data-switch-type="duration"][data-value="half"]) #bici-note-badge,
#configura-dolceacqua:has(.ios-segmented-switch[data-switch-type="duration"][data-value="half"]) #dolceacqua-note-badge,
#configura-ceriana:has(.ios-segmented-switch[data-switch-type="duration"][data-value="half"]) #ceriana-note-badge,
#configura-borghi-riviera:has(.ios-segmented-switch[data-switch-type="duration"][data-value="half"]) #borghi-riviera-note-badge {
    display: inline-flex !important;
}

#configura-spiagge:has(.ios-segmented-switch[data-switch-type="duration"][data-value="two_half"]) #spiagge-note-badge,
#configura-trekking-mare:has(.ios-segmented-switch[data-switch-type="duration"][data-value="two_half"]) #trekking-note-badge,
#configura-hiking-colli:has(.ios-segmented-switch[data-switch-type="duration"][data-value="two_half"]) #hiking-note-badge,
#configura-giardini-botanici:has(.ios-segmented-switch[data-switch-type="duration"][data-value="two_half"]) #giardini-note-badge,
#configura-bici:has(.ios-segmented-switch[data-switch-type="duration"][data-value="two_half"]) #bici-note-badge,
#configura-dolceacqua:has(.ios-segmented-switch[data-switch-type="duration"][data-value="two_half"]) #dolceacqua-note-badge,
#configura-ceriana:has(.ios-segmented-switch[data-switch-type="duration"][data-value="two_half"]) #ceriana-note-badge,
#configura-borghi-riviera:has(.ios-segmented-switch[data-switch-type="duration"][data-value="two_half"]) #borghi-riviera-note-badge {
    display: none !important;
}

/* ==========================================================================
   Chi Siamo / Presentation Section
   ========================================================================== */
.chi-siamo-section {
    padding: 5rem 0;
    position: relative;
    z-index: 1;
    background-color: var(--bg-light);
    border-top: 1px solid rgba(197, 168, 128, 0.15);
}

.chi-siamo-section .experience-image .image-wrapper {
    aspect-ratio: 2 / 3 !important;
    border-radius: 16px;
    width: 100%;
    height: auto !important;
    max-height: none !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1);
}

.chi-siamo-section .experience-image .exp-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.chi-siamo-section .presentation-card {
    cursor: default;
}

.chi-siamo-section .presentation-card:hover {
    transform: none;
}

.chi-siamo-section .presentation-card .card-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.chi-siamo-section .presentation-card p.lead {
    font-size: clamp(0.98rem, 1.12vw, 1.15rem);
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 0;
}

/* Contatti in Bronzo sotto la presentazione */
.chi-siamo-contacts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 20px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(197, 168, 128, 0.28);
}

.chi-siamo-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--primary-color) !important;
    font-size: 0.98rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.02em;
    padding: 8px 16px;
    border-radius: 12px;
    background: rgba(197, 168, 128, 0.09);
    border: 1px solid rgba(197, 168, 128, 0.32);
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.chi-siamo-contact-item i {
    font-size: 1.15rem;
    color: var(--primary-color) !important;
    transition: color 0.25s ease;
}

.chi-siamo-contact-item:hover {
    background: var(--primary-color);
    color: #ffffff !important;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(197, 168, 128, 0.32);
}

.chi-siamo-contact-item:hover i {
    color: #ffffff !important;
}

@media (max-width: 767px) {
    .chi-siamo-section {
        padding: 2rem 0 3.5rem 0;
    }

    .chi-siamo-section .experience-image .image-wrapper {
        aspect-ratio: 2 / 3 !important;
        border-radius: 18px;
        height: auto !important;
        max-height: none !important;
    }

    .chi-siamo-section .presentation-card p.lead {
        font-size: 0.98rem !important;
        line-height: 1.68 !important;
    }

    .chi-siamo-contacts {
        justify-content: center;
        gap: 12px;
        margin-top: 18px;
        padding-top: 16px;
    }

    .chi-siamo-contact-item {
        font-size: 0.90rem;
        padding: 8px 14px;
        width: 100%;
        justify-content: center;
    }
}



/* ==========================================================================
   Sezione Richiesta Prenotazione / Contatto nel Modale dell'Itinerario
   ========================================================================== */
.itinerary-contact-section {
    margin-top: 24px;
    background: #ffffff;
    border: 1px solid rgba(197, 168, 128, 0.35);
    border-radius: 20px;
    padding: 22px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.itinerary-contact-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(197, 168, 128, 0.2);
    padding-bottom: 12px;
}

.itinerary-contact-header h4 {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
}

.itinerary-contact-header h4 i {
    color: var(--primary-color);
}

.itinerary-contact-header .itinerary-contact-subtitle {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.itinerary-contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

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

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

.contact-form-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.contact-form-label i {
    color: var(--primary-color);
    font-size: 0.85rem;
}

.contact-form-input,
.contact-form-textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.88rem;
    font-family: var(--font-base);
    color: var(--text-dark);
    background: #faf8f5;
    border: 1px solid rgba(197, 168, 128, 0.35);
    border-radius: 10px;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.contact-form-input:focus,
.contact-form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.2);
}

.contact-form-input::placeholder,
.contact-form-textarea::placeholder {
    color: #9aa0a6;
    font-size: 0.84rem;
}

.contact-form-textarea {
    resize: vertical;
    min-height: 60px;
}

.itinerary-contact-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 6px;
}

.contact-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    box-sizing: border-box;
    font-family: var(--font-base);
}

.contact-action-btn.whatsapp-btn {
    background: #25D366;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.28);
}

.contact-action-btn.whatsapp-btn:hover {
    background: #20ba59;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.38);
}

.contact-action-btn.email-btn {
    background: linear-gradient(135deg, #1b263b, #0d1b2a);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 23, 32, 0.25);
}

.contact-action-btn.email-btn:hover {
    background: linear-gradient(135deg, #24334f, #152238);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 23, 32, 0.35);
}

.contact-action-btn i {
    font-size: 1.15rem;
}

.itinerary-contact-footnote {
    font-size: 0.76rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 10px;
    margin-bottom: 0;
}

.modal-footer {
    padding: 18px 30px;
    background: #ffffff;
    border-top: 1px solid rgba(197, 168, 128, 0.2);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

@media (max-width: 600px) {
    .itinerary-contact-section {
        padding: 16px 14px !important;
        border-radius: 14px !important;
    }

    .contact-form-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .itinerary-contact-actions {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .contact-action-btn {
        width: 100% !important;
        padding: 11px 14px !important;
        font-size: 0.88rem !important;
    }
}


/* ==========================================================================
   German SUP Notes Group & Note Buttons Compact Styling
   Prevents overflow when sunrise tour / breakfast / 2-by-2 buttons are active
   ========================================================================== */
html[lang="de"] #configura-sup .sup-notes-group,
html[lang="nl"] #configura-sup .sup-notes-group {
    max-width: 100%;
    overflow: visible;
}

html[lang="de"] #configura-sup .sup-notes-group .ios-segmented-switch.note-toggle-switch,
html[lang="nl"] #configura-sup .sup-notes-group .ios-segmented-switch.note-toggle-switch {
    min-width: 0;
    max-width: 100%;
    flex-shrink: 1;
}

html[lang="de"] #configura-sup .sup-notes-group .ios-segmented-switch.note-toggle-switch .switch-option,
html[lang="de"] #configura-sup .sup-notes-group .ios-segmented-switch.note-toggle-switch .note-text,
html[lang="nl"] #configura-sup .sup-notes-group .ios-segmented-switch.note-toggle-switch .switch-option,
html[lang="nl"] #configura-sup .sup-notes-group .ios-segmented-switch.note-toggle-switch .note-text {
    font-size: 0.70rem !important;
    padding: 0 0.45rem !important;
    gap: 0.22rem !important;
    white-space: nowrap !important;
}

html[lang="de"] #configura-sup .sup-notes-group .note-toggle-switch .note-text i,
html[lang="de"] #configura-sup .sup-notes-group .note-toggle-switch .switch-option i,
html[lang="nl"] #configura-sup .sup-notes-group .note-toggle-switch .note-text i,
html[lang="nl"] #configura-sup .sup-notes-group .note-toggle-switch .switch-option i {
    font-size: 0.76rem !important;
    margin-right: 0.15rem !important;
}

html[lang="de"] #configura-sup .sup-notes-group.two-by-two,
html[lang="nl"] #configura-sup .sup-notes-group.two-by-two {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.28rem 0.35rem !important;
    width: 100% !important;
}

html[lang="de"] #configura-sup .sup-notes-group.two-by-two .switch-option,
html[lang="de"] #configura-sup .sup-notes-group.two-by-two .note-text,
html[lang="nl"] #configura-sup .sup-notes-group.two-by-two .switch-option,
html[lang="nl"] #configura-sup .sup-notes-group.two-by-two .note-text {
    font-size: 0.65rem !important;
    padding: 0 0.25rem !important;
    gap: 0.15rem !important;
}

@media (max-width: 480px) {
    html[lang="de"] #configura-sup .sup-notes-group .ios-segmented-switch.note-toggle-switch .switch-option,
    html[lang="de"] #configura-sup .sup-notes-group .ios-segmented-switch.note-toggle-switch .note-text,
    html[lang="nl"] #configura-sup .sup-notes-group .ios-segmented-switch.note-toggle-switch .switch-option,
    html[lang="nl"] #configura-sup .sup-notes-group .ios-segmented-switch.note-toggle-switch .note-text {
        font-size: 0.65rem !important;
        padding: 0 0.3rem !important;
    }
    
    html[lang="de"] #configura-sup .sup-notes-group.two-by-two .switch-option,
    html[lang="de"] #configura-sup .sup-notes-group.two-by-two .note-text,
    html[lang="nl"] #configura-sup .sup-notes-group.two-by-two .switch-option,
    html[lang="nl"] #configura-sup .sup-notes-group.two-by-two .note-text {
        font-size: 0.60rem !important;
        padding: 0 0.2rem !important;
    }
}
