/* Reset e stili base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header e Navigation */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 0;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 300px;
}

.header-logo {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 80px;
}

.logo-text {
    font-size: 1.2rem;
    color: #333;
    font-weight: bold;
}

.book-now-button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-left: 20px;
    transition: background-color 0.3s;
}

.book-now-button:hover {
    background-color: #0056b3;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #1a237e;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #1a237e;
    background: none;
    border: none;
    padding: 0;
}

.language-selector a {
    text-decoration: none;
    color: #666;
    margin-left: 1rem;
}

.language-selector a.active {
    color: #1a237e;
    font-weight: bold;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding-top: 60px;
    overflow: hidden;
}

#hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
    z-index: 0;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: #fff;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.hero-content h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(to right, transparent, #fff, transparent);
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero-content h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 300;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #1a237e;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #0d47a1;
}

/* Strutture */
.structures {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.structures h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #1a237e;
}

.structure-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.structure-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.structure-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

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

.structure-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.structure-info h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.structure-info p {
    margin: 0 0 20px 0;
    color: #666;
    flex-grow: 1;
}

.structure-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.structure-features span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #555;
    font-size: 0.9rem;
}

.structure-features i {
    color: #007bff;
}

.structure-card .button {
    margin: 1rem;
    display: inline-block;
}

.button-container {
    display: flex;
    justify-content: center;
    margin-top: auto;
}

/* Room Grid Layout */
.room-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    padding: 0 0 32px 0;
    margin-left: auto;
}

.room-card {
    margin: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.room-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.room-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.room-info h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.room-info p {
    margin: 0 0 15px 0;
    color: #666;
    flex-grow: 1;
}

.room-info .button {
    align-self: center;
    margin-top: auto;
}

/* Servizi */
.services {
    background-color: #f5f5f5;
    padding: 5rem 5%;
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #1a237e;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-item {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.service-item i {
    font-size: 2.5rem;
    color: #1a237e;
    margin-bottom: 1rem;
}

/* Info */
.info {
    padding: 8rem 5% 5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.info h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #1a237e;
}

.info-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.info-box {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.info-box h3 {
    color: #1a237e;
    margin-bottom: 1rem;
}

.info-box ul {
    list-style: none;
}

.info-box ul li {
    margin-bottom: 0.5rem;
}

.info-box a {
    color: #1a237e;
    text-decoration: none;
}

/* Contatti */
.contacts {
    background-color: #f5f5f5;
    padding: 5rem 5%;
}

.contacts h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #1a237e;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #1a237e;
}

.contact-item a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #1a237e;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    text-decoration: none;
    color: #1a237e;
}

.social-links a:hover {
    color: #0d47a1;
}

/* Footer */
footer {
    background-color: #e6f2ff !important;
    color: #fff;
    padding: 3rem 5% 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section .social-links a {
    color: #fff;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .logo {
        max-width: 120px;
    }
    .header-logo {
        max-height: 40px;
    }
    .navbar {
        flex-wrap: wrap;
        padding: 0.5rem 1rem;
        gap: 0.5rem;
        align-items: flex-start;
    }
    .menu-toggle {
        font-size: 2rem;
        margin-left: 10px;
    }
    .book-now-button {
        font-size: 1rem;
        padding: 8px 12px;
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
        max-width: 140px;
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        flex-direction: column;
        gap: 1rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .book-now-button {
        margin-left: 1rem;
    }
    
    /* Hero Section */
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content h3 {
        font-size: 1.5rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
    }
    
    /* Structure Grid */
    .structures-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Room Grid */
    .room-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* Gallery */
    .gallery {
        width: 100%;
    }
    
    .gallery-image {
        width: 100%;
        height: auto;
    }
    
    /* Contact Section */
    .contact-container {
        padding: 2rem 1rem;
    }
    
    .contact-item {
        margin-bottom: 1rem;
    }
    
    .booking-links {
        margin-bottom: 2rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Footer */
    .footer-section {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .footer-section h3 {
        margin-bottom: 1rem;
    }
    
    .footer-bottom {
        padding: 1rem;
    }
    
    /* Additional mobile improvements */
    .modal-content {
        width: 90%;
        max-width: 400px;
        margin: 20px auto;
    }
    
    .gallery-content {
        width: 90%;
        max-width: 400px;
        margin: 20px auto;
    }
    
    /* Touch-friendly buttons */
    button, .button {
        min-width: 80px;
        padding: 0.8rem 1.2rem;
    }
    
    /* Better spacing for mobile */
    .room-info {
        padding: 1rem;
    }
    
    .feature-item {
        padding: 1rem;
    }
    
    /* Touch-friendly navigation */
    .nav-links a {
        padding: 0.8rem 0;
    }
    
    /* Better spacing for contact items */
    .contact-item {
        padding: 0.8rem 0;
    }

    /* Improved touch targets */
    .close {
        width: 35px;
        height: 35px;
        font-size: 25px;
        line-height: 35px;
        text-align: center;
        cursor: pointer;
    }

    /* Better spacing for room cards */
    .room-card {
        margin-bottom: 1.5rem;
    }

    /* Improved modal visibility */
    .structure-details-modal {
        backdrop-filter: blur(5px);
    }

    /* Better spacing for feature items */
    .feature-item i {
        min-width: 24px;
        text-align: center;
    }

    /* Improved touch area for buttons */
    .booking-platform-link {
        padding: 0.8rem;
        min-height: 40px;
    }
}

/* Additional mobile improvements for smaller screens */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-content h3 {
        font-size: 1.2rem;
    }
    
    .room-info h4 {
        font-size: 1.1rem;
    }
    
    /* Even smaller touch targets */
    button, .button {
        min-width: 60px;
        padding: 0.6rem 1rem;
    }
    
    .close {
        width: 30px;
        height: 30px;
        font-size: 20px;
        line-height: 30px;
    }
}
}

@media (min-width: 769px) {
    .header-logo {
        max-width: 200px;
    }
    .hero {
        padding-top: 80px;
    }
}

/* Animazioni */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content, .structure-card, .service-item {
    animation: fadeIn 1s ease-out;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow-y: auto;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 2rem;
    width: 80%;
    max-width: 1200px;
    border-radius: 10px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 5rem;
}

.modal-content h2 {
    color: #1a237e;
    margin-bottom: 1rem;
    text-align: center;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: #333;
}

.close:hover {
    color: #000;
}

.modal-gallery {
    margin: 0;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.slide img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
}

.modal-details {
    margin-top: 2rem;
}

.modal-details h3 {
    color: #333;
    margin-bottom: 1rem;
}

.modal-details ul {
    list-style-type: none;
    padding: 0;
}

.modal-details li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.modal-details li:last-child {
    border-bottom: none;
}

/* Slideshow Styles */
.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: auto;
}

.slide {
    display: none;
    width: 100%;
}

.slide.active {
    display: block;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    -webkit-user-select: none;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.dots-container {
    text-align: center;
    padding: 10px 0;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active, .dot:hover {
    background-color: #1a237e;
}

/* Features Grid Styles */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 1rem;
    padding-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.feature-item i {
    font-size: 1.5rem;
    color: #1a237e;
    min-width: 30px;
    text-align: center;
}

.feature-item span {
    color: #333;
    font-size: 1rem;
    line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .modal-content {
        width: 90%;
        padding: 1.5rem;
        margin-bottom: 4rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .modal-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        margin-bottom: 6rem;
    }
    .modal-gallery {
        grid-column: 1;
    }
    .modal-details {
        grid-column: 2;
    }
    .features-grid {
        height: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding-bottom: 3rem;
    }
}

/* Locations Styles */
.locations-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.location-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.location-item h4 {
    color: #1a237e;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.location-item p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
}

.location-item i {
    color: #1a237e;
}

.map {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Useful Links Section */
.useful-links-section {
    width: 100%;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.links-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.link-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.link-item i {
    font-size: 1.5rem;
    color: #1a237e;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .locations-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .map {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .locations-container {
        grid-template-columns: 1fr;
    }
    .map {
        height: 300px;
    }
    .links-container {
        grid-template-columns: 1fr;
    }
    .info-container {
        gap: 3rem;
    }
}

@media (min-width: 1400px) {
    .map {
        height: 450px;
    }
}

/* Booking Section Styles */
.booking-card {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.booking-card h4 {
    color: #1a237e;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.booking-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.direct-booking-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.direct-booking-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #1a237e;
    color: white;
    padding: 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.direct-booking-button:hover {
    background-color: #0d47a1;
}

.booking-platforms {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.booking-platforms p {
    margin-bottom: 1rem;
    color: #666;
}

.platform-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.booking-platform-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #f8f9fa;
    color: #333;
    padding: 0.8rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid #ddd;
    transition: all 0.3s;
}

.booking-platform-link:hover {
    background-color: #e9ecef;
}

.booking-platform-link i {
    color: #003580;
}

@media (max-width: 768px) {
    .booking-card {
        padding: 1.5rem;
    }
    .direct-booking-buttons {
        gap: 0.8rem;
    }
    .platform-links {
        gap: 0.6rem;
    }
}

/* Room Selection Styles */
.rooms {
    padding: 4rem 2rem;
    background-color: #f8f9fa;
}

.structure-rooms {
    margin-bottom: 3rem;
}

.structure-rooms h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.room-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.room-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.room-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.room-info {
    padding: 1.5rem;
}

.room-info h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.2rem;
}

.room-info p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.room-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.room-features span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #555;
    font-size: 0.9rem;
}

.room-features i {
    color: #007bff;
}

.locations-section {
    padding-top: 2rem;
}

/* Structure Details Modal */
.structure-details-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    border-radius: 8px;
    position: relative;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.structure-details-modal h2 {
    text-align: center;
    color: #1a237e;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

/* Features Section */
.features-section {
    margin: 0.5rem 0 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.features-section h3 {
    color: #333;
    margin-bottom: 0.5rem;
    text-align: center;
    font-size: 1.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0.5rem;
}

/* Rooms Section */
.rooms-section {
    margin-top: 2rem;
}

.rooms-section h3 {
    text-align: center;
    color: #333;
    margin-bottom: 1.5rem;
}

.room-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.room-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.room-card:hover {
    transform: translateY(-5px);
}

.room-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.room-card h4 {
    padding: 1rem;
    margin: 0;
    color: #1a237e;
}

.room-card p {
    padding: 0 1rem;
    color: #666;
    margin-bottom: 1rem;
}

.room-card .button {
    margin: 0 1rem 1rem;
    width: calc(100% - 2rem);
}

@media (max-width: 768px) {
    .structure-details-modal .modal-content {
        margin: 1rem;
        padding: 1rem;
        width: calc(100% - 2rem);
    }
    .features-section {
        padding: 1rem;
    }
    .room-cards {
        gap: 1rem;
    }
    .structure-features,
    .room-features {
        gap: 0.5rem;
    }
    .structure-features span,
    .room-features span {
        font-size: 0.8rem;
    }
}

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

.gallery-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    display: none;
}

.gallery-image:first-child {
    display: block;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 16px;
    user-select: none;
}

.prev {
    left: 0;
}

.next {
    right: 0;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Button Styles */
.button {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.button:hover {
    background: #0056b3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .room-grid {
        grid-template-columns: 1fr;
    }
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

.structure-details-modal .modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.structure-details-modal h2 {
    text-align: center;
    width: 100%;
}

.features-section {
    align-items: center;
    text-align: center;
    width: 100%;
}

.features-grid {
    justify-content: center;
}

.room-grid {
    justify-content: center;
    width: 100%;
}

.room-card {
    margin-left: auto;
    margin-right: auto;
}

/* Logo background scorrevole per info e contatti */
.logo-bg {
    position: relative;
    background: url('img/logo.png') center 120px no-repeat fixed;
    background-size: 350px auto;
    /* Regola la posizione verticale se serve */
}
.logo-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.7); /* overlay per leggibilità */
    z-index: 0;
    pointer-events: none;
}
.logo-bg > * {
    position: relative;
    z-index: 1;
} 