/* ========================================
   LIONARDO COLLECTION - Main Stylesheet
   ======================================== */

/* CSS Variables */
:root {
    --color-text-menu: #707070;
    --color-text-body: #343434;
    --color-bg-light: #F1F1ED;
    --color-white: #FAFAF8;
    --color-border: #F1F1ED;
    
    /* Legacy aliases for compatibility */
    --color-primary: #343434;
    --color-secondary: #707070;
    --color-light: #F1F1ED;
    --color-text: #343434;
    --color-text-light: #707070;
    
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Open Sans', 'Source Sans Pro', sans-serif;
    
    --container-width: 1140px;
    --header-height: 80px;
    --secondary-nav-height: 50px;
    --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 160px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

a:hover {
    opacity: 0.7;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-text-body);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

p {
    margin-bottom: 1rem;
}

/* Container & Grid */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    padding: 0 15px;
}

/* Grid columns */
.col-1 { flex: 0 0 8.333%; max-width: 8.333%; }
.col-2 { flex: 0 0 16.666%; max-width: 16.666%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-5 { flex: 0 0 41.666%; max-width: 41.666%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.333%; max-width: 58.333%; }
.col-8 { flex: 0 0 66.666%; max-width: 66.666%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333%; max-width: 83.333%; }
.col-11 { flex: 0 0 91.666%; max-width: 91.666%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* ========================================
   HEADER
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--color-bg-light);
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

.logo a { text-decoration: none; }

.logo img {
    height: 50px;
    width: auto;
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

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

.main-nav > ul > li { position: relative; }

.main-nav > ul a {
    color: var(--color-text-menu);
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    padding: 10px 0;
    display: block;
}

.main-nav > ul a:hover { opacity: 0.7; }

.has-dropdown > a::after {
    content: '';
    display: inline-block;
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid var(--color-text-menu);
    margin-left: 6px;
    vertical-align: middle;
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-bg-light);
    min-width: 280px;
    padding: 15px 15px 15px 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    list-style: none;
    display: flex;
    flex-direction: column;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li { padding: 0; }

.dropdown a {
    display: block;
    padding: 8px 25px 8px 25px;
    font-size: 15px;
    text-transform: none;
    letter-spacing: 0;
    color: var(--color-text-body);
    white-space: nowrap;
}

.dropdown a::before {
    content: '›';
    margin-right: 12px;
    color: var(--color-text-menu);
    font-size: 18px;
}

/* Book Button - Prenota */
.btn-prenota {
    display: inline-block;
    padding: 5px 10px;
    background-color: transparent;
    border: 1px solid var(--color-text-menu);
    color: var(--color-text-menu) !important;
    text-decoration: none !important;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition);
}

.btn-prenota:hover {
    background-color: var(--color-text-menu);
    color: var(--color-white) !important;
    opacity: 1;
}

/* Legacy btn-book support */
.btn-book {
    display: inline-block;
    padding: 5px 10px;
    background-color: transparent;
    border: 1px solid var(--color-text-menu);
    color: var(--color-text-menu) !important;
    text-decoration: none !important;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition);
}

.btn-book:hover {
    background-color: var(--color-text-menu);
    color: var(--color-white) !important;
    opacity: 1;
}

/* Language Selector */
.lang-selector {
    font-style: italic;
    font-size: 15px;
    text-transform: uppercase;
    color: var(--color-text-menu);
    text-decoration: none;
    letter-spacing: 1px;
}

.lang-selector:hover { opacity: 0.7; }

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--color-text-body);
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    width: 0;
    transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-media img,
.hero-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-media::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to left, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--color-white);
    max-width: 600px;
    padding-bottom: 120px;
    margin-left: auto;
    text-align: right;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--color-white);
    line-height: 1.1;
    margin-bottom: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--color-white);
    margin-top: 8px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle-large {
    font-size: 3rem;
    margin-top: 16px;
}

.hero-logo {
    display: block;
    height: auto;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.3));
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.hero-img-blurred {
    filter: blur(6px);
    transform: scale(1.02);
}

.img-blurred {
    filter: blur(5px);
    transform: scale(1.03);
}

/* Hero for internal pages */
.hero-small {
    height: 497px;
    min-height: 497px;
}

.hero-small .hero-content {
    padding-bottom: 80px;
    margin-left: 0;
    text-align: left;
}

.hero-small .hero-media::after {
    background: linear-gradient(to right, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.15) 50%, transparent 100%);
}

/* Hero con testo a sinistra */
.hero-left .hero-content {
    margin-left: 0;
    text-align: left;
}

.hero-left .hero-media::after {
    background: linear-gradient(to right, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.15) 50%, transparent 100%);
}

/* ========================================
   INTRO SECTION
   ======================================== */
.intro-section {
    padding: 80px 0 0;
    text-align: center;
}

.intro-section h2 {
    margin-bottom: 30px;
}

.intro-section p {
    max-width: 800px;
    margin: 0 auto;
    color: var(--color-text-light);
}

/* ========================================
   STRUCTURES SECTION (Home)
   ======================================== */
.structures-section {
    padding: 60px 0 0;
}

.structure-item {
    display: flex;
    align-items: center;
    margin-bottom: 80px;
}

.structure-item:nth-child(even) {
    flex-direction: row-reverse;
}

.structure-item:nth-child(even) .structure-content {
    text-align: left;
    padding-left: 0;
    padding-right: 60px;
}

.structure-image {
    flex: 0 0 70%;
    max-width: 70%;
    overflow: hidden;
    position: relative;
}

.structure-image img {
    width: 100%;
    height: 525px;
    object-fit: cover;
}

.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-style: italic;
    color: #fff;
    text-shadow: 0 2px 15px rgba(0,0,0,0.4);
    z-index: 2;
    pointer-events: none;
}

.structure-content {
    flex: 0 0 30%;
    max-width: 30%;
    padding-left: 60px;
}

.structure-content h3 {
    margin-bottom: 20px;
}

.structure-content p {
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-secondary);
    font-size: 0.9rem;
}

.link-arrow:hover {
    gap: 12px;
}

/* ========================================
   STRUCTURE PAGE - Villa Section
   ======================================== */
.villa-section {
    padding: 40px 0 0;
    overflow-x: clip;
}

.villa-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

/* Fullbleed layout: text left, photo flush right */
.villa-layout {
    display: flex;
    align-items: center;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.villa-text-col {
    flex: 0 0 40%;
    padding-left: calc((100vw - var(--container-width)) / 2);
    padding-right: 60px;
}

.villa-text-col p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.villa-photos {
    flex: 0 0 60%;
    max-width: 60%;
}

.villa-img-horizontal {
    width: 100%;
}

.villa-img-horizontal img {
    width: 100%;
    height: 525px;
    object-fit: cover;
    display: block;
}

.gallery-link-bottom {
    display: none;
}

.villa-img-vertical {
    display: none;
}

.villa-img-vertical img {
    width: 300px;
    height: 330px;
    object-fit: cover;
}

/* Legacy support */
.villa-header {
    margin-bottom: 40px;
}

.villa-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.villa-text {
    flex: 0 0 35%;
}

.villa-text p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.8;
}

.villa-images {
    flex: 1;
    display: flex;
    gap: 20px;
}

.villa-img-main {
    flex: 1;
}

.villa-img-secondary {
    flex: 0 0 35%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.villa-img-main img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.villa-img-secondary img {
    width: 100%;
    height: 165px;
    object-fit: cover;
}

.read-more-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--color-secondary);
    font-size: 0.9rem;
    cursor: pointer;
}

.gallery-link {
    display: block;
    text-align: right;
    margin-top: 15px;
    color: var(--color-secondary);
    font-size: 0.9rem;
}

/* ========================================
   SECONDARY NAV (Structure Page)
   ======================================== */
.secondary-nav {
    background-color: var(--color-white);
    border-bottom: 1px solid #dfdfd8;
    padding: 12px 0;
    transition: var(--transition);
}

.secondary-nav.is-sticky {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.secondary-nav ul {
    display: flex;
    list-style: none;
    gap: 50px;
    justify-content: flex-start;
}

.secondary-nav a {
    color: var(--color-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
}

.secondary-nav a:hover {
    opacity: 0.7;
}

.secondary-nav a.active {
    font-weight: 600;
    color: var(--color-primary);
}

/* Spacer for sticky nav */
.secondary-nav-spacer {
    height: 0;
    transition: height 0.3s ease;
}

.secondary-nav-spacer.active {
    height: 56px;
}

/* ========================================
   BIO SECTION (Carousel)
   ======================================== */
.bio-section {
    background-color: var(--color-light);
    padding: 80px 0;
    margin-top: 40px;
    margin-bottom: 80px;
}

.bio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.bio-title-area {
    flex: 0 0 300px;
}

.bio-title-area h3 {
    font-size: 2rem;
    margin-bottom: 0;
}

.bio-description {
    flex: 1;
    max-width: 600px;
    text-align: left;
}

.bio-description p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Carousel Slides */
.bio-carousel-wrapper {
    position: relative;
    overflow: hidden;
}

.bio-carousel {
    display: flex;
    transition: transform 0.5s ease;
}

.bio-slide {
    flex: 0 0 100%;
    min-width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 40px;
    overflow: hidden;
}

.bio-slide-text {
    flex: 0 0 250px;
}

.bio-slide-text h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.bio-slide-text p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

.bio-slide-items {
    flex: 1;
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

/* Product Cards (Slide 1) */
.bio-card {
    text-align: center;
    flex: 1 1 280px;
}

.bio-card-image {
    height: 320px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bio-card-image img {
    max-height: 100%;
    width: auto;
}

.bio-card h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-family: var(--font-body);
    font-weight: 400;
}

.btn-outline {
    display: inline-block;
    padding: 10px 25px;
    border: 1px solid var(--color-secondary);
    color: var(--color-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    text-decoration: none;
    background: transparent;
    cursor: pointer;
}

.btn-outline:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

/* Variety Icons (Slides 2 & 3) */
.variety-item {
    text-align: center;
    flex: 0 0 170px;
    min-width: 170px;
}

.variety-item img {
    width: 150px;
    height: 150px;
    max-width: none;
    object-fit: contain;
    margin: 0 auto 12px;
    display: block;
}

.variety-item span {
    font-size: 0.9rem;
    color: var(--color-text-light);
    display: block;
}

/* Slide 2: Vigneti - 3+2 layout centrato */
.bio-slide[data-slide="1"] .bio-slide-items {
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px 50px;
    max-width: 610px;
}

/* Slide 3: Oliveta - distribuita su tutta larghezza */
.bio-slide[data-slide="2"] .bio-slide-items {
    justify-content: space-between;
}

/* Carousel dots */

/* Bio Slide Intro: 2 columns 50/50 */
.bio-slide-intro {
    display: flex;
    align-items: center;
    gap: 40px;
}

.bio-intro-text {
    flex: 0 0 calc(30% - 20px);
}

.bio-intro-text p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.bio-next-slide {
    display: inline-flex;
    margin-top: 10px;
    cursor: pointer;
}

.bio-intro-photo {
    flex: 0 0 calc(70% - 20px);
    overflow: hidden;
    background: var(--color-light);
}

.bio-intro-photo img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    border: none;
    outline: none;
}

/* Bio Slide Products Fullwidth */
.bio-slide-products-full {
    padding: 20px 0;
}

.bio-items-fullwidth {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    width: 100%;
}

.bio-items-fullwidth .bio-card {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.bio-items-fullwidth .bio-card-image {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    height: auto;
}

.bio-items-fullwidth .bio-card-image img {
    height: 323px;
    width: auto;
}

.bio-items-fullwidth .bio-card h4 {
    text-align: left;
    margin-bottom: 12px;
    font-size: 0.75rem;
}

.bio-card-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex: 0 0 130px;
}

.bio-items-fullwidth .bio-card .btn-outline {
    font-size: 0.7rem;
    padding: 8px 18px;
    white-space: nowrap;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #cfcfcf;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background-color: var(--color-secondary);
}

/* ========================================
   GALLERY SECTION
   ======================================== */
.gallery-section {
    display: none;
}

.btn-gallery {
    display: block;
    margin-top: 20px;
    padding: 10px 24px;
    border: 1px solid var(--color-text-body);
    color: var(--color-text-body);
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    transition: var(--transition);
    width: fit-content;
}

.btn-gallery:hover {
    background-color: var(--color-text-body);
    color: var(--color-white);
}

.modal.floorplan-mode .modal-counter {
    display: none;
}

.modal-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px;
    margin-bottom: 30px;
}

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

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Hidden gallery items */
.gallery-hidden {
    display: none;
}

.gallery-hidden.show {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px;
    margin-bottom: 30px;
}

.gallery-load-more {
    text-align: center;
    margin-top: 30px;
}

.gallery-load-more a {
    color: var(--color-text-light);
    text-decoration: underline;
}

/* ========================================
   MAP SECTION
   ======================================== */
.map-section {
    padding: 28px 0 80px;
}

.map-section.home-map {
    padding-top: 40px;
}

.map-section h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.map-address {
    color: var(--color-text-light);
    margin-bottom: 30px;
}

.map-container {
    height: 400px;
    border: 10px solid var(--color-border);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

#google-map {
    width: 100%;
    height: 100%;
}

/* Fix z-index controlli mappa sotto menu sticky */
.map-container {
    position: relative;
    z-index: 1;
}

.leaflet-top,
.leaflet-bottom {
    z-index: 400 !important;
}

.leaflet-control {
    z-index: 400 !important;
}

/* ========================================
   HOW TO REACH SECTION
   ======================================== */
.directions-section {
    padding: 0 0 100px 0;
}

.directions-section .container {
    background-color: #F1F1ED;
    padding: 40px;
}

.directions-section h3 {
    margin-bottom: 40px;
}

/* Directions inside map-section */
.directions-content {
    background-color: #F1F1ED;
    padding: 40px;
    margin-top: 0;
}

.directions-content h3 {
    margin-bottom: 40px;
}

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

.direction-item h4 {
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 15px;
}

.direction-item p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* ========================================
   EXPERIENCES PREVIEW SECTION
   ======================================== */
.experiences-preview {
    padding: 60px 0 60px;
    margin-bottom: 80px;
    background-color: var(--color-light);
}

.experiences-preview h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 15px;
    color: var(--color-text);
}

.experiences-subtitle {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 25px;
    line-height: 1.6;
}

.experiences-carousel {
    position: relative;
    overflow: hidden;
}

.experiences-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.experience-slide {
    min-width: 100%;
    width: 100%;
    display: flex;
    gap: 60px;
    align-items: center;
    flex-shrink: 0;
    box-sizing: border-box;
}

.experience-image {
    flex: 0 0 467px;
    width: 467px;
}

.experience-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 3;
    object-fit: cover;
}

.experience-content {
    flex: 1;
    min-width: 0;
}

.modal-structure-logo {
    display: block;
    height: auto;
    margin-bottom: 30px;
}

.experience-content .link-arrow {
    display: flex;
    margin-top: 8px;
}

.experience-content h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--color-text);
}

.experience-content p {
    color: var(--color-text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Carousel arrows */
.exp-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-secondary);
    font-size: 2.5rem;
    cursor: pointer;
    padding: 15px;
    user-select: none;
    z-index: 10;
    transition: var(--transition);
}

.exp-nav-arrow:hover {
    color: var(--color-text);
}

.exp-nav-arrow.prev {
    left: -50px;
}

.exp-nav-arrow.next {
    right: -50px;
}

.experiences-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.experiences-nav .carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #cfcfcf;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.experiences-nav .carousel-dot.active {
    background-color: var(--color-secondary);
}

/* Experience Modal */
.experience-modal-content {
    max-width: 700px;
    position: relative;
}

.experience-modal-content .modal-close {
    color: var(--color-text);
    top: 20px;
    right: 20px;
}

.experience-modal-content h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 20px;
}

.experience-modal-content p {
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

/* ========================================
   TERRITORY PREVIEW SECTION
   ======================================== */
.territory-preview {
    padding: 100px 0;
}

.territory-preview-inner {
    display: flex;
    gap: 60px;
    align-items: center;
}

.territory-image {
    flex: 0 0 50%;
}

.territory-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.territory-content {
    flex: 1;
}

.territory-content h3 {
    margin-bottom: 20px;
}

.territory-content p {
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.territory-content a {
    color: var(--color-text-light);
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-section {
    padding: 80px 0;
    background-color: var(--color-light);
}

.contact-section h3 {
    margin-bottom: 10px;
}

.contact-intro {
    color: var(--color-text-light);
    margin-bottom: 40px;
}

.contact-form {
    max-width: 800px;
}

.form-row {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-border);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
}

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

.form-privacy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.form-privacy input {
    margin-top: 4px;
}

.form-privacy label {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.btn-submit {
    background-color: var(--color-secondary);
    color: var(--color-white);
    border: none;
    padding: 12px 40px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background-color: var(--color-primary);
}

/* ========================================
   FLOORPLANS SECTION (Palazzo & Mulino)
   ======================================== */
.floorplans-section {
    padding: 80px 0;
    background-color: var(--color-light);
}

.floorplans-section h3 {
    margin-bottom: 50px;
}

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

.floorplans-grid.two-items {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin: 0 auto;
}

.floorplan-item {
    text-align: center;
    cursor: pointer;
}

.floorplan-item img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.floorplan-item:hover img {
    transform: scale(1.02);
}

.floorplan-item h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.floorplan-item p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* Apartments Section (Palazzo Brunelleschi) */
/* ========================================
   ROOMS SECTION (Casa Lionardo, Tenuta Marliana)
   ======================================== */
.rooms-section {
    padding: 40px 0;
    margin-top: 20px;
    overflow-x: clip;
}

.rooms-layout {
    display: flex;
    align-items: center;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.rooms-photo {
    flex: 0 0 60%;
    max-width: 60%;
}

.rooms-photo img {
    width: 100%;
    height: 525px;
    object-fit: cover;
    display: block;
}

.rooms-text {
    flex: 0 0 40%;
    padding-left: 60px;
    padding-right: calc((100vw - var(--container-width)) / 2);
}

.rooms-text h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.rooms-text p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

@media (max-width: 1180px) {
    .villa-text-col {
        padding-left: 40px !important;
    }
    .rooms-text {
        padding-right: 40px !important;
    }
}

@media (max-width: 768px) {
    .villa-layout {
        flex-direction: column;
    }
    .villa-text-col {
        flex: 0 0 100%;
        padding: 0 20px !important;
        margin-bottom: 20px;
    }
    .villa-photos {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .villa-img-horizontal img {
        height: 300px;
    }
    .villa-section {
        padding-bottom: 0 !important;
    }
    .rooms-section {
        padding-top: 5px !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    .rooms-layout {
        flex-direction: column;
    }
    .rooms-photo {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }
    .rooms-photo img {
        height: 300px;
        width: 100%;
    }
    .rooms-text {
        flex: 0 0 100%;
        padding: 30px 20px !important;
    }
}

.apartments-section {
    padding: 80px 0;
    margin-top: 60px;
    background-color: var(--color-light);
}

.section-title-apartments {
    margin-bottom: 60px;
}

.apartments-section .structure-image {
    position: relative;
    cursor: pointer;
}

.apartments-section .structure-image img {
    height: auto;
    max-height: 400px;
    object-fit: contain;
    background-color: transparent;
}

.apartments-section .structure-image::after {
    content: '';
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23343434' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E");
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 1;
    pointer-events: none;
}

.apartments-section .structure-image:hover::after {
    opacity: 1;
}

.floor-label {
    position: absolute;
    bottom: 60px;
    right: 16px;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--color-text-light);
    letter-spacing: 0.03em;
    pointer-events: none;
    z-index: 1;
}

/* ========================================
   STRUCTURES FULLBLEED VARIANT (Homepage B)
   ======================================== */
.structures-fullbleed {
    overflow-x: clip;
}

.structures-fullbleed .structure-item {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 40px;
}

.structures-fullbleed .structure-image {
    flex: 0 0 55%;
    max-width: 55%;
}

.structures-fullbleed .structure-image img {
    height: 525px;
}

/* Odd items: image left (flush left edge), text right */
.structures-fullbleed .structure-content {
    flex: 1;
    max-width: none;
    padding: 40px calc((100vw - var(--container-width)) / 2) 40px 60px;
}

/* Even items: image right (flush right edge), text left */
.structures-fullbleed .structure-item:nth-child(even) .structure-content {
    padding: 40px 60px 40px calc((100vw - var(--container-width)) / 2);
}

@media (max-width: 1180px) {
    .structures-fullbleed .structure-content {
        padding: 40px 40px 40px 40px !important;
    }
    .structures-fullbleed .structure-item:nth-child(even) .structure-content {
        padding: 40px 40px 40px 40px !important;
    }
}

@media (max-width: 768px) {
    .structures-fullbleed .structure-item {
        flex-direction: column;
    }
    .structures-fullbleed .structure-item:nth-child(even) {
        flex-direction: column;
    }
    .structures-fullbleed .structure-image,
    .structures-fullbleed .structure-content {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    .structures-fullbleed .structure-content,
    .structures-fullbleed .structure-item:nth-child(even) .structure-content {
        padding: 30px 20px !important;
    }
    .structures-fullbleed .structure-image img {
        height: 300px !important;
        width: 100% !important;
        object-fit: cover !important;
    }
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background-color: var(--color-text-body);
    color: var(--color-white);
    padding: 50px 0 30px;
}

.footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

.footer a:hover { color: var(--color-white); opacity: 1; }

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer-col.footer-logo-col {
    flex: 0 0 50%;
}

.footer-logo { margin-bottom: 15px; }

.footer-logo img {
    height: 66px;
    width: auto;
}

.footer-col {
    flex: 0 0 25%;
}

.footer-col p {
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

.footer-col strong {
    color: var(--color-white);
    display: block;
    margin-bottom: 5px;
}

.footer-col h4 {
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 2px; }
.footer-col a { font-size: 13px; line-height: 1.2; }

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

.footer-bottom span { color: rgba(255,255,255,0.5); }

/* ========================================
   MODALS
   ======================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: var(--app-height, 100%);
    background-color: rgba(0,0,0,0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
    z-index: 2001;
}

.modal-content {
    max-width: 900px;
    max-height: 90vh;
    overflow: auto;
    background: var(--color-white);
    padding: 60px;
    position: relative;
}

.modal-content.no-bg {
    background: transparent;
    padding: 0;
}

.modal-content img {
    max-width: 100%;
    max-height: 85vh;
}

.modal-gallery-link {
    display: inline-block;
    margin-top: 30px;
}

/* Gallery Modal Navigation */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-white);
    font-size: 3rem;
    cursor: pointer;
    padding: 20px;
    user-select: none;
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

/* Floorplan Modal (white background, black icons) */
.modal.floorplan-mode {
    background-color: rgba(255, 255, 255, 0.95);
}

.modal.floorplan-mode .modal-close {
    color: var(--color-secondary);
}

.modal.floorplan-mode .modal-nav {
    color: var(--color-secondary);
}

.modal.floorplan-mode .modal-content.no-bg img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
}

/* Product Modal */
.product-modal-content {
    display: flex;
    gap: 40px;
    padding: 0 40px;
}

.product-modal-image {
    flex: 0 0 20%;
}

.product-modal-text {
    flex: 1;
}

.product-modal-text h3 {
    margin-bottom: 20px;
}

.product-modal-text p {
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.product-modal-text-content p {
    color: var(--color-text-light);
    margin-bottom: 16px;
    line-height: 1.7;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 12px 25px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-download:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* ========================================
   CONTACT PAGE
   ======================================== */
.contact-page-form {
    max-width: 66.666%;
    margin: 0 auto;
}

.contact-page-section {
    margin-top: 60px;
}

.contact-page-section h3,
.contact-page-section .contact-intro {
    text-align: center;
}

.contact-info-section {
    padding: 60px 0;
    background-color: var(--color-white);
}

.contact-info-grid {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
    gap: 40px;
    text-align: center;
}

.contact-info-item {
    flex: 1 1 0;
}

.contact-info-item h4 {
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-text);
}

.contact-info-item p,
.contact-info-item a {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* ========================================
   TERRITORY & EXPERIENCES PAGES
   ======================================== */
.content-section {
    padding: 80px 0;
}

.content-section h2 {
    margin-bottom: 30px;
}

.content-section > .container > p {
    color: var(--color-text-light);
    max-width: 800px;
}

/* Version A: alternating text beside image */
.content-items {
    margin-top: 60px;
}

.content-item {
    display: flex;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.content-item:nth-child(even) {
    flex-direction: row-reverse;
}

.content-item:last-child {
    margin-bottom: 0;
}

.content-item-image {
    flex: 0 0 55%;
}

.content-item-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.content-item-text {
    flex: 1;
}

.content-item-text h3 {
    margin-bottom: 20px;
}

.content-item-text p {
    color: var(--color-text-light);
    margin-bottom: 15px;
}

.content-item-text .read-more-link {
    color: var(--color-text-light);
    text-decoration: underline;
}

/* Version B: text below image */
.content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

/* Territorio page: uniform spacing */
.territorio-page .intro-section {
    padding-bottom: 40px;
}

.territorio-page .content-section {
    padding: 0 0 40px 0;
}

.territorio-page .content-section:last-of-type {
    padding-bottom: 80px;
}

.territorio-page .content-grid {
    margin-top: 0;
}

.content-card {
    position: relative;
}

.content-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin-bottom: 20px;
}

.content-card h3 {
    margin-bottom: 15px;
}

.content-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.content-card .read-more-link {
    color: var(--color-text-light);
    text-decoration: underline;
}

/* Old overlay style (remove if not needed) */
.content-card-overlay {
    padding: 20px 0;
}

/* Wide card spanning 2 columns (Vinci + Montalbano) */
.content-card-wide {
    grid-column: 1 / -1;
}

.content-card-wide > img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    margin-bottom: 20px;
}

.content-card-wide-texts {
    display: flex;
    gap: 40px;
}

.content-card-wide-col {
    flex: 1;
}

.content-card-wide-col h3 {
    color: var(--color-primary);
    margin-bottom: 10px;
}

.content-card-wide-col p {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.content-card-wide-texts-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 40px;
}

.content-card-overlay h3 {
    color: var(--color-primary);
    margin-bottom: 10px;
}

.content-card-overlay p {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* ========================================
   PRIVACY PAGE
   ======================================== */
.privacy-section {
    padding: 80px 0;
}

.privacy-section h1 {
    margin-bottom: 40px;
}

.privacy-section h2 {
    font-size: 1.5rem;
    margin: 40px 0 20px;
}

.privacy-section p {
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.privacy-section ul {
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--color-text-light);
}

.privacy-section li {
    margin-bottom: 10px;
}

/* ========================================
   UTILITIES
   ======================================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .structure-item {
        flex-direction: column;
    }
    
    .structure-item:nth-child(even) {
        flex-direction: column;
    }
    
    .structure-image,
    .structure-content {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .structure-content,
    .structure-item:nth-child(even) .structure-content {
        padding: 30px 0 0;
        text-align: left;
    }
    
    .villa-layout {
        flex-direction: column;
    }
    
    .villa-text-col {
        flex: 0 0 100%;
        padding: 0 20px !important;
    }
    
    .villa-photos {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .villa-img-vertical {
        display: none;
    }
    
    .villa-img-vertical img {
        display: none;
    }
    
    .villa-content {
        flex-direction: column;
    }
    
    .villa-text {
        flex: 0 0 100%;
    }
    
    .bio-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .bio-slide-intro {
        flex-direction: column;
        gap: 15px;
    }
    
    .bio-intro-text,
    .bio-intro-photo {
        flex: 0 0 100%;
    }
    
    .bio-intro-photo img {
        height: 250px;
    }
    
    .directions-grid {
        grid-template-columns: 1fr;
    }
    
    .territory-preview-inner {
        flex-direction: column;
    }
    
    .territory-image {
        flex: 0 0 100%;
    }
    
    .footer-inner {
        flex-wrap: wrap;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .gallery-hidden.show {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .contact-page-form {
        max-width: 100%;
    }
    
    .container {
        max-width: 540px;
    }
    
    :root {
        --header-height: 70px;
    }
    
    body { line-height: 1.5; overflow-x: clip; }
    html { overflow-x: clip; }
    
    .main-nav {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0; right: 0; bottom: 0;
        background-color: var(--color-bg-light);
        flex-direction: column;
        padding: 30px 20px;
        overflow-y: auto;
        gap: 0;
    }
    
    .main-nav.active { display: flex; }
    
    .main-nav ul, .main-nav > ul { flex-direction: column; gap: 0; width: 100%; }
    .main-nav > ul > li { width: 100%; border-bottom: 1px solid var(--color-border); }
    .main-nav a, .main-nav > ul a { display: block; padding: 15px 0; }
    
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0 0 15px 20px;
        display: none;
    }
    
    .has-dropdown.open .dropdown { display: block; }
    
    .btn-prenota, .btn-book { display: inline-block; text-align: center; margin: 20px 0; padding: 10px 30px !important; align-self: flex-start; }
    .lang-selector { display: block; text-align: left; padding: 15px 0; align-self: flex-start; }
    .menu-toggle { display: flex; }
    
    /* Reduce intro spacing on mobile */
    .intro-section {
        padding: 50px 0 30px;
    }
    
    /* Footer: fix logo + 2x2 columns */
    .footer-inner {
        flex-wrap: wrap;
    }
    
    .footer-logo-col {
        flex: 0 0 100%;
        margin-bottom: 20px;
        text-align: center;
        order: 3;
    }
    
    .footer-logo {
        display: flex;
        justify-content: center;
    }
    
    .footer-logo img {
        height: 60px;
        width: auto;
        object-fit: contain;
    }
    
    .footer-logo-col p {
        text-align: center;
    }
    
    .footer-col {
        flex: 0 0 100%;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .footer-col-dimore {
        order: 1;
    }
    
    .footer-col-info {
        order: 2;
    }
    
    .hero {
        height: 80vh;
        min-height: 500px;
    }
    
    .secondary-nav ul {
        flex-wrap: wrap;
        gap: 20px 50px;
    }
    
    .villa-images {
        flex-direction: column;
    }
    
    .villa-img-secondary {
        flex-direction: row;
    }
    
    .villa-img-secondary img {
        height: 150px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-hidden.show {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .floorplans-grid {
        flex-direction: column;
    }
    
    .floorplan-item:nth-child(even) {
        margin-top: 0;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .content-card-wide-texts {
        flex-direction: column;
        gap: 20px;
    }
    
    .content-card-wide-texts-4 {
        grid-template-columns: 1fr;
    }
    
    .contact-info-grid {
        flex-direction: column !important;
    }
    
    .modal-content {
        margin: 20px;
        padding: 50px;
    }
    
    /* Modale: X cerchio nero con X bianca */
    .modal-close {
        position: fixed;
        top: 15px;
        right: 20px;
        z-index: 2010;
        font-size: 1.6rem;
        color: var(--color-white);
        background: var(--color-text-body);
        width: 36px;
        height: 36px;
        line-height: 34px;
        text-align: center;
        border-radius: 50%;
    }
    
    /* Anche per modali testo: stesso stile */
    #readMoreModal .modal-close,
    #roomsModal .modal-close,
    .modal:not(#galleryModal) .modal-close {
        color: var(--color-white);
        background: var(--color-text-body);
    }
    
    /* Modale testo: contenuto scrollabile */
    #readMoreModal .modal-content,
    #roomsModal .modal-content {
        margin-top: 20px;
        max-height: calc(var(--app-height, 100vh) - 40px);
        overflow-y: auto;
    }
    
    /* Frecce galleria modale: sotto la foto, centrate */
    .modal-nav {
        position: fixed;
        top: auto;
        bottom: 30px;
        transform: none;
        font-size: 2rem;
        padding: 10px 20px;
    }
    
    .modal-prev {
        left: calc(50% - 60px);
    }
    
    .modal-next {
        right: calc(50% - 60px);
    }
    
    /* Nasconde menu secondario su mobile */
    .secondary-nav {
        display: none !important;
    }
    
    .secondary-nav-spacer {
        display: none !important;
    }
    
    /* Spazio tra btn gallery e prima foto */
    .btn-gallery {
        margin-bottom: 50px;
    }
    
    /* Nasconde foto verticale intro su mobile */
    .villa-img-vertical {
        display: none !important;
    }
    
    /* Fix scroll orizzontale: carousel esperienze */
    .experiences-carousel {
        overflow: hidden;
    }
    
    .experience-slide {
        flex-direction: column;
        gap: 20px;
        padding: 0 5px;
    }
    
    .experience-image {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .experience-content {
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
    }
    
    .experiences-preview {
        margin-bottom: 40px;
    }
    
    .experiences-subtitle {
        margin-bottom: 15px;
    }
    
    .experiences-nav {
        margin-top: 20px;
    }
    
    .product-modal-content {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-hidden.show {
        grid-template-columns: 1fr;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }
    
    .intro-section {
        padding: 40px 0 20px;
    }
    
    .bio-card {
        flex: 0 0 260px;
    }
}

/* ========================================
   TENUTA MARLIANA BIO - MOBILE STATIC
   Desktop: carousel visibile, statico nascosto
   Mobile: carousel nascosto, statico visibile
   ======================================== */
.bio-mobile-static {
    display: none;
}

@media (max-width: 992px) {
    .bio-carousel-wrapper,
    .carousel-dots {
        display: none !important;
    }
    
    .bio-mobile-static {
        display: block !important;
    }
    
    .bio-section {
        margin-top: 20px !important;
        margin-bottom: 40px !important;
        padding: 40px 20px !important;
    }
    
    .bio-header {
        margin-bottom: 10px !important;
    }
    
    .bio-title-area {
        flex: none !important;
    }
    
    .bio-mobile-intro {
        margin-bottom: 20px;
    }
    
    .bio-mobile-intro p {
        font-size: 0.95rem;
        color: var(--color-text-light);
        line-height: 1.8;
        margin-bottom: 15px;
    }
    
    .bio-mobile-intro .link-arrow {
        display: inline-block;
        margin-top: 5px;
    }
    
    .bio-mobile-photo {
        margin-bottom: 40px;
    }
    
    .bio-mobile-photo img {
        width: 100%;
        height: 250px;
        object-fit: cover;
        display: block;
    }
    
    .bio-mobile-products {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .bio-mobile-product {
        text-align: center;
        max-width: 280px;
    }
    
    .bio-mobile-product-image {
        margin-bottom: 10px;
    }
    
    .bio-mobile-product-image img {
        height: 280px;
        width: auto;
        display: block;
        margin: 0 auto;
    }
    
    .bio-mobile-product h4 {
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-family: var(--font-body);
        font-weight: 400;
        margin-bottom: 12px;
    }
}

/* Cookiebot: hide logo */
a#CybotCookiebotDialogPoweredbyCybot,
div#CybotCookiebotDialogPoweredByText {
    display: none !important;
}
#CookiebotWidget .CookiebotWidget-body .CookiebotWidget-main-logo {
    display: none !important;
}

/* Form messages */
.form-message {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: var(--font-body);
}
.form-message-success {
    background: #f0f9f0;
    color: #2d6a2d;
    border: 1px solid #c3e6c3;
}
.form-message-error {
    background: #fdf0f0;
    color: #a02020;
    border: 1px solid #f0c3c3;
}

/* Hero positioning per pagina */
.hero-casa-lionardo .hero-media img {
    object-position: left 95%;
}
.hero-palazzo-brunelleschi .hero-media img {
    object-position: left 70%;
}

@media (max-width: 768px) {
    .hero-casa-lionardo .hero-media img {
        object-position: 15% bottom !important;
    }
    .hero-palazzo-brunelleschi .hero-media img {
        object-position: 10% center !important;
    }
    .hero-contatti .hero-media img {
        object-position: left center !important;
    }
}
