/* ============================================
   CLAUDIO PORZIO - STYLESHEET LUXURY EDITION
   ============================================ */

/* ============================================
   1. IMPORT E FONT
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

/* ============================================
   2. CSS RESET E VARIABILI
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Palette Colori Editoriale & Luxury */
    --primary-black: #0c0c0c; 
    --primary-gold: #c5a059; 
    --light-gold: #e8dcc4; 
    --dark-gray: #141414;
    --medium-gray: #1e1e1e;
}

/* ============================================
   3. STILI BASE
   ============================================ */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Cinzel', 'Playfair Display', 'Georgia', 'Times New Roman', serif;
    background-color: var(--primary-black);
    color: var(--light-gold);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-tap-highlight-color: transparent; 
}

/* ============================================
   4. NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(12, 12, 12, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(197, 160, 89, 0.1);
    transform: translateY(-100%);
    animation: navSlideDown 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s forwards;
}

@keyframes navSlideDown {
    to { transform: translateY(0); }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    gap: 1.5rem;
}

.logo {
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--primary-gold);
    text-decoration: none;
    letter-spacing: 4px;
    font-family: 'Cinzel', serif;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-menu a {
    color: var(--light-gold);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-gold);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--primary-gold);
    transition: width 0.4s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* ============================================
   5. HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--primary-black);
    position: relative;
    overflow: hidden;
    padding: 2rem;
    max-width: none;
}

.hero h1 {
    font-size: 5.5rem;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
    letter-spacing: 10px;
    font-family: 'Cinzel', serif;
    font-weight: 400;
    line-height: 1.1;
    text-transform: uppercase;
}

.hero h1 .star {
    font-size: 2rem;
    display: inline-block;
    margin-left: 0.5rem;
    color: var(--primary-gold);
    animation: pulseSlow 4s ease-in-out infinite;
}

@keyframes pulseSlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.95); }
}

.hero .subtitle {
    font-size: 1.4rem;
    color: var(--light-gold);
    margin-bottom: 2rem;
    font-style: italic;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    letter-spacing: 2px;
}

.hero .hero-description {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: rgba(232, 220, 196, 0.7);
    letter-spacing: 1px;
}

/* Bottoni Sharp Minimal */
.cta-button {
    display: inline-block;
    padding: 1.2rem 3.5rem;
    background: transparent;
    color: var(--primary-gold);
    border: 1px solid var(--primary-gold);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    border-radius: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.cta-button:hover {
    background: var(--primary-gold);
    color: var(--primary-black);
}

/* ============================================
   6. SEZIONI GENERICHE
   ============================================ */
section {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    scroll-margin-top: 100px;
    position: relative;
}

section h2 {
    font-size: 2.5rem;
    color: var(--primary-gold);
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

section h2.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   7. CHI SONO
   ============================================ */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    width: 100%;
    max-width: 450px;
    height: 600px;
    background: var(--dark-gray);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    margin: 0 auto;
    opacity: 0;
    border: 1px solid rgba(197, 160, 89, 0.2);
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%; /* Centra l'immagine dando priorità al volto (parte alta) */
    display: block;
}

.about-text {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--light-gold);
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s;
}

.about-text p {
    margin-bottom: 2rem;
    font-family: 'Playfair Display', serif;
}

/* ============================================
   8. SERVIZI
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--dark-gray);
    padding: 3.5rem 2.5rem;
    border-radius: 0;
    text-align: center;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(197, 160, 89, 0.1);
    position: relative;
    opacity: 0;
    transform: translateY(40px);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(197, 160, 89, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.service-icon {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.service-card p {
    color: rgba(232, 220, 196, 0.8);
    line-height: 1.8;
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
}

/* ============================================
   9. FORM PRENOTAZIONE
   ============================================ */
#prenotazione {
    background: var(--primary-black);
    padding: 8rem 2rem;
    max-width: none;
}

.booking-container {
    max-width: 900px;
    margin: 0 auto;
}

.booking-form {
    background: var(--dark-gray);
    padding: 4rem;
    border-radius: 0;
    border: 1px solid rgba(197, 160, 89, 0.1);
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    color: var(--primary-gold);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.required {
    color: var(--primary-gold);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 0;
    padding: 0.8rem 0;
    color: var(--light-gold);
    font-size: 1rem;
    font-family: 'Playfair Display', serif;
    transition: all 0.4s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--primary-gold);
    background: transparent;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(232, 220, 196, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.hidden {
    display: none;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.form-note {
    color: rgba(232, 220, 196, 0.5);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.submit-button {
    background: transparent;
    color: var(--primary-gold);
    border: 1px solid var(--primary-gold);
    padding: 1.2rem 3.5rem;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.submit-button:hover {
    background: var(--primary-gold);
    color: var(--primary-black);
}

.booking-info {
    text-align: center;
    margin-top: 3rem;
}

.booking-info p {
    color: rgba(232, 220, 196, 0.6);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.1rem;
}

/* ============================================
   10. CONTATTI
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.contact-item {
    background: var(--dark-gray);
    padding: 3rem 2rem;
    border-radius: 0;
    text-align: center;
    border: 1px solid rgba(197, 160, 89, 0.1);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    transform: translateY(30px);
}

.contact-item:hover {
    border-color: rgba(197, 160, 89, 0.3);
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.contact-item h3 {
    color: var(--primary-gold);
    margin-bottom: 1rem;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.contact-item a, .contact-item p {
    color: var(--light-gold);
    text-decoration: none;
    transition: color 0.4s ease;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
}

.contact-item a:hover {
    color: var(--primary-gold);
}

/* ============================================
   11. FLOATING BUTTONS
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: var(--dark-gray);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: all 0.4s ease;
}

.whatsapp-float:hover {
    background: var(--primary-gold);
}

.whatsapp-float:hover svg {
    fill: var(--primary-black);
}

.scroll-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--dark-gray);
    color: var(--primary-gold);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 0;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.4s ease;
    z-index: 998;
}

.scroll-top.visible {
    display: flex;
}

.scroll-top:hover {
    background: var(--primary-gold);
    color: var(--primary-black);
}

/* ============================================
   12. FOOTER
   ============================================ */
footer {
    background: var(--primary-black);
    color: rgba(232, 220, 196, 0.5);
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid rgba(197, 160, 89, 0.1);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.footer-tagline {
    margin-top: 1rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: rgba(232, 220, 196, 0.4);
}

.legal-links {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.legal-links a {
    color: rgba(232, 220, 196, 0.4); /* Stesso colore sbiadito del testo del footer */
    text-decoration: none;
    transition: color 0.4s ease;
}

.legal-links a:hover {
    color: var(--primary-gold); /* Si illumina d'oro solo se ci passi sopra col mouse */
}
/* ============================================
   13. ANIMAZIONI SCROLL ELABORATE
   ============================================ */
.fade-in {
    opacity: 0;
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(40px);
    animation: heroEntry 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

@keyframes heroEntry {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-content.visible .about-image {
    opacity: 1;
    transform: translateY(0);
}

.about-content.visible .about-text {
    opacity: 1;
    transform: translateY(0);
}

.service-card:nth-child(1) { transition-delay: 0s; }
.service-card:nth-child(2) { transition-delay: 0.2s; }
.service-card:nth-child(3) { transition-delay: 0.4s; }

.services-grid.visible .service-card {
    opacity: 1;
    transform: translateY(0);
}

.booking-container.visible .booking-form {
    opacity: 1;
    transform: translateY(0);
}

.booking-form.visible .form-group:nth-child(1) { transition-delay: 0.1s; }
.booking-form.visible .form-group:nth-child(2) { transition-delay: 0.2s; }
.booking-form.visible .form-group:nth-child(3) { transition-delay: 0.3s; }
.booking-form.visible .form-group:nth-child(4) { transition-delay: 0.4s; }
.booking-form.visible .form-group:nth-child(5) { transition-delay: 0.5s; }
.booking-form.visible .form-group:nth-child(6) { transition-delay: 0.6s; }

.booking-form.visible .form-group {
    opacity: 1;
    transform: translateY(0);
}

.contact-item:nth-child(1) { transition-delay: 0s; }
.contact-item:nth-child(2) { transition-delay: 0.2s; }
.contact-item:nth-child(3) { transition-delay: 0.4s; }

.contact-grid.visible .contact-item {
    opacity: 1;
    transform: translateY(0);
}

html {
    scroll-padding-top: 100px;
}

/* ============================================
   14. MEDIA QUERIES (RESPONSIVE)
   ============================================ */
@media (max-width: 768px) {
    /* Navbar: Riduciamo gli spazi per compattare la barra in alto */
    .navbar {
        padding: 1rem 0; 
    }
    
    .nav-container {
        gap: 0.8rem;
    }

    .logo {
        font-size: 1.2rem;
        letter-spacing: 3px;
    }

    /* IL MENU SCORREVOLE ORIZZONTALE (SWIPE) */
    .nav-menu {
        flex-wrap: nowrap; /* Impedisce assolutamente di andare a capo */
        overflow-x: auto; /* Permette lo scroll col dito */
        -webkit-overflow-scrolling: touch; /* Scroll ultra-fluido su iPhone */
        width: 100%;
        justify-content: flex-start; /* Allinea a sinistra per lo scorrimento */
        gap: 1.5rem;
        padding: 0 1rem 0.5rem 1rem; /* Spazio per non tagliare le ombre */
        
        /* Nasconde la barra di scorrimento visiva per eleganza */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }

    .nav-menu::-webkit-scrollbar {
        display: none; /* Nasconde la scrollbar su Chrome/Safari/iOS */
    }

    .nav-menu a {
        white-space: nowrap; /* Il testo del singolo link non si spezza mai */
        font-size: 0.85rem;
    }

    /* Aggiustamenti testo Hero */
    .hero h1 {
        font-size: 3.2rem;
        letter-spacing: 5px;
    }
    
    .hero h1 .star {
        font-size: 1.5rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
    }

    section h2 {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .booking-form {
        padding: 2.5rem 1.5rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .submit-button {
        width: 100%;
        justify-content: center;
    }
    
    section {
        padding: 5rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
        letter-spacing: 3px;
    }
    
    .hero .subtitle {
        font-size: 1rem;
    }

    .booking-form {
        padding: 2rem 1rem;
    }
    
    .service-card {
        padding: 2.5rem 1.5rem;
    }
}