/* Stile generale */
:root {
    --primary-color: #e9b84e; /* Giallo oro dal logo */
    --secondary-color: #8c98b3; /* Grigio azzurro dal logo */
    --dark-color: #3a4454; /* Blu scuro dal logo */
    --light-color: #f5f5f5;
    --text-color: #333;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--dark-color);
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--dark-color);
}

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

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--dark-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

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

section {
    padding: 80px 0;
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
}

.logo-container img {
    height: 60px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 700;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/esterno_bb.jpeg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 90px;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: white;
}

.hero .tagline {
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-style: italic;
}

/* Intro Section */
.intro {
    text-align: center;
    background-color: white;
}

.intro h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.intro p {
    max-width: 800px;
    margin: 0 auto 20px;
    font-size: 1.1rem;
}

/* Features Section */
.features {
    background-color: var(--light-color);
}

.features .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.feature {
    flex: 0 0 calc(33.333% - 30px);
    text-align: center;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Rooms Preview Section */
.rooms-preview {
    background-color: white;
}

.rooms-preview h2 {
    text-align: center;
    margin-bottom: 50px;
}

.rooms-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.room-card {
    flex: 0 0 calc(50% - 15px);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.room-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

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

.room-info {
    padding: 20px;
}

.room-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.room-info p {
    margin-bottom: 20px;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--light-color);
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 50px;
}

.testimonials-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.testimonial {
    flex: 0 0 calc(33.333% - 20px);
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.rating {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.author {
    font-weight: 700;
    margin-top: 15px;
}

/* Location Section */
.location {
    background-color: white;
}

.location h2 {
    text-align: center;
    margin-bottom: 50px;
}

.location-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.location-info {
    flex: 0 0 calc(50% - 15px);
}

.location-info p {
    margin-bottom: 20px;
}

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

.location-info ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.location-info ul li i {
    color: var(--primary-color);
    margin-right: 10px;
}

.location-map {
    flex: 0 0 calc(50% - 15px);
}

.location-map img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

/* CTA Section */
.cta {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.cta h2 {
    color: white;
}

.cta .btn {
    background-color: white;
    color: var(--primary-color);
    margin-top: 20px;
}

.cta .btn:hover {
    background-color: var(--dark-color);
    color: white;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-info {
    flex: 0 0 calc(33.333% - 30px);
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
}

.footer-links {
    flex: 0 0 calc(33.333% - 30px);
}

.footer-links h4, .footer-social h4 {
    color: white;
    margin-bottom: 20px;
}

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

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

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-social {
    flex: 0 0 calc(33.333% - 30px);
}

.social-icons {
    display: flex;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: white;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
}

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

/* Camere Page */
.room-detail {
    padding: 50px 0;
    background-color: white;
}

.room-detail-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.room-detail-images {
    flex: 0 0 calc(50% - 15px);
}

.room-detail-info {
    flex: 0 0 calc(50% - 15px);
}

.room-detail-info h2 {
    margin-bottom: 20px;
}

.room-detail-info p {
    margin-bottom: 20px;
}

.room-features {
    margin-top: 30px;
}

.room-features h3 {
    margin-bottom: 15px;
}

.room-features ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.room-features ul li {
    flex: 0 0 50%;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.room-features ul li i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Servizi Page */
.services {
    background-color: white;
}

.services h2 {
    text-align: center;
    margin-bottom: 50px;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.service-card {
    flex: 0 0 calc(33.333% - 20px);
    text-align: center;
    padding: 30px;
    background-color: var(--light-color);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Contatti Page */
.contact {
    background-color: white;
}

.contact h2 {
    text-align: center;
    margin-bottom: 50px;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.contact-info {
    flex: 0 0 calc(40% - 15px);
}

.contact-info p {
    margin-bottom: 20px;
}

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

.contact-info ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-info ul li i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

.contact-form {
    flex: 0 0 calc(60% - 15px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
}

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

/* Page Header */
.page-header {
    height: 40vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/esterno_bb.jpeg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 90px;
}

.page-header h1 {
    font-size: 3rem;
    color: white;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .feature {
        flex: 0 0 calc(50% - 15px);
        margin-bottom: 30px;
    }
    
    .testimonial {
        flex: 0 0 calc(50% - 15px);
        margin-bottom: 30px;
    }
    
    .service-card {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }
    
    nav {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 90px);
        background-color: white;
        transition: all 0.3s ease;
        overflow-y: auto;
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        padding: 20px;
    }
    
    nav ul li {
        margin: 0 0 20px 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero .tagline {
        font-size: 1.5rem;
    }
    
    .feature, 
    .room-card, 
    .testimonial, 
    .location-info, 
    .location-map, 
    .footer-info, 
    .footer-links, 
    .footer-social, 
    .room-detail-images, 
    .room-detail-info, 
    .service-card, 
    .contact-info, 
    .contact-form {
        flex: 0 0 100%;
        margin-bottom: 30px;
    }
    
    .room-features ul li {
        flex: 0 0 100%;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .tagline {
        font-size: 1.2rem;
    }
    
    section {
        padding: 60px 0;
    }
}
