/* Variabili Colori - Personalizzabili */
:root {
    --blue-primary: #0056b3; /* Sostituisci con il blu esatto del tuo logo */
    --orange-accent: #fd7e14; /* Sostituisci con l'arancione esatto del tuo logo */
    --text-dark: #212529;
    --bg-light: #f8f9fa;
    --whatsapp-green: #25D366;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-dark);
}

/* --- TOPBAR --- */
.topbar {
    background-color: var(--bg-light);
    border-bottom: 1px solid #e9ecef;
}

.topbar-logo {
    max-height: 60px; /* Regola in base alle proporzioni del tuo logo orizzontale */
    width: auto;
}

.topbar-link {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.topbar-link:hover {
    color: var(--blue-primary);
}

/* Colori Testo Utilità */
.text-blue { color: var(--blue-primary) !important; }
.text-orange { color: var(--orange-accent) !important; }

/* Bottone WhatsApp */
.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: white;
    font-weight: 600;
    border-radius: 50px;
    padding: 6px 18px;
    border: none;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    color: white;
    transform: scale(1.05);
}

/* --- NAVBAR STICKY --- */
.navbar {
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    margin: 0 8px;
    position: relative;
    transition: color 0.3s ease;
}

/* Effetto Hover sui link del menu */
.nav-link:hover, .nav-link.active {
    color: var(--orange-accent);
}

/* Sottolineatura animata arancione per la SEO (Aumenta il tempo di permanenza visiva) */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--orange-accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Bottone CTA Principale */
.btn-primary-blue {
    background-color: var(--blue-primary);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary-blue:hover {
    background-color: var(--orange-accent); /* Effetto contrasto forte al passaggio del mouse */
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
  /* Nascondi gli elementi che hanno una classe di animazione finché non sono visibili */
.animate__animated {
    opacity: 0;
}
/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 600px; /* Altezza minima, regolabile */
    background: url('img/dentista_palermo.jpg') no-repeat center center / cover; /* Immagine di sfondo */
    display: flex; /* Centra il contenuto verticalmente */
    flex-direction: column; /* Assicura che i figli si allineino correttamente */
    justify-content: center; /* Centra verticalmente */
    padding: 100px 0; /* Padding per dare aria */

}

/* Overlay scuro per migliorare la leggibilità del testo */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Nero con 50% di opacità */
    z-index: 0; /* Dietro il contenuto del testo ma sopra l'immagine */
}

.hero-section h1 {
    font-size: 3.5rem; /* Grande su desktop */
    line-height: 1.2;
}

.hero-section p.lead {
    font-size: 1.3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Media Queries per rendere il testo responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: 500px;
        padding: 80px 0;
    }
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .hero-section p.lead {
        font-size: 1.1rem;
    }
    .hero-section .btn-lg {
        width: 100%; /* I bottoni full width su mobile sono più facili da cliccare */
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 400px;
        padding: 60px 0;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section p.lead {
        font-size: 1rem;
    }
}

/* --- SEZIONE SERVIZI --- */
.tracking-wide {
    letter-spacing: 2px;
}

/* Stile delle Card */
.service-card {
    transition: all 0.3s ease-in-out;
    background-color: #ffffff;
}

/* Effetto Hover sulla Card */
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.1) !important;
}

/* Contenitore e Icone */
.service-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: rgba(0, 86, 179, 0.05); /* Sfondo azzurro leggerissimo */
    border-radius: 50%;
    transition: all 0.4s ease;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--blue-primary);
    transition: color 0.4s ease;
}

/* Effetto Hover sulle icone (da blu ad arancione) */
.service-card:hover .service-icon-wrapper {
    background-color: rgba(253, 126, 20, 0.1); /* Sfondo arancione leggerissimo */
}

.service-card:hover .service-icon {
    color: var(--orange-accent);
    transform: scale(1.1);
}

/* Link "Scopri di più" */
.service-link {
    color: var(--blue-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.service-link i {
    transition: transform 0.3s ease;
}

/* Spostamento freccia al passaggio del mouse */
.service-card:hover .service-link {
    color: var(--orange-accent);
}

.service-card:hover .service-link i {
    transform: translateX(5px);
}

/* --- SEZIONE LO STUDIO --- */

/* Utility per il bordo arancione del badge decorativo */
.border-orange {
    border-color: var(--orange-accent) !important;
}

/* Stile per forzare la copertura dell'immagine senza distorcerla */
.object-fit-cover {
    object-fit: cover;
}

/* Effetto di transizione sulle voci dell'elenco */
.custom-list li {
    transition: transform 0.2s ease, color 0.2s ease;
}

.custom-list li:hover {
    transform: translateX(5px);
    color: var(--text-dark) !important;
}
 

/* Margini e padding ottimizzati per la colonna di testo */
@media (min-width: 992px) {
    #studio .pe-lg-4 {
        padding-right: 2rem !important;
    }
    #studio .ps-lg-4 {
        padding-left: 2rem !important;
    }
}

/* --- FORM CONTATTI --- */
.form-control:focus {
    border-color: var(--blue-primary);
    box-shadow: 0 0 0 0.25rem rgba(0, 86, 179, 0.15);
}

.ratio-16x9 iframe {
    filter: grayscale(10%) contrast(1.1); /* Rende la mappa un po' più professionale */
}

#formResponse {
    font-weight: 500;
    border-radius: 10px;
    text-align: center;
}

/* --- CARD TRATTAMENTI IN EVIDENZA --- */

/* Uniforma l'altezza delle immagini in alto alle card e previene distorsioni */
.card-img-custom {
    height: 180px;
    object-fit: cover;
}

/* Transizione per le card */
.highlight-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Effetto sollevamento della card al passaggio del mouse */
.highlight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 86, 179, 0.1) !important;
}

/* Bottone con contorno blu personalizzato */
.btn-outline-blue {
    color: var(--blue-primary);
    border: 2px solid var(--blue-primary);
    background-color: transparent;
    transition: all 0.3s ease;
}

/* Effetto Hover del bottone: si riempie di arancione per catturare l'azione */
.btn-outline-blue:hover {
    background-color: var(--orange-accent);
    border-color: var(--orange-accent);
    color: white;
}
/* --- FOOTER --- */
footer {
    background-color: #212529; /* Sfondo scuro per contrasto */
}

/* Colore e transizione per i link nel footer */
.text-white-50 {
    color: rgba(255, 255, 255, 0.65) !important;
}

.hover-orange {
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Hover sui link e icone social */
.hover-orange:hover {
    color: var(--orange-accent) !important;
}

/* Hover specifico per il link dei credits */
.hover-white {
    transition: color 0.3s ease;
}

.hover-white:hover {
    color: #ffffff !important;
}

/* Colore più tenue per la linea di separazione del sub-footer */
footer .border-secondary {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Evidenziatore puntatore link menu */
footer .bi-chevron-right {
    position: relative;
    top: 1px;
}
.footer-logo {
    max-width: 200px; /* Regola questo valore finché non ti piace la grandezza */
    height: auto;
    border-radius: 8px; /* Opzionale: se il tuo logo è quadrato e vuoi smussare gli angoli */
    display: block;
}