/*
Theme Name: Villa Eliana sul Mare
Description: Tema personalizzato per Villa Eliana sul Mare - Porto Pino, Sardegna
Version: 1.0
Author: Custom Theme
*/

@import url('https://cdn.tailwindcss.com');

:root {
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --gray-900: #111827;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
}

.villa-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

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

.villa-hero {
    min-height: 100vh;
    background-image: url('http://www.villaelianasulmare.it/wp-content/uploads/2024/06/©r.patti_6391-scaled.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.villa-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.villa-hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.villa-hero h1 {
    font-size: 3.5rem;
    font-weight: bold;
    color: white;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.booking-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.prenota-btn {
    background: var(--teal-600);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
}

.prenota-btn:hover {
    background: var(--teal-700);
    transform: scale(1.05);
}

/* MOBILE STYLES - SISTEMAZIONE COMPLETA */
@media (max-width: 768px) {
    /* Header mobile fix */
    .villa-nav {
        padding: 1rem !important;
        position: relative !important;
    }
    
    /* NASCONDE completamente il menu desktop su mobile */
    .villa-menu {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: white !important;
        flex-direction: column !important;
        padding: 0 !important;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
        border-radius: 0 0 0.5rem 0.5rem !important;
        z-index: 1000 !important;
        width: 100% !important;
    }
    
    /* Mostra menu quando aperto */
    .villa-menu.mobile-open {
        display: flex !important;
    }
    
    .villa-menu li {
        width: 100% !important;
        margin: 0 !important;
        border-bottom: 1px solid #e5e7eb !important;
    }
    
    .villa-menu li:last-child {
        border-bottom: none !important;
    }
    
    .villa-menu a {
        display: block !important;
        padding: 1rem 1.5rem !important;
        width: 100% !important;
        text-align: left !important;
        color: #374151 !important;
        text-decoration: none !important;
    }
    
    /* MOSTRA hamburger menu */
    .mobile-menu-toggle {
        display: block !important;
    }
    
    /* NASCONDE completamente pulsante prenota su mobile */
    .villa-nav .prenota-btn {
        display: none !important;
    }
    
    /* Logo più piccolo su mobile */
    .villa-nav a[href*="home_url"] svg,
    .villa-nav a[href*="<?php echo home_url"] svg {
        width: 40px !important;
        height: 40px !important;
    }
    
    .villa-nav h1 {
        font-size: 1rem !important;
    }
    
    .villa-nav p {
        display: none !important;
    }
    
    /* Previene scroll orizzontale */
    body {
        overflow-x: hidden !important;
    }
    
    * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Hero responsive */
    .villa-hero-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center !important;
        padding: 1rem !important;
    }
    
    .villa-hero h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    /* Content grids responsive */
    div[style*="grid-template-columns: repeat(3, 1fr)"],
    div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Padding responsive */
    section[style*="padding: 5rem"] {
        padding: 3rem 1rem !important;
    }
    
    section[style*="padding: 8rem"] {
        padding: 4rem 1rem 2rem !important;
    }
    
    /* Font sizes responsive */
    h1[style*="font-size: 3rem"] {
        font-size: 2rem !important;
    }
    
    h2[style*="font-size: 2.5rem"] {
        font-size: 1.8rem !important;
    }
}
/* Menu Styles - ORIZZONTALE */
.villa-menu {
    display: flex !important;
    flex-direction: row !important;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.villa-menu li {
    margin: 0;
    display: inline-block;
}

.villa-menu a {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: color 0.2s;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    display: inline-block;
    white-space: nowrap;
}

.villa-menu a:hover {
    color: #0d9488;
    background-color: rgba(13, 148, 136, 0.1);
}

/* Fix nav container */
.villa-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}
/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-900);
}

@media (max-width: 768px) {
    .villa-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem 2rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        gap: 0;
    }
    
    .villa-menu.mobile-open {
        display: flex;
    }
    
    .villa-menu li {
        width: 100%;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .villa-menu a {
        display: block;
        padding: 1rem 0;
        width: 100%;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .villa-nav {
        position: relative;
    }
}
/* MOBILE FIX COMPLETO */
@media (max-width: 768px) {
    /* Header fisso con padding per hero */
    .villa-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9999 !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(10px) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    }
    
    /* Compensazione per header fisso */
    body {
        padding-top: 80px !important;
    }
    
    /* Nav mobile container */
    .villa-nav {
        padding: 1rem !important;
        position: relative !important;
        height: 60px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    /* FORZA NASCOSTO il menu desktop */
    .villa-menu {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: white !important;
        flex-direction: column !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
        border-radius: 0 0 1rem 1rem !important;
        z-index: 8888 !important;
        width: 100% !important;
        transform: translateY(-10px) !important;
        opacity: 0 !important;
        transition: all 0.3s ease !important;
    }
    
    /* Menu aperto */
    .villa-menu.mobile-open {
        display: flex !important;
        transform: translateY(0) !important;
        opacity: 1 !important;
    }
    
    /* Elementi menu */
    .villa-menu li {
        width: 100% !important;
        margin: 0 !important;
        border-bottom: 1px solid #f3f4f6 !important;
        list-style: none !important;
    }
    
    .villa-menu li:last-child {
        border-bottom: none !important;
    }
    
    .villa-menu a {
        display: block !important;
        padding: 1.2rem 1.5rem !important;
        width: 100% !important;
        text-align: left !important;
        color: #374151 !important;
        text-decoration: none !important;
        font-weight: 500 !important;
        transition: background-color 0.2s !important;
    }
    
    .villa-menu a:hover {
        background-color: #f0fdfa !important;
        color: #0d9488 !important;
    }
    
    /* MOSTRA hamburger button */
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        width: 40px !important;
        height: 40px !important;
        background: none !important;
        border: none !important;
        cursor: pointer !important;
        padding: 8px !important;
        border-radius: 6px !important;
        transition: background-color 0.2s !important;
    }
    
    .mobile-menu-toggle:hover {
        background-color: rgba(13, 148, 136, 0.1) !important;
    }
    
    .mobile-menu-toggle span {
        display: block !important;
        width: 24px !important;
        height: 3px !important;
        background-color: #374151 !important;
        margin: 3px 0 !important;
        transition: all 0.3s ease !important;
        border-radius: 2px !important;
    }
    
    /* NASCONDE prenota button */
    .villa-nav .prenota-btn {
        display: none !important;
    }
    
    /* Logo più piccolo */
    .villa-nav a[href] svg {
        width: 36px !important;
        height: 36px !important;
    }
    
    .villa-nav h1 {
        font-size: 0.95rem !important;
        line-height: 1.2 !important;
    }
    
    .villa-nav p {
        display: none !important;
    }
    
    /* Hero section fix */
    .villa-hero {
        margin-top: 0 !important;
        padding-top: 2rem !important;
        min-height: calc(100vh - 80px) !important;
    }
    
    /* Content responsive */
    div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* Padding fixes */
    section[style*="padding: 5rem"] {
        padding: 3rem 1rem !important;
    }
    
    section[style*="padding: 8rem"] {
        padding: 2rem 1rem !important;
    }
}
/* BOOKING FORM COMPATTO - IDENTICO ALLA PREVIEW */
.villa-hero .booking-form {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(8px) !important;
    padding: 1.5rem !important;
    border-radius: 1rem !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25) !important;
    max-width: 420px !important;
    width: 100% !important;
}

.villa-hero .booking-form h3 {
    font-size: 1.125rem !important;
    font-weight: bold !important;
    text-align: center !important;
    margin-bottom: 1rem !important;
    color: #111827 !important;
    line-height: 1.3 !important;
}

/* Layout 2x2 compatto per check-in/check-out */
.villa-hero .booking-form .wpcf7-form p:nth-child(1),
.villa-hero .booking-form .wpcf7-form p:nth-child(2) {
    width: 48% !important;
    display: inline-block !important;
    margin-right: 2% !important;
    margin-bottom: 0.8rem !important;
    vertical-align: top !important;
}

.villa-hero .booking-form .wpcf7-form p:nth-child(2) {
    margin-right: 0 !important;
}

/* Ospiti a larghezza piena */
.villa-hero .booking-form .wpcf7-form p:nth-child(3) {
    width: 100% !important;
    display: block !important;
    margin-bottom: 0.8rem !important;
}

/* Layout 2x2 per email/telefono */
.villa-hero .booking-form .wpcf7-form p:nth-child(4),
.villa-hero .booking-form .wpcf7-form p:nth-child(5) {
    width: 48% !important;
    display: inline-block !important;
    margin-right: 2% !important;
    margin-bottom: 0.8rem !important;
    vertical-align: top !important;
}

.villa-hero .booking-form .wpcf7-form p:nth-child(5) {
    margin-right: 0 !important;
}

/* Label compatte */
.villa-hero .booking-form .wpcf7-form label {
    display: block !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: #0d9488 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 0.3rem !important;
}

/* Input compatti */
.villa-hero .booking-form .wpcf7-form input[type="date"],
.villa-hero .booking-form .wpcf7-form input[type="email"],
.villa-hero .booking-form .wpcf7-form input[type="tel"],
.villa-hero .booking-form .wpcf7-form select {
    width: 100% !important;
    padding: 0.5rem 0.7rem !important;
    border: 1px solid #d1d5db !important;
    border-radius: 0.4rem !important;
    font-size: 0.85rem !important;
    background: white !important;
    color: #374151 !important;
    box-sizing: border-box !important;
}

.villa-hero .booking-form .wpcf7-form input:focus,
.villa-hero .booking-form .wpcf7-form select:focus {
    outline: none !important;
    border-color: #0d9488 !important;
    box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.1) !important;
}

/* Select dropdown compatto */
.villa-hero .booking-form .wpcf7-form select {
    cursor: pointer !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 0.4rem center !important;
    background-repeat: no-repeat !important;
    background-size: 1.2em 1.2em !important;
    padding-right: 2rem !important;
}

/* Checkbox compatto */
.villa-hero .booking-form .wpcf7-form .wpcf7-acceptance {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
    margin: 0.8rem 0 !important;
}

.villa-hero .booking-form .wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
    margin: 0 !important;
    margin-top: 0.2rem !important;
    width: auto !important;
    flex-shrink: 0 !important;
}

.villa-hero .booking-form .wpcf7-form .wpcf7-acceptance .wpcf7-list-item-label {
    font-size: 0.7rem !important;
    line-height: 1.3 !important;
    color: #374151 !important;
    font-weight: normal !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    margin: 0 !important;
}

/* Button compatto */
.villa-hero .booking-form .wpcf7-form input[type="submit"] {
    width: 100% !important;
    background: #0d9488 !important;
    color: white !important;
    padding: 0.7rem !important;
    border: none !important;
    border-radius: 0.4rem !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    margin-top: 0.6rem !important;
}

.villa-hero .booking-form .wpcf7-form input[type="submit"]:hover {
    background: #0f766e !important;
    transform: scale(1.02) !important;
}

/* Rimuovi margin extra */
.villa-hero .booking-form .wpcf7-form p {
    margin-top: 0 !important;
}

.villa-hero .booking-form .wpcf7-form br {
    display: none !important;
}

/* Success/Error messages compatti */
.villa-hero .booking-form .wpcf7-response-output {
    border: none !important;
    padding: 0.7rem !important;
    border-radius: 0.4rem !important;
    margin: 0.6rem 0 0 0 !important;
    font-weight: 500 !important;
    font-size: 0.8rem !important;
}

/* Mobile - mantieni compatto */
@media (max-width: 768px) {
    .villa-hero .booking-form {
        max-width: 100% !important;
        padding: 1.25rem !important;
    }
    
    .villa-hero .booking-form h3 {
        font-size: 1rem !important;
    }
    
    /* Mobile: campi singoli */
    .villa-hero .booking-form .wpcf7-form p:nth-child(1),
    .villa-hero .booking-form .wpcf7-form p:nth-child(2),
    .villa-hero .booking-form .wpcf7-form p:nth-child(4),
    .villa-hero .booking-form .wpcf7-form p:nth-child(5) {
        width: 100% !important;
        display: block !important;
        margin-right: 0 !important;
    }
}