/* Color Variables - Tortora Palette */
:root {
    --tortora-light: #f5f2ed;     /* molto chiaro per sfondi */
    --tortora-medium: #e8e0d0;    /* per bordi e divisori */
    --tortora-dark: #d4c4a8;      /* per accenti e hover */
    --tortora-accent: #c9b896;    /* per elementi di rilievo */
    --white: #ffffff;
    --off-white: #fdfdfd;
    --warm-white: #faf9f6;
}

/* General Body Styles */
html {
    overflow-x: hidden; /* Prevent horizontal scrolling at root level */
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, var(--off-white) 0%, var(--tortora-light) 100%);
    overflow-x: hidden; /* Prevent horizontal scrolling */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    max-width: 100vw; /* Ensure body doesn't exceed viewport width */
}

/* Apply border-box sizing to all elements */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Prevent any element from causing horizontal overflow */
* {
    max-width: 100%;
}

/* Reset max-width for elements that need to be larger than their container */
html, body, .hero-section, .swiper-wrapper {
    max-width: none;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Georgia', 'Times New Roman', Times, serif; /* Serif font for headings */
}

h1 {
    font-size: 2.8em;
    color: #fff; /* White text for hero */
    font-weight: bold;
}

h2 {
    font-size: 2em;
    color: #4A4A4A; /* Dark grey for section titles */
    text-align: center;
    margin-top: 40px;
    margin-bottom: 30px;
}

h3 {
    font-size: 1.4em;
    color: #333;
    margin-top: 10px;
    margin-bottom: 5px;
}

p {
    font-size: 1em;
    color: #555;
    margin-bottom: 10px;
}

a {
    text-decoration: none;
    color: #D4A373; /* Accent color for links */
}

/* Header */
.main-header {
    background: linear-gradient(135deg, var(--white) 0%, var(--warm-white) 100%);
    padding: 15px 5%;
    box-shadow: 0 2px 8px rgba(212, 196, 168, 0.15);
    border-bottom: 1px solid var(--tortora-medium);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: padding 0.3s ease; /* Transizione smooth per il padding */
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 60px; /* Altezza minima per evitare compressione eccessiva */
}

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

.header-logo-image {
    display: inline-block;
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    object-fit: contain;
    margin-right: 8px;
    filter: brightness(0); /* Rende il logo nero */
}

.logo-text {
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
}

.main-nav a {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #555;
    margin-left: 25px;
    font-size: 1em;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--tortora-dark); /* Accent color on hover */
}

/* Header contact buttons */
.header-contact-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-whatsapp-btn, .header-email-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--tortora-medium);
    cursor: pointer;
    font-size: 0.85em;
    background: linear-gradient(135deg, var(--white) 0%, var(--warm-white) 100%);
    color: #4A3B31;
}

.header-whatsapp-btn:hover, .header-email-btn:hover {
    background: linear-gradient(135deg, var(--tortora-medium) 0%, var(--tortora-dark) 100%);
    color: #4A3B31;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(212, 196, 168, 0.3);
    border-color: var(--tortora-accent);
}

.header-whatsapp-btn i, .header-email-btn i {
    font-size: 0.9em;
}

/* Language Selector */
.language-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 20px;
}

.lang-btn {
    background: linear-gradient(135deg, var(--white) 0%, var(--warm-white) 100%);
    border: 2px solid var(--tortora-medium);
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 36px;
    position: relative;
    overflow: hidden;
}

.lang-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.lang-btn:hover::before {
    left: 100%;
}

.lang-btn:hover {
    background: linear-gradient(135deg, var(--tortora-medium) 0%, var(--tortora-dark) 100%);
    border-color: var(--tortora-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 196, 168, 0.3);
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--tortora-dark) 0%, var(--tortora-accent) 100%);
    border-color: var(--tortora-accent);
    color: #4A3B31;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(212, 196, 168, 0.2);
}

.lang-btn.active::before {
    display: none;
}

.flag-icon {
    font-size: 16px;
    line-height: 1;
    display: block;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 20px; /* Rounded buttons */
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 0.95em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--tortora-medium) 0%, var(--tortora-dark) 100%);
    color: #4A3B31; /* Darker text for contrast */
    border: 1px solid var(--tortora-accent);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--tortora-dark) 0%, var(--tortora-accent) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(212, 196, 168, 0.3);
}

.header-book {
    padding: 8px 18px;
    font-size: 0.9em;
}

.btn-secondary { /* For hero section button */
    background: linear-gradient(135deg, var(--tortora-medium) 0%, var(--tortora-dark) 100%);
    color: #4A3B31;
    padding: 12px 25px;
    font-size: 1em;
    border: 1px solid var(--tortora-accent);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--tortora-dark) 0%, var(--tortora-accent) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(212, 196, 168, 0.4);
}

/* Hero Section */
.hero-section {
    height: 100vh; /* Full viewport height per effetto più drammatico */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden; /* Nasconde le parti del video che escono dalla sezione */
    z-index: 1; /* Priorità di stacking corretta */
    isolation: isolate; /* Crea un nuovo contesto di stacking */
    /* Estende la sezione hero per essere full-width usando tecnica sicura */
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1; /* Dietro al contenuto hero */
    transform: translateX(-50%) translateY(-50%);
    background-size: cover;
    /* Rimuovo il filtro brightness per vedere il video */
    filter: brightness(0.7); /* Più chiaro del precedente 0.5 */
    transition: opacity 0.3s ease; /* Smooth transition per hide/show */
}

/* Fallback background image per quando il video non carica */
.hero-section {
    background-image: url('../images/hero-background.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    /* Z-index più basso del video per non coprirlo */
    position: relative;
}

/* Il video deve avere z-index più alto del background */
.hero-section video {
    z-index: 1 !important; /* Sopra al background */
}

/* Il contenuto hero deve stare sopra tutto */
.hero-content {
    position: relative;
    z-index: 10 !important; /* Sopra a tutto */
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    /* Centramento e contenimento del contenuto anche con sezione full-width */
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-content h1 {
    font-size: 3.5em; /* Larger font for hero title */
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* Sections General Styling */
section {
    padding: 50px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero section bypassa il max-width per essere full-width */
section.hero-section {
    max-width: none;
    margin: 0;
    padding: 0;
    /* Assicura che non ci sia spazio sotto la hero section */
    margin-bottom: 0;
}

/* Our rooms section deve iniziare esattamente dove finisce l'hero */
section.our-rooms-section {
    margin-top: 0;
    padding-top: 50px;
}

/* Our Rooms Section */
.our-rooms-section h2 {
    text-align: center;
    margin-bottom: 1rem; /* Reduced margin for closer title to swiper */
    font-size: 2.5rem;
    color: #333;
}

.our-rooms-section h2.rooms-title {
    margin-top: 3rem; /* Add space above the second H2 "Our Rooms" */
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.room-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--warm-white) 100%);
    border-radius: 8px;
    overflow: hidden; /* To make image corners rounded */
    box-shadow: 0 4px 12px rgba(212, 196, 168, 0.15);
    border: 1px solid var(--tortora-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease; /* MODIFIED */
}

.room-card:hover {
    transform: translateY(-5px) scale(1.05); /* MODIFIED */
    box-shadow: 0 8px 20px rgba(212, 196, 168, 0.25); /* MODIFIED to be slightly more pronounced */
    border-color: var(--tortora-medium);
    opacity: 1; /* ADDED */
    z-index: 10; /* ADDED */
}

/* ADDED: Dim other cards in the grid when one is hovered */
.rooms-grid:hover > .room-card:not(:hover) {
    opacity: 0.6;
}

.room-card img {
    width: 100%;
    height: 200px; /* Fixed height for room images */
    object-fit: cover; /* Crop image to fit */
    display: block;
}

.room-card h2.proper-name {
    padding: 20px 20px 5px 20px;
    font-size: 1.6em;
    font-weight: 700;
    text-align: center;
    color: var(--tortora-accent);
    margin: 0;
    letter-spacing: 0.5px;
}

.room-card h3.category-name {
    padding: 5px 20px 5px 20px;
    font-size: 1.1em;
    font-weight: 500;
    text-align: center;
    color: #666;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.room-card h3 {
    padding: 15px 20px 5px 20px;
    font-size: 1.3em;
}

.room-card p {
    padding: 0 20px 20px 20px;
    font-size: 0.95em;
    color: #666;
}

/* Accommodation Info for room cards */
.room-card .accommodation-info {
    display: flex;
    padding: 0 15px 15px 15px;
    gap: 10px;
    justify-content: space-between;
}

.room-card .accommodation-info .info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: #555;
    flex: 1;
    min-width: 0; /* Allow text to shrink */
}

.room-card .accommodation-info .info-item i {
    font-size: 1rem;
    color: var(--tortora-accent);
    margin-bottom: 0.1rem;
}

.room-card .accommodation-info .info-item span {
    font-weight: 500;
    word-wrap: break-word;
    hyphens: auto;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Card footer styles */
.room-card .card-footer {
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--tortora-light) 0%, var(--warm-white) 100%);
    border-top: 1px solid var(--tortora-medium);
    text-align: center;
}

/* Our Rooms / Apartments Section - Swiper Specific */
.swiper-container {
    width: 100%;
    max-width: 100%;
    padding-top: 20px; /* Space for pagination if it's on top */
    padding-bottom: 50px; /* Space for pagination/navigation */
    overflow: hidden; /* Ensure proper clipping */
    position: relative;
    box-sizing: border-box;
}

/* Add a subtle gradient fade on the right to hint at more content */
.swiper-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.8));
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Show gradient only when there are more slides to the right */
.swiper-container:not(.swiper-container-end)::after {
    opacity: 1;
}

.swiper-wrapper {
    display: flex;
    align-items: stretch; /* Ensure all slides have same height */
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff; /* Optional: if slides need a background */

    /* Center slide content (if you want to ensure cards are centered in the slide) */
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto; /* Adjust if cards have varying heights, or set a fixed height */
    width: auto; /* Let the slide width be determined by content and breakpoints */
    flex-shrink: 0; /* Prevent slides from shrinking */
}

/* Styling for the .room-card when inside a .swiper-slide */
.swiper-slide .room-card {
    width: 100%;
    min-width: 280px;
    max-width: 350px;
    margin-bottom: 0;
    box-shadow: 0 4px 15px rgba(212, 196, 168, 0.2);
    border: 1px solid var(--tortora-light);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--white);
    align-self: stretch; /* Ensure all cards have same height */
}

/* Hover effects for cards within the Swiper */
.swiper-slide:hover .room-card {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(212, 196, 168, 0.3);
    border-color: var(--tortora-medium);
}

.swiper-container:hover .swiper-slide:not(:hover) .room-card {
    opacity: 0.8;
}

.swiper-slide .room-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Card content container with uniform height management */
.swiper-slide .room-card .card-content {
    padding: 1rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.swiper-slide .room-card h2.proper-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--tortora-accent);
    margin: 0 0 0.5rem 0;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.swiper-slide .room-card h3.category-name {
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    margin: 0 0 0.75rem 0;
    text-align: center;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.swiper-slide .room-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.75rem 0;
    text-align: center;
    line-height: 1.3;
    flex-shrink: 0; /* Prevent title from shrinking */
}

/* Description with fixed height and text clamping for uniformity */
.swiper-slide .room-card .description-container {
    min-height: 100px; /* Ridotto per compensare il nome aggiuntivo */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.swiper-slide .room-card p.description {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 5; /* Limit to 5 lines */
    line-clamp: 5; /* Standard property for compatibility */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Accommodation details with icons - positioned consistently */
.swiper-slide .room-card .accommodation-info {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0.75rem 0.5rem;
    background: rgba(245, 242, 237, 0.6);
    border-radius: 6px;
    margin: 0 0 1rem 0;
    border: 1px solid var(--tortora-light);
    flex-shrink: 0; /* Prevent shrinking */
}

.swiper-slide .room-card .accommodation-info .info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #555;
    flex: 1;
}

.swiper-slide .room-card .accommodation-info .info-item i {
    font-size: 0.9rem;
    color: var(--tortora-accent);
    margin-bottom: 0.1rem;
}

.swiper-slide .room-card .accommodation-info .info-item span {
    font-weight: 500;
    word-wrap: break-word;
    hyphens: auto;
    line-height: 1.2;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Footer pushed to bottom with margin-top: auto */
.swiper-slide .room-card .card-footer {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--tortora-light) 0%, var(--warm-white) 100%);
    border-top: 1px solid var(--tortora-medium);
    text-align: center;
    margin-top: auto; /* Push to bottom */
    flex-shrink: 0;
}

.swiper-slide .room-card .details {
    display: none;
}

.swiper-slide .room-card .btn-details {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 500;
    background: linear-gradient(135deg, var(--tortora-accent) 0%, var(--tortora-dark) 100%);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(201, 184, 150, 0.3);
}

.swiper-slide .room-card .btn-details:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(201, 184, 150, 0.4);
    background: linear-gradient(135deg, var(--tortora-dark) 0%, var(--tortora-medium) 100%);
}

/* Swiper Pagination and Navigation */
.swiper-pagination-bullet {
    background: #007bff;
    opacity: 0.5;
}

/* Custom Navigation Arrows - Tortora Theme */
.apartments-button-next,
.apartments-button-prev,
.swiper-button-next,
.swiper-button-prev {
    width: 50px !important;
    height: 50px !important;
    background: linear-gradient(135deg, var(--tortora-accent) 0%, var(--tortora-dark) 100%) !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 15px rgba(201, 184, 150, 0.4) !important;
    transition: all 0.3s ease !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    margin-top: -25px !important;
}

/* Remove default arrows and use custom SVG icons */
.apartments-button-next:after,
.apartments-button-prev:after,
.swiper-button-next:after,
.swiper-button-prev:after {
    content: '' !important;
}

/* Custom arrow icons with tortora theme */
.apartments-button-next,
.swiper-button-next {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 16 16'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 20px !important;
}

.apartments-button-prev,
.swiper-button-prev {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 16 16'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 20px !important;
}

/* Hover effects with tortora colors */
.apartments-button-next:hover,
.apartments-button-prev:hover,
.swiper-button-next:hover,
.swiper-button-prev:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(201, 184, 150, 0.6) !important;
    background: linear-gradient(135deg, var(--tortora-dark) 0%, var(--tortora-medium) 100%) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

/* Active state */
.apartments-button-next:active,
.apartments-button-prev:active,
.swiper-button-next:active,
.swiper-button-prev:active {
    transform: scale(0.95) !important;
}

/* Disabled state */
.apartments-button-next.swiper-button-disabled,
.apartments-button-prev.swiper-button-disabled,
.swiper-button-next.swiper-button-disabled,
.swiper-button-prev.swiper-button-disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
    transform: none !important;
    background: var(--tortora-medium) !important;
}

/* Positioning adjustments */
.swiper-button-next {
    right: 10px !important;
}

.swiper-button-prev {
    left: 10px !important;
}

/* Mobile responsive arrows */
@media (max-width: 768px) {
    .apartments-button-next,
    .apartments-button-prev,
    .swiper-button-next,
    .swiper-button-prev {
        width: 48px !important; /* Più grandi per touch */
        height: 48px !important;
        background-size: 20px !important;
        margin-top: -24px !important;
        border: 3px solid rgba(255, 255, 255, 0.4) !important; /* Bordi più visibili */
        box-shadow: 0 4px 15px rgba(212, 196, 168, 0.5) !important;
    }
    
    .swiper-button-next {
        right: 10px !important;
    }
    
    .swiper-button-prev {
        left: 10px !important;
    }
    
    /* Ottimizzazioni per le card su mobile */
    .swiper-slide .room-card {
        min-width: 280px; /* Più larghe per migliore touch */
        max-width: 340px;
        margin: 0 auto;
        border-radius: 16px; /* Più arrotondate */
        box-shadow: 0 6px 20px rgba(212, 196, 168, 0.25);
    }
    
    .swiper-slide .room-card:hover {
        transform: scale(1.02); /* Leggero ma percettibile */
        box-shadow: 0 8px 25px rgba(212, 196, 168, 0.35);
    }
    
    .swiper-slide .room-card h2.proper-name {
        font-size: 1.3rem; /* Più leggibile */
        margin-bottom: 0.5rem;
        padding: 0 10px;
    }
    
    .swiper-slide .room-card h3.category-name {
        font-size: 0.95rem;
        margin-bottom: 0.7rem;
        padding: 0 10px;
    }
    
    .swiper-slide .room-card .description-container {
        min-height: 90px; /* Spazio adeguato */
        padding: 0 15px;
    }
    
    .swiper-slide .room-card p.description {
        font-size: 0.9rem;
        -webkit-line-clamp: 4; /* Ottimale per mobile */
        line-clamp: 4;
        line-height: 1.5;
    }
    
    .swiper-slide .room-card .accommodation-info {
        padding: 0.75rem 0.5rem;
        margin: 0 10px 1rem 10px;
        border-radius: 8px;
    }
    
    .swiper-slide .room-card .accommodation-info .info-item {
        font-size: 0.75rem;
    }
    
    .swiper-slide .room-card .accommodation-info .info-item i {
        font-size: 0.85rem;
    }
    
    .swiper-slide .room-card .btn-details {
        padding: 0.9rem 1.6rem;
        font-size: 0.95rem;
        min-height: 48px; /* Touch-friendly */
        border-radius: 8px;
        font-weight: 600;
        letter-spacing: 0.3px;
    }
    
    .swiper-slide .room-card .card-footer {
        padding: 1.2rem 1.5rem;
    }
    
    /* Swiper container ottimizzato */
    .swiper-container {
        padding-bottom: 50px; /* Più spazio per navigazione */
        padding-left: 20px;
        padding-right: 20px;
        overflow: visible; /* Permette di vedere parte delle card adiacenti */
    }
    
    /* Migliora la visibilità delle slide adiacenti */
    .swiper-wrapper {
        align-items: center;
    }
    
    /* Indicatore visivo che ci sono più slide */
    .swiper-container::after {
        opacity: 1 !important;
        width: 40px;
        background: linear-gradient(to right, transparent, rgba(255,255,255,0.9));
    }
}

/* Focus states for accessibility */
.apartments-button-next:focus,
.apartments-button-prev:focus,
.swiper-button-next:focus,
.swiper-button-prev:focus {
    outline: 2px solid var(--tortora-accent) !important;
    outline-offset: 2px !important;
}

/* Booking Reviews Section */
.booking-reviews-section {
    background: linear-gradient(135deg, var(--tortora-light) 0%, var(--warm-white) 100%);
    border-top: 1px solid var(--tortora-medium);
    border-bottom: 1px solid var(--tortora-medium);
    padding: 60px 5% 80px 5%;
}

.booking-reviews-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
    color: var(--tortora-dark);
}

/* Styling per il widget Elfsight */
.elfsight-app-68bfd8f6-2673-4d7e-bd3d-6a63deeb450f {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(212, 196, 168, 0.15);
}

/* Discover Your Next Escape Section - Attractions Gallery */
.discover-escape-section {
    padding: 60px 5% 80px 5%;
}

.discover-escape-section h2 {
    margin-bottom: 15px;
    font-size: 2.5em;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1em;
    color: #666;
    margin-bottom: 50px;
    font-style: italic;
}

.attractions-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.attraction-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--warm-white) 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(212, 196, 168, 0.15);
    border: 1px solid var(--tortora-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}

.attraction-card:hover,
.attraction-card:focus {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(212, 196, 168, 0.25);
    border-color: var(--tortora-medium);
    outline: none;
}

.attraction-card:focus {
    box-shadow: 0 8px 25px rgba(212, 196, 168, 0.25), 0 0 0 3px rgba(212, 196, 168, 0.3);
}

.attraction-media {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.placeholder-media {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.3s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.placeholder-media.has-image {
    background-blend-mode: overlay;
}

.placeholder-media.has-image i {
    opacity: 0.8;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* WebP support with fallback */
.webp .placeholder-media[data-bg-webp] {
    background-image: var(--bg-webp);
}

.no-webp .placeholder-media[data-bg-webp] {
    background-image: var(--bg-fallback);
}

.attraction-card:hover .placeholder-media {
    transform: scale(1.05);
}

.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.attraction-card:hover .media-overlay {
    opacity: 1;
}

.media-btn {
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    font-size: 1.2rem;
    color: #333;
}

.media-btn:hover {
    transform: scale(1.1);
    background: white;
}

.attraction-info {
    padding: 25px;
}

.attraction-info h3 {
    font-size: 1.4em;
    color: #333;
    margin-bottom: 12px;
    font-weight: 600;
}

.attraction-description {
    font-size: 0.95em;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.attraction-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.distance {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
    color: var(--tortora-dark);
    font-weight: 500;
}

.distance i {
    font-size: 0.8em;
}

.category {
    background: linear-gradient(135deg, var(--tortora-light) 0%, var(--tortora-medium) 100%);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    color: #555;
    font-weight: 500;
    border: 1px solid var(--tortora-medium);
}

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    overflow: auto;
}

.gallery-modal-content {
    background-color: #fff;
    margin: 2% auto;
    border-radius: 15px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gallery-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--tortora-medium);
    background: linear-gradient(135deg, var(--tortora-light) 0%, var(--warm-white) 100%);
}

.gallery-modal-header h3 {
    margin: 0;
    font-size: 1.4em;
    color: #333;
}

.gallery-close-btn {
    background: none;
    border: none;
    font-size: 2em;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.gallery-close-btn:hover {
    background-color: #f0f0f0;
    color: #333;
}

.gallery-modal-body {
    flex: 1;
    padding: 0;
    position: relative;
    min-height: 400px;
}

.gallery-swiper {
    width: 100%;
    height: 500px;
}

.gallery-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.gallery-swiper .swiper-slide img,
.gallery-swiper .swiper-slide video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.gallery-swiper .placeholder-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.1em;
    text-align: center;
    padding: 40px;
}

.gallery-swiper .placeholder-slide i {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.5;
}

.gallery-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--tortora-medium);
    background: linear-gradient(135deg, var(--tortora-light) 0%, var(--warm-white) 100%);
}

.gallery-modal-footer p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

/* Contact Buttons */
.contact-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
    flex-direction: row !important; /* Forza layout orizzontale */
    flex-wrap: nowrap !important; /* Non andare a capo */
}

.whatsapp-btn, .email-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 30px; /* Più arrotondato */
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--tortora-light);
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 2px 10px rgba(212, 196, 168, 0.2);
    background: linear-gradient(135deg, var(--white) 0%, var(--warm-white) 100%);
    color: #4A3B31;
    backdrop-filter: blur(10px);
    flex-shrink: 0; /* Non si restringono */
}

/* Mobile optimizations for contact buttons */
@media (max-width: 768px) {
    .contact-buttons {
        margin: 8px 0;
        gap: 10px;
        flex-direction: row !important;
        justify-content: center;
        flex-wrap: nowrap !important;
    }
    
    .whatsapp-btn, .email-btn {
        padding: 8px 14px !important; /* Più bilanciato */
        font-size: 12px !important; /* Leggermente più grande */
        border-radius: 25px !important; /* Meno arrotondato, più elegante */
        gap: 5px !important;
        max-width: 110px !important;
        min-width: 95px !important;
        flex: 0 0 auto !important;
        font-weight: 600 !important;
        flex-shrink: 0 !important;
        border-width: 2px !important;
        box-shadow: 0 2px 10px rgba(212, 196, 168, 0.2) !important;
    }
    
    .whatsapp-btn i, .email-btn i {
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    .contact-buttons {
        margin: 6px 0;
        gap: 8px;
        flex-direction: row !important;
        justify-content: center;
        flex-wrap: nowrap !important;
    }
    
    .whatsapp-btn, .email-btn {
        padding: 7px 12px !important; /* Proporzioni migliori */
        font-size: 11px !important;
        border-radius: 22px !important; /* Arrotondamento proporzionato */
        flex: 0 0 auto !important;
        max-width: 100px !important;
        min-width: 85px !important;
        gap: 4px !important;
        border-width: 2px !important;
        flex-shrink: 0 !important;
        font-weight: 600 !important;
        box-shadow: 0 2px 10px rgba(212, 196, 168, 0.2) !important;
    }
    
    .whatsapp-btn i, .email-btn i {
        font-size: 11px !important;
    }
}

/* Extra small devices */
@media (max-width: 375px) {
    .contact-buttons {
        margin: 5px 0;
        gap: 6px;
        flex-direction: row !important;
        justify-content: center;
        flex-wrap: nowrap !important;
    }
    
    .whatsapp-btn, .email-btn {
        padding: 6px 10px !important; /* Più proporzionato */
        font-size: 10px !important;
        border-radius: 20px !important; /* Arrotondamento giusto */
        max-width: 90px !important;
        min-width: 75px !important;
        gap: 3px !important;
        flex-shrink: 0 !important;
        font-weight: 600 !important;
        border-width: 2px !important;
        box-shadow: 0 2px 10px rgba(212, 196, 168, 0.2) !important;
    }
    
    .whatsapp-btn i, .email-btn i {
        font-size: 10px !important;
    }
}

.whatsapp-btn:hover, .email-btn:hover {
    background: linear-gradient(135deg, var(--tortora-medium) 0%, var(--tortora-dark) 100%);
    color: #4A3B31;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 196, 168, 0.4);
    border-color: var(--tortora-accent);
}

/* ===========================================
   MODAL STYLES - SEZIONE UNIFICATA
   Non duplicare questa sezione!
   =========================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 10000; /* Increased z-index to be above all other elements */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
    /* Mobile optimizations */
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background: linear-gradient(135deg, var(--white) 0%, var(--warm-white) 100%);
    margin: 3% auto;
    padding: 0;
    border: 1px solid var(--tortora-light);
    width: 85%; /* Slightly wider for better content display */
    max-width: 1100px; /* Increased max width for desktop */
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 24px; /* More modern rounded corners */
    position: relative;
    box-shadow: 0 20px 60px rgba(212, 196, 168, 0.25), 0 8px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    /* Mobile optimizations */
    -webkit-overflow-scrolling: touch;
}

.modal.show .modal-content {
    transform: translateY(0);
}

/* Enhanced Modal Header */
.modal-content h2 {
    background: linear-gradient(135deg, var(--tortora-accent) 0%, var(--tortora-dark) 100%);
    color: #4A3B31;
    margin: 0;
    padding: 25px 30px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 20px 20px 0 0;
    position: relative;
    text-align: center;
    border-bottom: 3px solid var(--tortora-medium);
    box-shadow: 0 4px 12px rgba(212, 196, 168, 0.2);
}

.modal-content h2::before {
    content: '✉️';
    margin-right: 12px;
    font-size: 22px;
}

.modal-content h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--tortora-accent), transparent);
}

/* Form Container within Modal */
.modal-content form {
    padding: 30px;
    overflow-y: auto;
    max-height: calc(80vh - 100px);
}

.close {
    color: #4A3B31;
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    background: linear-gradient(135deg, var(--white) 0%, var(--warm-white) 100%);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(212, 196, 168, 0.3);
    border: 2px solid var(--tortora-medium);
}

.close:hover {
    color: #fff;
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    border-color: #ff5252;
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

/* ===========================================
   FORM STYLES - Enhanced Design
   =========================================== */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

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

.form-group.half {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4A3B31;
    font-size: 15px;
    letter-spacing: 0.3px;
    position: relative;
}

.form-group label::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--tortora-accent), var(--tortora-dark));
    transition: width 0.3s ease;
}

.form-group:focus-within label::after {
    width: 100%;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--tortora-light);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
    background: linear-gradient(135deg, var(--white) 0%, var(--warm-white) 100%);
    box-shadow: 0 2px 8px rgba(212, 196, 168, 0.1);
    position: relative;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--tortora-accent);
    box-shadow: 
        0 0 0 4px rgba(212, 196, 168, 0.15),
        0 4px 16px rgba(212, 196, 168, 0.2);
    background: var(--white);
    transform: translateY(-1px);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--tortora-medium);
    box-shadow: 0 4px 12px rgba(212, 196, 168, 0.15);
}

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

/* Enhanced Select Dropdown */
.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23D4A373' viewBox='0 0 16 16'%3e%3cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 50px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-group select:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23C9B896' viewBox='0 0 16 16'%3e%3cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3e%3c/svg%3e");
}

/* Enhanced Date Inputs */
.form-group input[type="date"] {
    position: relative;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23D4A373' viewBox='0 0 16 16'%3e%3cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    padding-right: 50px;
}

/* Enhanced Submit Button */
.submit-btn {
    background: linear-gradient(135deg, var(--tortora-accent), var(--tortora-dark));
    color: #4A3B31;
    padding: 18px 40px;
    border: 2px solid var(--tortora-medium);
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    font-family: inherit;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(212, 196, 168, 0.3);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    background: linear-gradient(135deg, var(--tortora-dark), var(--tortora-accent));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 196, 168, 0.5);
    border-color: var(--tortora-accent);
}

.submit-btn:active {
    transform: translateY(-1px);
    transition: all 0.1s ease;
}

/* Form validation styles */
.form-group input:valid,
.form-group select:valid,
.form-group textarea:valid {
    border-color: #28a745;
}

.form-group input:invalid:not(:focus):not(:placeholder-shown),
.form-group select:invalid:not(:focus),
.form-group textarea:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Loading state for submit button */
.submit-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid #4A3B31;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Contact Section Styles */
.contact-section {
    background-color: var(--warm-white);
    padding: 60px 20px;
    margin-top: 40px;
}

.contact-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.form-container, .contact-info {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.form-container h2, .contact-info h2 {
    color: #333;
    margin-top: 0;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: left;
}

.contact-info p {
    margin-bottom: 15px;
    line-height: 1.6;
}

#contact-form {
    display: flex;
    flex-direction: column;
}

#contact-form input, 
#contact-form textarea {
    margin-bottom: 15px;
    padding: 12px 15px;
    border: 1px solid var(--tortora-medium);
    border-radius: 4px;
    font-size: 1em;
    width: 100%;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#contact-form input:focus, 
#contact-form textarea:focus {
    outline: none;
    border-color: var(--tortora-dark);
    box-shadow: 0 0 0 3px rgba(212, 196, 168, 0.2);
}

#contact-form button {
    background: linear-gradient(to right, var(--tortora-dark), var(--tortora-accent));
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    align-self: flex-start;
    font-weight: 600;
}

#contact-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#form-status {
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

#form-status.success {
    display: block;
    background-color: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

#form-status.error {
    display: block;
    background-color: rgba(244, 67, 54, 0.1);
    color: #c62828;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.contact-info .social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.contact-info .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--tortora-light);
    color: #333;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.contact-info .social-icons a:hover {
    background-color: var(--tortora-dark);
    transform: translateY(-3px);
}

/* Media query intermedia per tablet e dispositivi medi */
@media (max-width: 1024px) and (min-width: 769px) {
    .main-header {
        padding: 18px 4%;
    }
    
    .header-contact-buttons {
        gap: 10px;
    }
    
    .header-whatsapp-btn, .header-email-btn {
        font-size: 0.85em;
        padding: 7px 11px;
    }
    
    .header-book {
        font-size: 0.9em;
        padding: 7px 15px;
    }
    
    .main-nav a {
        margin-left: 20px;
        font-size: 0.95em;
    }
}

/* Media queries per mantenere hero section full-width */
@media (max-width: 768px) {
    .main-header {
        padding: 12px 4%; /* Header più compatto */
        min-height: 60px; /* Altezza ridotta */
    }
    
    .header-inner {
        display: flex;
        flex-direction: row; /* Torna a layout orizzontale */
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        min-height: auto;
    }
    
    .logo-container {
        order: 1;
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 1;
    }
    
    .logo-text {
        font-size: 1.2em; /* Dimensione più compatta */
    }
    
    /* Language selector più compatto */
    .language-selector {
        order: 2;
        margin-left: 0;
        display: flex;
        gap: 4px;
    }
    
    .lang-btn {
        min-width: 36px;
        height: 36px;
        padding: 4px 6px;
        font-size: 12px;
    }
    
    /* Nascondi la navigazione principale su mobile */
    .main-nav {
        display: none;
    }
    
    /* Contact buttons più eleganti e compatti */
    .header-contact-buttons {
        order: 3;
        display: flex;
        gap: 6px;
        align-items: center;
    }
    
    .header-whatsapp-btn, .header-email-btn {
        font-size: 0.75em;
        padding: 6px 10px;
        min-height: 36px;
        border-radius: 18px; /* Più arrotondati */
        min-width: 70px;
        justify-content: center;
    }
    
    /* Nascondi il bottone "Prenota ora" su mobile per più spazio */
    .header-book {
        display: none;
    }
    
    .hero-section {
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        margin-bottom: 0;
        min-height: 60vh; /* Ridotto da 70vh a 60vh per mobile */
        display: flex;
        align-items: flex-start; /* Cambiato da center a flex-start */
        justify-content: center;
        padding-top: 80px; /* Aggiungo padding top per spostare sotto l'header */
    }
    
    .hero-content {
        padding: 10px 5%; /* Ridotto ancora di più */
        max-width: none;
        width: 100%;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.2em; /* Ridotto leggermente */
        line-height: 1.2;
        margin-bottom: 8px; /* Ridotto da 15px */
        text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* Migliore leggibilità */
    }
    
    .hero-content p {
        font-size: 1em; /* Ridotto da 1.1em */
        line-height: 1.3; /* Ridotto da 1.4 */
        margin-bottom: 15px; /* Ridotto da 30px */
        text-shadow: 1px 1px 2px rgba(0,0,0,0.3); /* Migliore leggibilità */
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Bottone hero ottimizzato per mobile */
    .hero-content .btn-secondary {
        padding: 18px 36px; /* Più generoso per touch */
        font-size: 1.1em;
        min-height: 56px; /* Touch-friendly */
        box-shadow: 0 6px 20px rgba(212, 196, 168, 0.5);
        font-weight: 600;
        border-radius: 28px; /* Più arrotondato */
        min-width: 200px;
        transition: all 0.3s ease;
    }
    
    .hero-content .btn-secondary:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(212, 196, 168, 0.7);
    }
    
    /* Assicura attacco perfetto anche su mobile */
    .our-rooms-section {
        margin-top: 0;
        padding-top: 50px; /* Più spazio su mobile */
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 10px 3%; /* Padding ancora più compatto */
        min-height: 55px;
    }
    
    .header-inner {
        gap: 6px;
    }
    
    .logo-text {
        font-size: 1.1em;
    }
    
    .language-selector {
        gap: 3px;
    }
    
    .lang-btn {
        min-width: 32px;
        height: 32px;
        padding: 3px 5px;
        font-size: 11px;
    }
    
    .header-contact-buttons {
        gap: 4px;
    }
    
    .header-whatsapp-btn, .header-email-btn {
        font-size: 0.7em;
        padding: 5px 8px;
        min-height: 32px;
        min-width: 60px;
        border-radius: 16px;
    }
    
    /* Solo icone su schermi molto piccoli */
    .header-whatsapp-btn span,
    .header-email-btn span {
        display: none; /* Nascondi il testo, mostra solo icone */
    }
    
    .header-whatsapp-btn,
    .header-email-btn {
        min-width: 32px;
        width: 32px;
        padding: 6px;
        border-radius: 50%; /* Bottoni circolari */
    }
    
    /* Hero ottimizzato per mobile */
    .hero-section {
        min-height: 55vh; /* Ancora più compatto su mobile small */
        align-items: flex-start; /* Mantieni allineamento in alto */
        padding-top: 70px; /* Padding per mobile piccolo */
    }
    
    .hero-content {
        padding: 8px 5%; /* Padding ancora più ridotto */
    }
    
    .hero-content h1 {
        font-size: 1.8em; /* Ridotto da 1.9em */
        line-height: 1.2;
        margin-bottom: 6px; /* Ridotto da 12px */
    }
    
    .hero-content p {
        font-size: 0.9em; /* Ridotto da 1em */
        line-height: 1.3; /* Ridotto da 1.5 */
        margin-bottom: 12px; /* Ridotto da 20px */
    }
    
    .hero-content .btn-secondary {
        padding: 12px 24px;
        font-size: 1em;
        width: 100%;
        max-width: 250px;
    }
    
    /* Sezioni con padding ottimizzato */
    section {
        padding: 40px 4%;
    }
    
    .our-rooms-section {
        padding-top: 40px;
    }
    
    /* Typography mobile */
    h2 {
        font-size: 1.6em;
        margin-bottom: 25px;
    }
    
    h3 {
        font-size: 1.2em;
    }
    
    p {
        font-size: 0.95em;
        line-height: 1.6;
    }
}

/* Media query per schermi molto piccoli */
@media (max-width: 360px) {
    .main-header {
        padding: 8px 3%;
        min-height: 50px; /* Header ultra-compatto */
    }
    
    .header-inner {
        gap: 4px;
    }
    
    .logo-text {
        font-size: 1em;
    }
    
    .lang-btn {
        min-width: 30px;
        height: 30px;
        padding: 2px 4px;
        font-size: 10px;
    }
    
    .flag-icon {
        font-size: 0.8em;
    }
    
    .header-contact-buttons {
        gap: 3px;
    }
    
    .header-whatsapp-btn, .header-email-btn {
        width: 30px;
        height: 30px;
        min-width: 30px;
        min-height: 30px;
        padding: 4px;
        font-size: 0.9em; /* Solo per le icone */
    }
    
    /* Hero ultra-compatto */
    .hero-section {
        min-height: 55vh;
    }
    
    .hero-content {
        padding: 20px 3%;
    }
    
    .hero-content h1 {
        font-size: 1.7em;
        margin-bottom: 15px;
    }
    
    .hero-content p {
        font-size: 0.95em;
        margin-bottom: 20px;
    }
    
    .hero-content .btn-secondary {
        padding: 10px 20px;
        font-size: 0.9em;
        max-width: 220px;
    }
    
    /* Sezioni ultra-compatte */
    section {
        padding: 30px 3%;
    }
    
    h2 {
        font-size: 1.4em;
        margin-bottom: 20px;
    }
    
    /* Swiper ultra-compatto */
    .swiper-slide .room-card {
        min-width: 240px;
        max-width: 280px;
    }
    
    .swiper-slide .room-card h2.proper-name {
        font-size: 1.1rem;
    }
    
    .swiper-slide .room-card .description-container {
        min-height: 70px;
    }
    
    .swiper-slide .room-card p.description {
        font-size: 0.8rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    
    /* Contact buttons ultra-compatti */
    .whatsapp-btn, .email-btn {
        max-width: 240px;
        padding: 12px 16px;
        font-size: 0.9em;
        min-height: 44px;
    }
    
    /* Modal ultra-compatto */
    .modal-content {
        margin: 2px;
        padding: 15px;
        width: calc(100% - 4px);
        border-radius: 10px;
        overflow-y: auto;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .modal-action-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
        min-height: 44px;
    }
    
    /* Attractions ultra-compatte */
    .attraction-media {
        height: 180px;
    }
    
    .attraction-info {
        padding: 15px;
    }
    
    .attraction-info h3 {
        font-size: 1.2em;
    }
    
    /* Quality cards ultra-compatte */
    .quality-cards-container {
        max-width: 260px;
        gap: 12px;
    }
    
    .quality-card {
        padding: 15px 12px;
        min-height: 100px;
    }
    
    .quality-card i {
        font-size: 2rem;
    }
    
    .quality-card h3 {
        font-size: 0.9rem;
    }
    
    .quality-card p {
        font-size: 0.8rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
        gap: 20px; /* Più spazio tra i bottoni */
        margin: 40px 0; /* Margini più ampi */
        padding: 0 20px; /* Padding laterale */
    }
    
    .whatsapp-btn, .email-btn {
        width: 100%;
        max-width: 320px; /* Larghezza ottimale per mobile */
        justify-content: center;
        padding: 20px 28px; /* Padding più generoso */
        min-height: 60px; /* Altezza ottimale per touch */
        font-size: 1.15rem; /* Font leggermente più grande */
        font-weight: 600;
        border-radius: 30px; /* Molto arrotondati */
        box-shadow: 0 6px 20px rgba(212, 196, 168, 0.4);
        transition: all 0.3s ease;
        border: 2px solid var(--tortora-medium);
        letter-spacing: 0.5px; /* Migliore leggibilità */
    }
    
    .whatsapp-btn:hover, .email-btn:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(212, 196, 168, 0.6);
        border-color: var(--tortora-accent);
    }
    
    .whatsapp-btn:active, .email-btn:active {
        transform: translateY(-1px);
        transition: all 0.1s ease;
    }
    
    /* Icone più grandi nei bottoni */
    .whatsapp-btn i, .email-btn i {
        font-size: 1.3em;
        margin-right: 8px;
    }
    
    .modal-content {
        margin: 2% auto;
        padding: 25px;
        width: 92%;
        max-height: 90vh;
        border-radius: 16px;
        overflow-y: auto;
    }
    
    /* Modal header ottimizzato */
    .modal-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .modal-capacity {
        margin-left: 0;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .capacity-item {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    
    /* Better modal visibility on tablets */
    .modal {
        padding: 10px;
    }
    
    /* Attractions gallery ottimizzato */
    .attractions-gallery {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 10px;
    }
    
    .attraction-card {
        margin: 0;
        border-radius: 16px;
    }
    
    .attraction-media {
        height: 200px;
    }
    
    .attraction-info {
        padding: 20px;
    }
    
    .attraction-info h3 {
        font-size: 1.3em;
        margin-bottom: 10px;
    }
    
    .attraction-description {
        font-size: 0.9em;
        margin-bottom: 15px;
    }
}

/* Responsive per il modal e form */
@media (max-width: 768px) {
    .modal-content {
        margin: 2% auto;
        padding: 0;
        width: 95%;
        max-height: 90vh;
        border-radius: 16px;
        overflow-y: auto;
    }
    
    .modal-content h2 {
        padding: 20px 25px;
        font-size: 20px;
        border-radius: 16px 16px 0 0;
    }
    
    .modal-content h2::before {
        font-size: 18px;
        margin-right: 8px;
    }
    
    .modal-content form {
        padding: 25px 20px;
        max-height: calc(90vh - 80px);
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 16px; /* Previene zoom su iOS */
        border-radius: 10px;
        min-height: 48px; /* Touch-friendly */
    }
    
    .form-group textarea {
        min-height: 100px;
    }
    
    .submit-btn {
        padding: 16px 30px;
        font-size: 16px;
        border-radius: 10px;
        margin-top: 10px;
    }
    
    .close {
        top: 10px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 10px;
        width: calc(100% - 20px);
        max-height: calc(100vh - 20px);
        border-radius: 12px;
        overflow-y: auto;
    }
    
    .modal-content h2 {
        padding: 15px 20px;
        font-size: 18px;
        border-radius: 12px 12px 0 0;
    }
    
    .modal-content form {
        padding: 20px 15px;
        max-height: calc(100vh - 70px);
    }
    
    .form-group input,
    .form-group select, 
    .form-group textarea {
        padding: 12px 14px;
        border-radius: 8px;
    }
    
    .submit-btn {
        padding: 14px 25px;
        font-size: 15px;
        border-radius: 8px;
    }
    
    .close {
        top: 8px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 24px;
    }
}
    
    /* Typography mobile ottimizzata */
    .modal-header h2 {
        font-size: 1.4rem;
    }
    
    .modal-section h3 {
        font-size: 1.1rem;
    }
    
    .service-item {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .modal-action-btn {
        padding: 14px 18px;
        font-size: 0.95rem;
        min-height: 48px;
    }
    
    /* Ensure modal is always visible on mobile */
    .modal.show {
        display: block !important;
        opacity: 1 !important;
        z-index: 10000 !important;
        visibility: visible !important;
    }
    
    .modal.show .modal-content {
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Ensure modal content is clickable */
    .modal-content * {
        pointer-events: auto !important;
    }
    
    /* Fix for mobile touch scrolling */
    body.modal-open {
        position: fixed;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
    
    /* Discover section mobile */
    .discover-escape-section {
        padding: 50px 4% 70px 4%;
    }
    
    .discover-escape-section h2 {
        font-size: 2em;
        margin-bottom: 12px;
    }
    
    .section-subtitle {
        font-size: 1em;
        margin-bottom: 40px;
    }
    
    .attraction-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .distance {
        font-size: 0.85em;
    }
    
    .category {
        padding: 6px 12px;
        font-size: 0.75em;
    }
    
    /* Extra services mobile */
    .extra-services-section {
        padding: 40px 4% 50px 4%;
    }
    
    .quality-cards-container {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .quality-card {
        padding: 20px 15px;
        min-height: 120px;
    }
    
    .quality-card i {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }
    
    .quality-card h3 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .quality-card p {
        font-size: 0.85rem;
    }

/* MOBILE MODAL FIX - Higher specificity */
@media screen and (max-width: 768px) {
    body .modal {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 10000 !important;
    }
    
    body .modal.show {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    body .modal-content {
        position: relative !important;
        margin: 2% auto !important;
        max-height: 95vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* Prevent background scroll on mobile when modal is open */
    body.modal-open {
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
        overflow: hidden !important;
    }
}

/* Responsive adjustments for attractions gallery */
@media (max-width: 768px) {
    .attractions-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .attraction-card {
        margin: 0 10px;
    }
    
    .attraction-media {
        height: 200px;
    }
    
    .gallery-modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .gallery-swiper {
        height: 300px;
    }
    
    .gallery-modal-header,
    .gallery-modal-footer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .discover-escape-section {
        padding: 40px 3% 60px 3%;
    }
    
    .attraction-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .gallery-swiper {
        height: 250px;
    }
    
    /* Contact form mobile ottimizzato */
    .contact-wrapper {
        flex-direction: column;
        gap: 20px;
        padding: 0 5px;
    }
    
    .form-container, .contact-info {
        min-width: 0;
        padding: 20px;
    }
    
    .form-container h2, .contact-info h2 {
        font-size: 1.5em;
        text-align: center;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px;
        font-size: 16px; /* Previene zoom su iOS */
        border-radius: 8px;
        min-height: 44px;
    }
    
    .submit-btn {
        padding: 16px 24px;
        font-size: 1rem;
        min-height: 50px;
        margin-top: 10px;
    }
    
    /* Footer mobile */
    .main-footer {
        padding: 25px 4%;
        text-align: center;
    }
    
    .footer-links {
        margin-bottom: 20px;
    }
    
    .footer-links a {
        display: inline-block;
        margin: 5px 10px;
        padding: 8px 12px;
        background: rgba(212, 196, 168, 0.1);
        border-radius: 20px;
        font-size: 0.9em;
        transition: all 0.3s ease;
    }
    
    .footer-links a:hover {
        background: rgba(212, 196, 168, 0.2);
        transform: translateY(-1px);
    }
    
    .copyright-text {
        font-size: 0.85em;
        line-height: 1.5;
    }
}

/* Extra Services Section / Qualità della struttura */
.extra-services-section {
    background: linear-gradient(135deg, var(--tortora-light) 0%, var(--warm-white) 100%);
    border-top: 1px solid var(--tortora-medium);
    border-bottom: 1px solid var(--tortora-medium);
    padding-top: 50px;
    padding-bottom: 60px;
}

.extra-services-section h2 {
    margin-bottom: 40px; /* More space below the title */
}

/* Container per le card migliorate */
.quality-cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Card migliorate per Qualità della struttura - Stile moderno uniforme */
.quality-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.25rem 0.75rem;
    color: #4A4A4A;
    box-shadow: 0 2px 12px rgba(212, 196, 168, 0.15);
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
    border: 1px solid var(--tortora-light);
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.quality-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(212, 196, 168, 0.25);
    border-color: var(--tortora-accent);
    background: var(--warm-white);
}

.quality-card i {
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
    display: block;
    color: var(--tortora-accent);
    transition: all 0.3s ease;
}

.quality-card:hover i {
    color: var(--tortora-dark);
    transform: scale(1.1);
}

.quality-card h3 {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

.quality-card p {
    font-size: 0.75rem;
    line-height: 1.3;
    margin: 0;
    color: #666;
    opacity: 0.9;
}

/* Responsive: su tablet 2x2, su mobile 2 colonne */
@media (max-width: 1024px) {
    .quality-cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        max-width: 600px;
    }
    
    .quality-card {
        padding: 1.5rem 1rem;
        min-height: 160px;
    }
    
    .quality-card i {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .quality-card h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .quality-card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

@media (max-width: 768px) {
    .quality-cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        max-width: 500px;
    }
    
    .quality-card {
        padding: 1.25rem 0.75rem;
        min-height: 140px;
    }
    
    .quality-card h3 {
        font-size: 0.9rem;
    }
    
    .quality-card p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .quality-cards-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 300px;
    }
}

/* Stili legacy per compatibilità */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    background: linear-gradient(135deg, var(--white) 0%, var(--warm-white) 100%);
    padding: 25px; 
    border: 1px solid var(--tortora-light);
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    box-shadow: 0 3px 8px rgba(212, 196, 168, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(212, 196, 168, 0.2);
    border-color: var(--tortora-medium);
}

.service-item i {
    font-size: 1.8em;
    color: var(--tortora-dark); 
    margin-right: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.service-item-text {
    font-size: 0.95em;
    line-height: 1.6;
    color: #555;
}

.service-item-text strong {
    color: #333;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

/* Nearby Highlights Section */
.highlights-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    text-align: center;
}

.highlight-item {
    background: linear-gradient(135deg, var(--white) 0%, var(--warm-white) 100%);
    padding: 20px;
    border: 1px solid var(--tortora-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column; /* Stack icon and text */
    font-size: 1em;
    color: #444;
    box-shadow: 0 2px 4px rgba(212, 196, 168, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(212, 196, 168, 0.15);
    border-color: var(--tortora-medium);
}

.highlight-item i {
    font-size: 1.8em;
    color: var(--tortora-dark);
    margin-bottom: 10px;
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, var(--white) 0%, var(--warm-white) 100%);
    color: #555;
    text-align: center;
    padding: 30px 5%;
    border-top: 1px solid var(--tortora-medium);
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

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

.footer-links a {
    color: #555;
    margin: 0 15px;
    font-size: 0.95em;
}

.footer-links a:hover {
    color: var(--tortora-dark);
}

.copyright-text {
    font-size: 0.9em;
    color: #777;
}

/* ====== TORTORA ACCENTS & ENHANCEMENTS ====== */

/* Sezioni alternate con background tortora */
.section-tortora {
    background: linear-gradient(135deg, var(--tortora-light) 0%, var(--warm-white) 100%);
    border-top: 1px solid var(--tortora-medium);
    border-bottom: 1px solid var(--tortora-medium);
}

/* Decorazioni sottili per migliorare l'estetica */
.tortora-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--tortora-medium), transparent);
}

/* Hover effects globali per elementi interattivi */
.interactive-element {
    transition: all 0.3s ease;
}

.interactive-element:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 196, 168, 0.2);
}

/* Miglioramenti per link generici */
a:not(.btn):not(.logo-text) {
    color: var(--tortora-dark);
    position: relative;
    transition: color 0.3s ease;
}

a:not(.btn):not(.logo-text):hover {
    color: var(--tortora-accent);
}

a:not(.btn):not(.logo-text)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--tortora-accent);
    transition: width 0.3s ease;
}

a:not(.btn):not(.logo-text):hover::after {
    width: 100%;
}

/* Background decorativo sottile per il body */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(212, 196, 168, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 196, 168, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(212, 196, 168, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Miglioramento per scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--tortora-light);
}

::-webkit-scrollbar-thumb {
    background: var(--tortora-medium);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--tortora-dark);
}

/* Selection color */
::selection {
    background: var(--tortora-medium);
    color: #4A3B31;
}

::-moz-selection {
    background: var(--tortora-medium);
    color: #4A3B31;
}

/* ====== PARALLAX EFFECT STYLES ====== */

/* Smooth scrolling per il body quando il parallax è attivo */
.parallax-enabled {
    overflow-x: hidden;
}

.parallax-enabled html {
    scroll-behavior: smooth;
}

/* Stili base per sezioni con effetto parallax */
.parallax-section {
    position: relative;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

/* Hero section con parallax background */
.hero-section {
    position: relative;
    overflow: hidden;
    will-change: transform, opacity;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1; /* Assicura che stia sotto le altre sezioni */
    isolation: isolate; /* Crea un nuovo contesto di stacking */
    /* Estende la sezione hero per essere full-width usando tecnica sicura */
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

/* Assicura che il video hero non interferisca con altre sezioni */
.hero-section video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1 !important; /* Sopra al background ma sotto al contenuto */
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Assicura che le sezioni successive abbiano priorità di stacking */
.our-rooms-section {
    position: relative;
    z-index: 10;
    background: linear-gradient(135deg, var(--white) 0%, var(--warm-white) 100%);
    /* Aggiunge una shadow sottile per separare visualmente dalla hero */
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    margin-top: 0; /* Elimina completamente il margin top */
    padding-top: 50px; /* Padding uniforme con le altre sezioni */
    /* Assicura che copra completamente qualsiasi elemento sottostante */
    min-height: 100px;
}

/* Booking Reviews section con movimento parallax */
.booking-reviews-section {
    position: relative;
    will-change: transform;
    background-attachment: fixed;
    background-image: 
        linear-gradient(135deg, var(--tortora-light) 0%, var(--warm-white) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23D4C4A8" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23D4C4A8" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="%23D4C4A8" opacity="0.1"/><circle cx="10" cy="90" r="1" fill="%23D4C4A8" opacity="0.1"/><circle cx="90" cy="50" r="1" fill="%23D4C4A8" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
}

/* Discover section con effetto parallax sottile */
.discover-escape-section {
    position: relative;
    will-change: transform;
    background-image: 
        linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(250,249,246,0.95) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23E8E0D0" opacity="0.3"/></pattern></defs><rect width="200" height="200" fill="url(%23dots)"/></svg>');
    background-attachment: fixed;
}

/* Extra services section con background parallax */
.extra-services-section {
    position: relative;
    will-change: transform;
    background-attachment: fixed;
}

/* Nearby highlights con effetto parallax */
.nearby-highlights-section {
    position: relative;
    will-change: transform;
    background: 
        linear-gradient(135deg, var(--white) 0%, var(--warm-white) 100%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 20px,
            rgba(212, 196, 168, 0.03) 20px,
            rgba(212, 196, 168, 0.03) 21px
        );
}

/* Ottimizzazioni per performance parallax */
.parallax-element {
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    will-change: transform;
}

/* Fade-in animation per elementi che entrano nella viewport */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation per gruppi di elementi */
.stagger-animation .fade-in-element:nth-child(1) { transition-delay: 0.1s; }
.stagger-animation .fade-in-element:nth-child(2) { transition-delay: 0.2s; }
.stagger-animation .fade-in-element:nth-child(3) { transition-delay: 0.3s; }
.stagger-animation .fade-in-element:nth-child(4) { transition-delay: 0.4s; }
.stagger-animation .fade-in-element:nth-child(5) { transition-delay: 0.5s; }
.stagger-animation .fade-in-element:nth-child(6) { transition-delay: 0.6s; }

/* Effetto profondità per le carte */
.depth-effect {
    position: relative;
    transform-style: preserve-3d;
}

.depth-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.1) 0%, 
        rgba(255,255,255,0) 50%, 
        rgba(0,0,0,0.02) 100%);
    pointer-events: none;
    border-radius: inherit;
    transform: translateZ(1px);
}

/* Media queries per ottimizzare il parallax su dispositivi mobili */
@media (max-width: 768px) {
    /* Riduce l'effetto parallax su mobile per migliorare le performance */
    .hero-section,
    .booking-reviews-section,
    .discover-escape-section,
    .extra-services-section,
    .nearby-highlights-section {
        background-attachment: scroll !important;
    }
    
    /* Mantiene solo l'effetto fade-in su mobile */
    .parallax-section {
        will-change: auto;
        transform: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    /* Rispetta le preferenze di accessibilità per ridurre le animazioni */
    .parallax-section,
    .fade-in-element,
    .depth-effect {
        transform: none !important;
        transition: none;
        animation: none;
    }
    
    .hero-section {
        background-attachment: scroll !important;
    }
}

/* Miglioramenti per browser più vecchi */
@supports not (will-change: transform) {
    .parallax-section {
        transform: none;
    }
}

/* Ottimizzazione GPU per l'effetto parallax */
.gpu-accelerated {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}

/* Indicatore di scroll sottile */
.parallax-enabled::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--tortora-medium), var(--tortora-dark));
    transform-origin: left;
    transform: scaleX(0);
    z-index: 9999;
    transition: transform 0.1s ease-out;
}

/* Effetto glow sottile per elementi in focus durante parallax */
.parallax-focus {
    box-shadow: 
        0 0 20px rgba(212, 196, 168, 0.3),
        0 0 40px rgba(212, 196, 168, 0.1);
}

/* Aggiornamenti per il nuovo design del modal */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 30px 35px 25px;
    border-bottom: 3px solid var(--tortora-light);
    background: linear-gradient(135deg, var(--off-white) 0%, var(--tortora-light) 100%);
    border-radius: 24px 24px 0 0;
}

.modal-header h2 {
    margin: 0;
    flex: 1;
    color: #4A3B31;
    font-size: 2.2rem;
    font-weight: 700;
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

/* Enhanced styling for proper names in modal titles */
.modal-header h2 span {
    color: var(--tortora-accent);
    font-style: italic;
    font-weight: 600;
    font-size: 1.8rem;
}

.modal-capacity {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-left: 25px;
    align-items: flex-start;
}

.capacity-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--white) 0%, var(--warm-white) 100%);
    padding: 12px 16px;
    border-radius: 25px;
    font-size: 0.95rem;
    color: #4A3B31;
    font-weight: 600;
    border: 2px solid var(--tortora-medium);
    box-shadow: 0 3px 12px rgba(212, 196, 168, 0.2);
    transition: all 0.3s ease;
}

.capacity-item:hover {
    background: linear-gradient(135deg, var(--tortora-light) 0%, var(--tortora-medium) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 196, 168, 0.3);
}

.capacity-item i {
    color: var(--tortora-accent);
    font-size: 1.1rem;
}

.modal-section {
    margin-bottom: 40px;
    padding: 0 35px;
}

.modal-section:last-of-type {
    margin-bottom: 30px;
}

.modal-section h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #4A3B31;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--tortora-light);
}

.modal-section h3 i {
    color: var(--tortora-accent);
    font-size: 1.3rem;
    background: linear-gradient(135deg, var(--tortora-light) 0%, var(--tortora-medium) 100%);
    padding: 8px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(212, 196, 168, 0.2);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 5px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: linear-gradient(135deg, var(--white) 0%, var(--warm-white) 100%);
    border-radius: 16px;
    border: 2px solid var(--tortora-medium);
    border-left: 5px solid var(--tortora-accent);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 12px rgba(212, 196, 168, 0.15);
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(212, 196, 168, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-item:hover::before {
    opacity: 1;
}

.service-item:hover {
    background: linear-gradient(135deg, var(--warm-white) 0%, var(--tortora-light) 100%);
    transform: translateY(-3px) translateX(5px);
    border-color: var(--tortora-accent);
    box-shadow: 0 8px 25px rgba(212, 196, 168, 0.25);
}

.service-item i {
    color: var(--tortora-accent);
    font-size: 1.2rem;
    min-width: 20px;
    background: linear-gradient(135deg, var(--tortora-light) 0%, var(--tortora-medium) 100%);
    padding: 8px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(212, 196, 168, 0.2);
}

.service-item span {
    font-size: 1rem;
    color: #4A3B31;
    font-weight: 500;
    flex: 1;
}

.modal-actions {
    display: flex;
    gap: 20px;
    margin: 40px 35px 35px;
    padding-top: 30px;
    border-top: 3px solid var(--tortora-light);
}

.modal-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 25px;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.modal-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.modal-action-btn:hover::before {
    left: 100%;
}

.modal-action-btn.btn-primary {
    background: linear-gradient(135deg, var(--tortora-accent), var(--tortora-dark));
    color: #4A3B31;
    border: 2px solid var(--tortora-medium);
    box-shadow: 0 6px 20px rgba(212, 196, 168, 0.3);
}

.modal-action-btn.btn-primary:hover {
    background: linear-gradient(135deg, var(--tortora-dark), var(--tortora-accent));
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(212, 196, 168, 0.4);
    border-color: var(--tortora-accent);
}

.modal-action-btn.btn-secondary {
    background: linear-gradient(135deg, var(--white) 0%, var(--warm-white) 100%);
    color: var(--tortora-accent);
    border: 3px solid var(--tortora-accent);
    box-shadow: 0 4px 15px rgba(212, 196, 168, 0.2);
}

.modal-action-btn.btn-secondary:hover {
    background: linear-gradient(135deg, var(--tortora-accent), var(--tortora-dark));
    color: #4A3B31;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(212, 196, 168, 0.4);
}

.modal-action-btn i {
    font-size: 1.2rem;
}

/* Impedisce lo scroll quando il modal è aperto */
body.modal-open {
    overflow: hidden;
}

/* Responsive per il modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 2% auto;
        border-radius: 20px;
    }
    
    .modal-header {
        flex-direction: column;
        gap: 15px;
        padding: 25px 20px 20px;
    }
    
    .modal-header h2 {
        font-size: 1.8rem;
    }
    
    .modal-capacity {
        margin-left: 0;
        justify-content: center;
    }
    
    .modal-section {
        padding: 0 20px;
        margin-bottom: 30px;
    }
    
    .modal-section h3 {
        font-size: 1.3rem;
    }
    
    .modal-actions {
        flex-direction: column;
        margin: 30px 20px 25px;
        gap: 15px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .service-item {
        padding: 15px 18px;
    }
}

/* Desktop enhancements for better visual hierarchy */
@media (min-width: 1024px) {
    .modal-content {
        width: 80%;
        max-width: 1200px;
    }
    
    .modal-header {
        padding: 40px 45px 30px;
    }
    
    .modal-header h2 {
        font-size: 2.5rem;
    }
    
    .modal-header h2 span {
        font-size: 2rem;
    }
    
    .modal-section {
        padding: 0 45px;
        margin-bottom: 45px;
    }
    
    .modal-section h3 {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 22px;
    }
    
    .service-item {
        padding: 20px 24px;
    }
    
    .modal-actions {
        margin: 45px 45px 40px;
        gap: 25px;
    }
    
    .modal-action-btn {
        padding: 20px 30px;
        font-size: 1.15rem;
    }
}

/* Extra large screens */
@media (min-width: 1440px) {
    .modal-content {
        max-width: 1300px;
    }
    
    .modal-header {
        padding: 45px 50px 35px;
    }
    
    .modal-section {
        padding: 0 50px;
    }
    
    .modal-actions {
        margin: 50px 50px 45px;
    }
}

/* WhatsApp Modal - Design elegante e coerente con il sito */
.whatsapp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-modal.show {
    opacity: 1;
    visibility: visible;
}

.whatsapp-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 74, 74, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.whatsapp-modal-content {
    position: relative;
    background: linear-gradient(135deg, var(--white) 0%, var(--warm-white) 100%);
    border-radius: 24px;
    box-shadow: 
        0 25px 80px rgba(212, 196, 168, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid var(--tortora-medium);
    max-width: 460px;
    width: 92%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.85);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-modal.show .whatsapp-modal-content {
    transform: scale(1);
    opacity: 1;
}

.whatsapp-modal-header {
    background: linear-gradient(135deg, var(--tortora-accent) 0%, var(--tortora-dark) 100%);
    color: #4A3B31;
    padding: 28px 30px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    border-bottom: 1px solid var(--tortora-medium);
    box-shadow: 0 2px 8px rgba(212, 196, 168, 0.1);
}

.whatsapp-header-icon {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #25D366;
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.15);
}

.whatsapp-modal-header h3 {
    margin: 0;
    flex: 1;
    font-size: 24px;
    font-weight: 600;
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    color: #4A3B31;
    letter-spacing: -0.5px;
}

.whatsapp-modal-close {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #4A3B31;
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(74, 59, 49, 0.1);
}

.whatsapp-modal-close:hover {
    background: rgba(255, 255, 255, 0.45);
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(74, 59, 49, 0.2);
}

.whatsapp-modal-body {
    padding: 32px 30px;
    background: linear-gradient(135deg, var(--off-white) 0%, var(--tortora-light) 100%);
}

.whatsapp-modal-subtitle {
    text-align: center;
    color: #666;
    margin: 0 0 28px 0;
    font-size: 15px;
    font-style: italic;
    opacity: 0.9;
}

.whatsapp-contacts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.whatsapp-contact-card {
    display: flex;
    align-items: center;
    padding: 22px 20px;
    border: 2px solid var(--tortora-medium);
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, var(--white) 0%, var(--warm-white) 100%);
    box-shadow: 
        0 4px 12px rgba(212, 196, 168, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.whatsapp-contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(212, 196, 168, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.whatsapp-contact-card:hover::before {
    opacity: 1;
}

.whatsapp-contact-card:hover {
    border-color: var(--tortora-accent);
    background: linear-gradient(135deg, var(--warm-white) 0%, var(--tortora-light) 100%);
    transform: translateY(-4px);
    box-shadow: 
        0 12px 35px rgba(212, 196, 168, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.6);
}

.contact-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tortora-light) 0%, var(--tortora-medium) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-right: 20px;
    flex-shrink: 0;
    border: 2px solid var(--tortora-medium);
    box-shadow: 0 4px 12px rgba(212, 196, 168, 0.2);
}

.contact-details {
    flex: 1;
}

.contact-name {
    font-weight: 600;
    font-size: 19px;
    color: #4A3B31;
    margin-bottom: 6px;
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    letter-spacing: -0.3px;
}

.contact-phone {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 500;
}

.contact-language {
    font-size: 13px;
    color: var(--tortora-accent);
    font-weight: 500;
    font-style: italic;
}

.contact-action {
    color: #25D366;
    font-size: 30px;
    margin-left: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(37, 211, 102, 0.12);
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.15);
}

.whatsapp-contact-card:hover .contact-action {
    transform: scale(1.15) rotate(5deg);
    background: rgba(37, 211, 102, 0.2);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.25);
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .whatsapp-modal-content {
        max-width: 95%;
        margin: 10px;
        border-radius: 20px;
        max-height: 85vh; /* Ridotto per lasciare spazio alla keyboard */
    }
    
    .whatsapp-modal-header {
        padding: 20px 18px;
        flex-wrap: wrap;
    }
    
    .whatsapp-header-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .whatsapp-modal-header h3 {
        font-size: 18px;
        flex: 1;
        min-width: 0;
        order: 1;
    }
    
    .whatsapp-modal-close {
        width: 36px;
        height: 36px;
        font-size: 16px;
        order: 2;
    }
    
    .whatsapp-modal-body {
        padding: 20px 18px;
        max-height: 60vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .whatsapp-modal-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .whatsapp-contacts {
        gap: 16px;
    }
    
    .whatsapp-contact-card {
        padding: 18px 16px;
        border-radius: 16px;
        flex-direction: row;
        align-items: center;
        min-height: 80px; /* Touch-friendly */
    }
    
    .contact-avatar {
        width: 50px;
        height: 50px;
        font-size: 22px;
        margin-right: 16px;
        flex-shrink: 0;
    }
    
    .contact-details {
        flex: 1;
        min-width: 0;
    }
    
    .contact-name {
        font-size: 16px;
        margin-bottom: 4px;
        line-height: 1.3;
    }
    
    .contact-phone {
        font-size: 13px;
        margin-bottom: 2px;
    }
    
    .contact-language {
        font-size: 12px;
    }
    
    .contact-action {
        width: 44px;
        height: 44px;
        font-size: 24px;
        margin-left: 12px;
        flex-shrink: 0;
    }
    
    /* Migliora l'area toccabile */
    .whatsapp-contact-card {
        position: relative;
    }
    
    .whatsapp-contact-card::after {
        content: '';
        position: absolute;
        top: -5px;
        left: -5px;
        right: -5px;
        bottom: -5px;
        z-index: -1;
    }
}

/* Lista dei numeri di telefono nel form contatti */
.contact-phones {
  list-style: none;
  padding: 0;
  margin: 0 0 1em 0;
}
.contact-phones li {
  margin-bottom: 0.2em;
  font-size: 1em;
  display: flex;
  align-items: center;
  gap: 0.4em;
}
.contact-phones .flag {
  font-size: 1.1em;
}

/* Booking.com Floating Widget - Enhanced for Hostinger */
.booking-widget {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    z-index: 999999 !important;
    opacity: 0;
    transform: scale(0.3) translate(50px, 50px);
    transform-origin: bottom right;
    visibility: hidden !important;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block !important;
    max-width: none !important;
    max-height: none !important;
    width: auto !important;
    height: auto !important;
}

/* Force positioning on all environments */
#bookingWidget {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    z-index: 999999 !important;
}

.booking-widget.booking-appear {
    opacity: 1 !important;
    transform: scale(1) translate(0, 0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.booking-widget.booking-disappear {
    opacity: 0;
    transform: scale(0.3) translate(50px, 50px);
    visibility: visible;
    pointer-events: none;
}

@keyframes bookingAppear {
    0% {
        opacity: 0;
        transform: scale(0.3) translate(50px, 50px);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1) translate(0, 0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translate(0, 0);
    }
}

@keyframes bookingDisappear {
    0% {
        opacity: 1;
        transform: scale(1) translate(0, 0);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8) translate(20px, 20px);
    }
    100% {
        opacity: 0;
        transform: scale(0.3) translate(50px, 50px);
    }
}

.booking-close-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10000;
    box-shadow: 0 3px 10px rgba(255, 71, 87, 0.4);
    animation: pulseClose 2s infinite;
}

@keyframes pulseClose {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.booking-close-btn:hover {
    background: linear-gradient(135deg, #ff3838, #ff2e2e);
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.6);
    animation: none;
}

.booking-close-btn:active {
    transform: scale(0.9) rotate(90deg);
}

.booking-button {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 16px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    max-width: 170px;
    min-width: 140px;
    font-family: Arial, sans-serif;
    border: 2px solid #e9ecef;
    overflow: hidden;
}

.booking-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 53, 128, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.booking-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
    border-color: #003580;
}

.booking-button:hover::before {
    opacity: 1;
    animation: shimmer 0.6s ease-in-out;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.rating-badge {
    background-color: #003580;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 12px;
    display: inline-block;
}

.booking-logo {
    font-size: 22px;
    font-weight: bold;
    color: #003580;
    margin-bottom: 8px;
    line-height: 1.2;
}

.reviews-text {
    color: #666;
    font-size: 12px;
    text-decoration: underline;
    margin: 0;
    line-height: 1.3;
    padding: 0 4px;
}

/* Responsive behavior for booking widget */
@media (max-width: 768px) {
    .booking-widget {
        bottom: 15px !important; /* Più vicino al bordo */
        right: 15px !important;
        transform-origin: bottom right;
        opacity: 0.9 !important; /* Leggermente trasparente per essere meno invasivo */
    }
    
    .booking-widget.booking-appear {
        opacity: 0.9 !important; /* Mantiene trasparenza anche quando appare */
    }
    
    .booking-close-btn {
        top: -6px;
        right: -6px;
        width: 28px; /* Leggermente più grande per touch */
        height: 28px;
        font-size: 13px;
        background: linear-gradient(135deg, #ff4757, #ff3742);
        box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
    }
    
    .booking-button {
        max-width: 150px; /* Ridotto per essere meno invasivo */
        min-width: 120px;
        padding: 12px;
        border-radius: 16px;
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
        border: 1px solid #e9ecef;
    }
    
    .booking-button:hover {
        transform: translateY(-2px); /* Ridotto movimento hover */
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
    }
    
    .rating-badge {
        font-size: 16px;
        padding: 4px 8px;
        margin-bottom: 8px;
        border-radius: 8px;
    }
    
    .booking-logo {
        font-size: 16px;
        margin-bottom: 6px;
        line-height: 1.1;
    }
    
    .reviews-text {
        font-size: 10px;
        line-height: 1.3;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .booking-widget {
        bottom: 12px !important;
        right: 12px !important;
        opacity: 0.85 !important; /* Ancora più trasparente su schermi piccoli */
    }
    
    .booking-close-btn {
        top: -5px;
        right: -5px;
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
    
    .booking-button {
        max-width: 130px; /* Ancora più compatto */
        min-width: 110px;
        padding: 10px;
        border-radius: 14px;
    }
    
    .rating-badge {
        font-size: 14px;
        padding: 3px 6px;
        margin-bottom: 6px;
    }
    
    .booking-logo {
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    .reviews-text {
        font-size: 9px;
        line-height: 1.2;
    }
}

/* MOBILE PERFORMANCE OPTIMIZATIONS */
@media (max-width: 768px) {
    /* Riduce animazioni complesse su mobile per migliori performance */
    .parallax-section,
    .fade-in-element,
    .depth-effect {
        transform: none !important;
        will-change: auto;
        animation: none !important;
    }
    
    /* Semplifica le gradient background su mobile */
    .hero-section,
    .booking-reviews-section,
    .discover-escape-section {
        background-attachment: scroll !important;
    }
    
    /* Ottimizza le transizioni - più veloci e leggere */
    .room-card,
    .attraction-card,
    .quality-card {
        transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    }
    
    /* Riduce gli effetti hover pesanti su mobile */
    .room-card:hover,
    .attraction-card:hover,
    .quality-card:hover {
        transform: translateY(-2px) !important; /* Ridotto da -5px */
        box-shadow: 0 4px 12px rgba(212, 196, 168, 0.2) !important; /* Ridotto */
    }
    
    /* Disabilita effetti parallax pesanti */
    .rooms-grid:hover > .room-card:not(:hover),
    .swiper-container:hover .swiper-slide:not(:hover) .room-card {
        opacity: 1 !important; /* Rimuove effetto dimming */
    }
    
    /* Touch scrolling ottimizzato */
    .modal-content,
    .swiper-container {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Previene zoom accidentale su form inputs */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    select,
    textarea {
        font-size: 16px !important;
    }
    
    /* Ottimizza le animazioni del booking widget */
    .booking-widget {
        transition: opacity 0.3s ease, transform 0.3s ease !important;
    }
    
    /* Rimuove ombre complesse sui bottoni per performance */
    .btn:hover,
    .modal-action-btn:hover,
    .whatsapp-btn:hover,
    .email-btn:hover {
        box-shadow: 0 2px 8px rgba(212, 196, 168, 0.3) !important;
    }
}

/* Stili per il dropdown con nomi specifici delle camere */
#modal-camera {
    background-color: #fff;
    border: 2px solid var(--color-tortora);
    border-radius: 12px;
    padding: 15px 20px;
    font-size: 16px;
    color: var(--color-text);
    transition: all 0.3s ease;
    min-height: 56px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238B7355' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(139, 115, 85, 0.1);
}

#modal-camera:focus {
    outline: none;
    border-color: var(--color-tortora-dark);
    box-shadow: 0 0 0 4px rgba(139, 115, 85, 0.15), 0 4px 12px rgba(139, 115, 85, 0.2);
    transform: translateY(-1px);
}

#modal-camera:hover {
    border-color: var(--color-tortora-dark);
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.15);
}

#modal-camera option {
    padding: 12px 15px;
    font-size: 15px;
    line-height: 1.5;
    background-color: #fff;
    color: var(--color-text);
    border: none;
}

#modal-camera option:hover,
#modal-camera option:checked {
    background-color: rgba(212, 196, 168, 0.1);
    color: var(--color-tortora-dark);
}

/* Emoji e nomi specifici nel dropdown */
#modal-camera option span {
    color: var(--color-tortora-dark) !important;
    font-weight: 600 !important;
    font-style: italic;
}

/* Distingue visivamente appartamenti e camere */
#modal-camera option.apartment-option {
    background-color: rgba(139, 115, 85, 0.05);
    border-left: 4px solid var(--color-tortora);
}

#modal-camera option.room-option {
    background-color: rgba(212, 196, 168, 0.05);
    border-left: 4px solid var(--color-tortora-light);
}

#modal-camera option.apartment-option:hover,
#modal-camera option.apartment-option:checked {
    background-color: rgba(139, 115, 85, 0.1);
}

#modal-camera option.room-option:hover,
#modal-camera option.room-option:checked {
    background-color: rgba(212, 196, 168, 0.15);
}

/* Fix logo size on all devices - Important overrides */
@media (max-width: 768px) {
    .header-logo-image {
        width: 20px !important;
        height: 20px !important;
        max-width: 20px !important;
        max-height: 20px !important;
    }
}

@media (max-width: 480px) {
    .header-logo-image {
        width: 18px !important;
        height: 18px !important;
        max-width: 18px !important;
        max-height: 18px !important;
    }
}
