/* B&B VILLA TEIS */

/* =========================================
   1. VARIABILI E RESET
   ========================================= */
:root {
    --marrone: #633b1e;
    --bronzo: #a67c52;
    --bianco: #ffffff;
    --nero-overlay: rgba(0, 0, 0, 0.45);
    --grigio-bg: #f9f9f9;
    --testo-scuro: #333333;
    --testo-light: #666666;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--testo-scuro);
    line-height: 1.7;
    background-color: var(--bianco);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* =========================================
   2. TOPBAR E NAVIGAZIONE
   ========================================= */
.nav-topbar {
    background-color: var(--marrone);
    color: var(--bianco);
    padding: 10px 0;
    font-size: 0.85rem;
}

.topbar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left a {
    color: var(--bianco);
    text-decoration: none;
    font-weight: 400;
}

.topbar-left i {
    margin-right: 8px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switcher a {
    color: var(--bianco);
    text-decoration: none;
    opacity: 0.7;
}

.lang-switcher .active {
    font-weight: 600;
    color: var(--bronzo);
}

.social-top a {
    color: var(--bianco);
    margin-left: 12px;
    font-size: 1rem;
    transition: color 0.3s;
}

.social-top a:hover {
    color: var(--bronzo);
}

/* MAIN HEADER */
.main-header {
    background-color: var(--bianco);
    padding: 15px 0;
    border-bottom: 1px solid #eeeeee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px; /* Regola in base al tuo SVG */
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--testo-scuro);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--bronzo);
}

/* =========================================
   3. HERO SECTION (VIDEO)
   ========================================= */
.hero-video {
    position: relative;
    height: 85vh;
    min-height: 550px;
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    background-color: var(--nero-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bianco);
    text-align: center;
}

.hero-overlay h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-overlay p {
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto 10px;
}

/* =========================================
   4. SEZIONE SUITE PREVIEW
   ========================================= */
.suites-preview {
    padding: 100px 0;
    background-color: var(--grigio-bg);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    color: var(--marrone);
    margin-bottom: 60px;
}

.suites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.suite-card {
    background: var(--bianco);
    text-decoration: none;
    color: inherit;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
}

.suite-card:hover {
    transform: translateY(-10px);
}

.suite-img img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.suite-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin: 25px 20px 10px;
    color: var(--marrone);
}

.suite-card p {
    padding: 0 20px;
    color: var(--testo-light);
    font-size: 0.95rem;
    flex-grow: 1;
}

.suite-link {
    display: block;
    padding: 20px;
    color: var(--bronzo);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* =========================================
   5. SEZIONE TESTI SEO
   ========================================= */
.home-content {
    padding: 100px 0;
}

.seo-text {
    max-width: 900px;
    margin: 0 auto;
}

.seo-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--marrone);
    margin-bottom: 30px;
}

.seo-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--bronzo);
    margin: 40px 0 20px;
}

.seo-text p {
    margin-bottom: 25px;
    color: var(--testo-light);
}

.cta-direct {
    margin-top: 50px;
    padding: 30px;
    background-color: var(--grigio-bg);
    border-left: 5px solid var(--bronzo);
    font-weight: 600;
    color: var(--marrone);
    font-style: italic;
}

/* =========================================
   6. FOOTER (STILE BYTE)
   ========================================= */
.main-footer {
    background-color: var(--marrone);
    color: var(--bianco);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 50px;
    padding-bottom: 60px;
}

.f-logo {
    height: 50px;
    width: auto;
    margin-bottom: 25px;
    filter: brightness(0) invert(1);
}

.footer-col p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-col h4 {
    color: var(--bronzo);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    margin-bottom: 30px;
}

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

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

.footer-col ul li a {
    color: var(--bianco);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer-col ul li a:hover {
    opacity: 1;
}

/* FORM FOOTER */
.footer-form input,
.footer-form textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    margin-bottom: 10px;
    color: #333;
    border-radius: 3px;
    font-family: inherit;
}

.footer-form button {
    width: 100%;
    background-color: var(--bronzo);
    color: var(--bianco);
    border: none;
    padding: 12px;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.footer-form button:hover {
    background-color: #8e6843;
}

/* SOCIAL & BOTTOM */
.footer-social a {
    display: block;
    color: var(--bianco);
    text-decoration: none;
    margin-bottom: 15px;
    opacity: 0.8;
}

.footer-social i {
    width: 25px;
    margin-right: 10px;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 25px 0;
    text-align: center;
    font-size: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* =========================================
   7. MEDIA QUERIES (MOBILE)
   ========================================= */
@media (max-width: 992px) {
    .hero-overlay h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .topbar-flex { flex-direction: column; gap: 10px; text-align: center; }
    .header-flex { flex-direction: column; gap: 20px; }
    .main-nav ul { gap: 15px; flex-wrap: wrap; justify-content: center; }
    
    .hero-video { height: 60vh; }
    .hero-overlay h1 { font-size: 2rem; padding: 0 10px; }
    .hero-overlay p { font-size: 1rem; }
    
    .section-title { font-size: 2rem; }
    .seo-text h2 { font-size: 1.8rem; }
}

/* HERO CAMERE (IMMAGINE) */
.hero-rooms {
    height: 60vh;
    background: url('../images/hero_rooms.jpg') center/cover no-repeat;
    position: relative;
}

.rooms-intro {
    padding: 80px 0 40px;
    background-color: var(--bianco);
}

.text-center { text-align: center; }

/* DETTAGLIO SUITE */
.rooms-detail {
    padding-bottom: 100px;
}

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

.room-row.reverse {
    flex-direction: row-reverse;
}

.room-gallery {
    flex: 1;
}

.room-gallery img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: var(--shadow);
}

.room-info {
    flex: 1;
}

.room-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--marrone);
    margin-bottom: 20px;
}

.room-info p {
    color: var(--testo-light);
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.room-amenities {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.room-amenities li {
    font-size: 0.9rem;
    color: var(--testo-scuro);
    display: flex;
    align-items: center;
}

.room-amenities li i {
    color: var(--bronzo);
    margin-right: 10px;
    font-size: 0.8rem;
}

/* Hero specifica per la pagina Queen */
.hero-queen {
    background: url('../images/queen/hero_queen_bg.jpg') center/cover no-repeat !important;
}

.hero-junior {
    background: url('../images/junior/hero_junior_bg.jpg') center/cover no-repeat !important;
}

.hero-superior {
    background: url('../images/superior/hero_superior_bg.jpg') center/cover no-repeat !important;
}

/* Griglia dei Servizi in pagina */
.amenities-grid-detail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
    padding: 30px;
    background-color: var(--grigio-bg);
    border-radius: 8px;
}

.amenity-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--testo-scuro);
}

.amenity-item i {
    color: var(--bronzo);
    margin-right: 12px;
    font-size: 1.1rem;
    width: 25px;
    text-align: center;
}

/* --- CTA METÀ PAGINA --- */
.room-cta-mid {
    margin-top: 50px;
    padding: 40px;
    background-color: var(--grigio-bg);
    text-align: center;
    border-top: 1px solid #eee;
}

.room-cta-mid p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--testo-scuro);
}

.btn-cta-outline {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid var(--bronzo);
    color: var(--bronzo);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-cta-outline:hover {
    background-color: var(--bronzo);
    color: var(--bianco);
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .room-cta-final h3 { font-size: 1.6rem; }
    .btn-cta-full { width: 100%; padding: 15px 20px; }
}

/* Photogallery a mosaico */
.room-gallery-section {
    padding: 80px 0;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 15px;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.5s ease;
}

.grid-item:hover img {
    transform: scale(1.03);
}

.grid-item.big {
    grid-column: span 2;
    grid-row: span 2;
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    .grid-item.big {
        grid-column: span 2;
        grid-row: span 1;
        height: 300px;
    }
    .grid-item {
        height: 200px;
    }
}

/* Hero specifica Servizi */
.hero-servizi {
    background: url('../images/servizi/hero_servizi_bg.jpg') center/cover no-repeat !important;
}

/* Righe Servizi */
.services-list {
    padding: 80px 0;
}

.service-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}

.service-row.reverse {
    flex-direction: row-reverse;
}

.service-img {
    flex: 1;
}

.service-img img {
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.service-info {
    flex: 1;
}

.service-tag {
    display: inline-block;
    color: var(--bronzo);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.service-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--marrone);
    margin-bottom: 20px;
}

.service-info p {
    color: var(--testo-light);
    font-size: 1.05rem;
}

/* Adattamento CTA in pagina */
.room-cta-final.container {
    margin-bottom: 100px;
}

/* Mobile */
@media (max-width: 992px) {
    .service-row, .service-row.reverse {
        flex-direction: column;
        gap: 30px;
        text-align: center;
        margin-bottom: 60px;
    }
}

/* Hero Territorio */
.hero-territorio {
    background: url('../images/territorio/hero_territorio_bg.jpg') center/cover no-repeat !important;
}

/* Griglia Territorio */
.territorio-intro {
    padding: 80px 0 40px;
    text-align: center;
}

.location-grid {
    padding-bottom: 80px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
}

.location-item {
    display: flex;
    background: var(--grigio-bg);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.loc-img {
    flex: 1;
    min-width: 200px;
}

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

.loc-content {
    flex: 1.5;
    padding: 30px;
}

.loc-content h3 {
    font-family: 'Playfair Display', serif;
    color: var(--marrone);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.loc-content p {
    font-size: 0.95rem;
    color: var(--testo-light);
    line-height: 1.6;
}

.map-section {
    padding: 60px 0 100px;
}

.map-placeholder img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #eee;
}

/* Mobile */
@media (max-width: 768px) {
    .location-grid {
        grid-template-columns: 1fr;
    }
    .location-item {
        flex-direction: column;
    }
    .loc-img {
        height: 200px;
    }
}

/* --- Stili per il Menu Hamburger --- */
.menu-toggle {
    display: none; /* Nascosto su desktop */
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--marrone);
    transition: all 0.3s ease;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%; /* Nasconde il menu a destra */
        width: 80%;
        height: 100vh;
        background-color: var(--bianco);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: 0.4s ease;
        padding-top: 100px;
        z-index: 1000;
    }

    .main-nav.active {
        right: 0; /* Fa scivolare il menu dentro lo schermo */
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    /* Animazione Hamburger in "X" quando attivo */
	.menu-toggle.active {
        position: fixed;   /* Blocca la X sullo schermo */
        top: 25px;         /* Distanza dal bordo superiore */
        right: 20px;        /* Distanza dal bordo sinistro */
        z-index: 1200;     /* La mantiene sopra il menù laterale */
    }
	
	.menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: var(--marrone); /* Assicura che rimanga visibile */
    }

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

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: var(--marrone);
    }
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .room-row, .room-row.reverse {
        flex-direction: column;
        gap: 30px;
    }
    
    .room-gallery img {
        height: 350px;
    }
    
    .room-info {
        text-align: center;
    }
    
    .room-amenities {
        justify-content: center;
        max-width: 400px;
        margin: 0 auto;
    }
}