/* ==========================================================================
   1. RESET E REGOLE BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

/* ==========================================================================
   2. NAVBAR E HEADER
   ========================================================================== */
header {
    background: #0d1043; 
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

/* Logo (Testo + Immagine) */
.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo span {
    color: #ffffff; 
    font-weight: 300;
}

.logo img {
    height: 50px; 
    width: auto;
}

/* Link di Navigazione */
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: 0.3s;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent; 
}

.nav-links a:hover {
    color: #ffffff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5); 
}

.nav-links a.active {
    color: #ffffff !important; 
    border-bottom: 2px solid #ffffff; 
}

/* Tasto Telefono in Nav */
.nav-phone {
    background: #a2a2a2;
    color: #000 !important;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: bold;
    border-bottom: none !important; 
}

/* Switch Lingua */
.lang-switch {
    font-size: 0.8rem;
    color: #ccc;
    margin-left: 20px;
}

.lang-switch a {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
    padding: 0 5px;
    border-bottom: none !important;
}

.lang-switch a:hover, .lang-switch .lang-active {
    color: #fff;
    font-weight: bold;
}

/* ==========================================================================
   3. BOTTONI GLOBALI
   ========================================================================== */
.btn-primary, .btn-main {
    background: #a2a2a2;
    color: #000;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 2px;
    transition: 0.3s;
    display: inline-block;
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    padding: 15px 30px;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
}

.btn-primary:hover, .btn-secondary:hover {
    background: #fff;
    color: #000;
}

.btn-call-large {
    background: #0d1043; 
    color: #ffffff;
    padding: 18px 50px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: 0.3s;
    display: inline-block; 
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.btn-call-large:hover {
    background: #fff;
    color: #000;
    border: 2px solid #000;
}

/* ==========================================================================
   4. SEZIONE HERO (HOME)
   ========================================================================== */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                url('https://images.unsplash.com/photo-1552519507-da3b142c6e3d?auto=format&fit=crop&q=80&w=1600') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-content h1 {
    font-family: 'Cinzel', serif; 
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 3px; 
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 1.8rem; 
    font-weight: 300;  
    letter-spacing: 2px;
    margin-top: 10px;
    text-transform: uppercase; 
}

.hero-btns {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* ==========================================================================
   5. SEZIONI INFORMATIVE (HOME)
   ========================================================================== */
.azienda-info {
    background-color: #333; 
    padding: 80px 0;        
    color: #fff;            
}

section.azienda-info .container h2 {
    font-family: 'Cinzel', serif;
    font-size: 4.2rem !important; 
    font-weight: 700;
    color: #ffffff !important;   
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 4px;         
    line-height: 1.2;
}

.subtitle {
    font-size: 1.8rem !important; 
    max-width: 950px;             
    margin: 30px auto 60px;       
    line-height: 1.6;
    color: #dddddd;
    font-weight: 300;
}

.grid-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
    margin-top: 50px;
    align-items: stretch; 
}

.info-card {
    background: #ffffff;
    padding: 30px 20px;
    border-bottom: 4px solid #0d1043;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    color: #333;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    height: 100%; 
    transition: 0.3s;
}

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

.info-card h3 {
    margin-bottom: 15px;
    min-height: 50px; 
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   6. CTA INTERMEDIA (HOME)
   ========================================================================== */
.cta-mid {
    text-align: center; 
    padding: 120px 20px; 
    background-color: #ffffff; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh; 
}

.cta-mid h2 {
    font-family: 'Cinzel', serif; 
    font-size: 3.2rem; 
    margin-bottom: 25px;
    color: #0d1043;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cta-mid p {
    font-size: 1.2rem;
    color: #333;
    max-width: 750px; 
    margin: 0 auto 40px; 
    line-height: 1.8;
}

/* ==========================================================================
   7. PAGINA SERVIZI (services.html)
   ========================================================================== */
.page-header {
    background-color: #0d1043;
    padding: 60px 20px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.page-header h1 {
    font-family: 'Cinzel', serif;
    color: #ffffff;
    font-size: 3rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.servizi-page {
    background-color: #f9f9f9; 
    padding: 80px 0;
}

.servizi-box-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); 
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.box-servizio {
    background-color: #ffffff;
    padding: 0; 
    text-align: center;
    border-bottom: 4px solid #0d1043;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    min-height: 400px; 
    border-radius: 4px; 
}

.box-servizio:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.image-placeholder {
    width: 100%;
    height: 200px; 
    background-color: #f0f0f0; 
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #a2a2a2; 
    font-weight: bold;
}

.box-servizio h2 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: #0d1043;
    margin: 20px 20px 10px; 
    line-height: 1.3;
}

.btn-outline {
    background-color: transparent;
    color: #0d1043;
    border: 2px solid #0d1043;
    padding: 12px 30px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    transition: 0.3s ease;
    border-radius: 2px;
    margin: 10px 20px 30px; 
}

.btn-outline:hover {
    background-color: #0d1043;
    color: #ffffff;
}

/* ==========================================================================
   8. DETTAGLIO SERVIZIO SINGOLO E TARIFFE (Layout a 3 Box per PC)
   ========================================================================== */
.service-hero {
    height: 70vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('https://images.unsplash.com/photo-1449965408869-eaa3f722e40d?q=80&w=1600') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.service-title {
    font-family: 'Cinzel', serif;
    color: #fff;
    font-size: 3.5rem;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-align: center;
}

/* Griglia dei Prezzi - Affiancati su PC */
.pricing-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Permette di andare a capo se non c'è spazio */
    padding: 0 20px;
    margin-top: -60px; /* Effetto galleggiamento */
    z-index: 10;
    position: relative;
}

/* Box Quadrati (Come da tua foto) */
.price-box {
    background: rgba(255, 255, 255, 0.98);
    padding: 30px;
    border-radius: 4px;
    width: 280px; /* Larghezza fissa per farli tutti uguali */
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    text-align: center;
    transition: 0.3s ease;
}

.price-box:hover {
    transform: translateY(-5px);
}

.price-box h4 {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: #0d1043;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.price-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
}

/* Bottone pieno come da foto */
.btn-book {
    display: block;
    background: #0d1043;
    color: #fff;
    text-decoration: none;
    padding: 12px;
    font-weight: bold;
    border-radius: 2px;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-book:hover {
    background: #a2a2a2;
    color: #000;
}

/* Descrizione del servizio */
.service-description {
    padding: 100px 20px 80px; 
    background: #fff;
    text-align: center;
}

.container-small {
    max-width: 800px;
    margin: 0 auto;
}

/* Box informativo pagamenti (SumUp) */
.payment-info {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fdfdfd;
    padding: 15px 30px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    margin: 40px auto;
    max-width: fit-content; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.sumup-icon {
    width: 80px;      
    height: auto;     
    margin-right: 20px; 
    display: block;
}

.payment-info span {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.4;
    text-align: left;
}

.payment-info span strong {
    color: #0d1043;
    font-weight: 700;
}

/* ==========================================================================
   9. FOOTER E CONTATTI
   ========================================================================== */
.footer-contatti {
    background: #0d1043;
    color: #fff;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-contatti h3 {
    text-align: center; 
    font-size: 2rem;
    color: #ffffff; 
    margin-bottom: 30px;
}

.contact-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin: 40px 0;
}

.contact-item {
    color: #fff;
    text-decoration: none;
    text-align: center;
}

.contact-item strong {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #ccc;
}

/* ==========================================================================
   10. MEDIA QUERIES (TUTTO IL RESPONSIVE)
   ========================================================================== */
@media (max-width: 1024px) {
    .grid-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .navbar {
        flex-direction: column; 
        gap: 15px;
    }
}

@media (max-width: 768px) {
    /* Navbar Luxury Minimal (Mobile) */
    .brand-text {
        display: none !important;
    }

    .navbar {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 15px !important;
        flex-wrap: nowrap !important;
        flex-direction: row; 
    }

    .logo img {
        height: 45px !important;
        width: auto !important;
    }

    .nav-links li:not(.lang-switch) {
        display: none !important;
    }

    .lang-switch {
        margin-left: 0 !important;
        font-size: 0.8rem !important;
        font-weight: 400 !important;
        letter-spacing: 1px !important;
        color: #fff !important;
    }
    
    .lang-switch a {
        padding: 0 3px !important;
    }

    /* Sezioni Home */
    .hero {
        height: 60vh;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    section.azienda-info .container h2 {
        font-size: 2.2rem !important; 
        letter-spacing: 2px;
    }
    
    .subtitle {
        font-size: 1.2rem !important;
    }

    .hero-btns {
        flex-direction: column; 
        padding: 0 40px;
    }

    /* Pagine Servizi */
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .servizi-box-grid {
        grid-template-columns: 1fr; 
        padding: 0 15px;
    }
    
    .box-servizio {
        min-height: 350px;
    }
    
    .box-servizio h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

/* Dettaglio Servizio (Mobile) */
    .pricing-container {
        margin-top: 20px !important; 
        position: static !important;
        flex-direction: column; /* Li impila uno sopra l'altro */
        align-items: center; /* Li centra */
    }

    .service-hero {
        height: auto !important;
        min-height: 350px;
        padding-bottom: 30px;
    }

    .service-title {
        font-size: 2.2rem !important;
        letter-spacing: 2px;
    }

    .price-box {
        width: 100%;
        max-width: 350px; /* Evita che diventino giganti sui tablet */
        margin-bottom: 15px; /* Spazio tra i blocchi su mobile */
    }
    /* Collassa la griglia in una colonna su mobile */
    .price-box {
        grid-template-columns: 1fr; 
        text-align: center;
        gap: 15px;
        padding: 30px !important;
    }

    .price-box h4 {
        text-align: center;
    }

    .price-value {
        text-align: center;
        font-size: 1.5rem;
    }

    /* Footer e Contatti */
    .contact-grid {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    /* Fix Titolo Footer su Mobile */
    .footer-contatti h3 {
        font-size: 1.5rem !important; /* Rimpicciolisce il titolo */
        padding: 0 15px !important;   /* Aggiunge un margine di sicurezza dai bordi */
        margin-bottom: 25px !important; 
    }
}

@media (max-width: 600px) {
    .grid-info {
        grid-template-columns: 1fr;
    }
    
    /* SumUp su schermi molto piccoli */
    .payment-info {
        flex-direction: column; 
        text-align: center;
        padding: 20px;
    }
    
    .sumup-icon {
        margin-right: 0;
        margin-bottom: 15px;
        width: 100px;
    }
    
    .payment-info span {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo a {
        font-size: 1.2rem;
    }
}