﻿/* ==========================================================================
   1. RESET E IMPOSTAZIONI GLOBALI
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #fcfcfc;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* ==========================================================================
   2. HEADER E NAVIGAZIONE (MENU)
   ========================================================================== */
header {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.logo p {
    font-size: 0.85rem;
    color: #aaaaaa;
    font-style: italic;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    font-size: 1rem;
    font-weight: 500;
    color: #dddddd;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

nav a:hover, nav a.active {
    color: #ff3b30;
    border-bottom: 2px solid #ff3b30;
}

/* ==========================================================================
   3. SEZIONE HERO (INTRODUZIONE)
   ========================================================================== */
.hero {
    text-align: center;
    padding: 10px 20px;          /* Ridotto a 10px sopra e sotto */
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    color: #ffffff;
    border-radius: 8px;
    margin: 5px auto;           /* Ridotto lo spazio esterno sopra e sotto a 15px */
}

.hero h2 {
    font-size: 1.5rem;           /* Ridotto il testo da 2rem a 1.5rem per occupare meno righe */
    font-weight: 250;
    line-height: 1.2;            /* Forza le righe di testo a stare più vicine tra loro */
    max-width: 800px;
    margin: 0 auto;
}

}

/* ==========================================================================
   4. SEZIONE SERVIZI (GRIGLIA)
   ========================================================================== */
.services {
    padding: 40px 0;
}

.services h3 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.services h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #ff3b30;
    margin: 10px auto 0 auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-top: 4px solid #1a1a1a;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-top-color: #ff3b30;
}

/* ==========================================================================
   5. PIÈ DI PAGINA (FOOTER)
   ========================================================================== */
footer {
    background-color: #111111;
    color: #888888;
    padding: 40px 0;
    margin-top: 60px;
    font-size: 0.9rem;
    border-top: 4px solid #ff3b30;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

footer p:first-child {
    color: #ffffff;
    font-weight: 500;
}

/* ==========================================================================
   6. OTTIMIZZAZIONE DISPOSITIVI MOBILI (RESPONSIVE)
   ========================================================================== */
/*@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h2 {
        font-size: 1.5rem;
    }
}*/

/* Si attiva solo su schermi per smartphone */
@media screen and (max-width: 767px) {
    
    /* Forza ogni contenitore di campo, label o riga a occupare l'intera larghezza */
    .form-group, 
    .row, 
    .col-md-6, /* Se usi Bootstrap o simili */
    div[class*="col-"] {
        display: block !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    /* Rende tutti gli input, select e textarea a tutta larghezza e ben leggibili */
    input[type="text"],
    input[type="date"],
    input[type="tel"],
    input[type="email"],
    input[type="number"],
    select,
    textarea {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        font-size: 16px; /* Previene lo zoom automatico fastidioso su iOS */
        padding: 12px 10px; /* Aumenta lo spazio per toccare e scrivere comodamente */
        margin-bottom: 15px; /* Spazia verticalmente i campi tra loro */
    }

    /* Allinea anche le etichette sopra al rispettivo campo */
    label {
        display: block;
        width: 100%;
        margin-bottom: 5px;
        text-align: left;
    }
}

/* ==========================================================================
   7. STILI SPECIFICI PER LA PAGINA INFO
   ========================================================================== */

.info-section {
    margin-bottom: 50px;
}

.section-title {
    text-align: center;
    margin-bottom: 25px;
}

.section-title h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    position: relative;
}

.section-title h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: #ff3b30;
    margin: 8px auto 0 auto;
}

.grid-2col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 5px;
}

.info-card {
    background-color: #ffffff;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-top: 4px solid #1a1a1a;
}

.info-card h3, .info-card h4 {
    margin-bottom: 5px;
    color: #1a1a1a;
}

.hours-list {
    list-style: none;
}

.hours-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.hours-list li:last-child {
    border-bottom: none;
}

/* Badge Pagamenti */
.payment-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.badge {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.note-text {
    font-size: 0.85rem;
    color: #777;
    margin-top: 10px;
}

/* Tabella Prezzi */
.table-responsive {
    overflow-x: auto;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* 1. Ridotto il padding verticale e forzato il line-height */
.price-table th, .price-table td {
    padding: 3px 20px !important; /* Ridotto a 3px verticali */
    line-height: 1.2 !important;  /* Forza un'altezza del testo compatta */
    text-align: left;
    border-bottom: 1px solid #eeeeee;
}

.price-table th {
    background-color: #1a1a1a;
    color: #ffffff;
    font-weight: 600;
}

.price-table tr:hover {
    background-color: #f9f9f9;
}


/* Box Clausole */
.clauses-box {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid #ff3b30;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.clauses-box ul {
    list-style-type: square;
    padding-left: 20px;
}

.clauses-box li {
    margin-bottom: 15px;
    color: #444;
}

.clauses-box li:last-child {
    margin-bottom: 0;
}
