/* Variabili Colori */
:root {
    --primary-color: #8da399; /* Verde Salvia Calmante */
    --primary-dark: #6e827a;
    --text-dark: #333333;
    --bg-light: #f9fbfb;
}
/* Blocca lo scroll orizzontale */
html, body {
    overflow-x: hidden;
}

html {
    /* TRUCCO PER INGRANDIRE TUTTO:
       Il default dei browser è 16px. Portandolo a 18px o 20px,
       tutto il sito Bootstrap si ingrandisce proporzionalmente. */
    font-size: 18px; 
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden; /* Previene scroll orizzontale su animazioni */
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
}

/* Utilities */
.text-primary-custom { color: var(--primary-color) !important; }
.bg-light-custom { background-color: var(--bg-light); }

.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

/* Sottolineatura decorativa titoli */
.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    margin: 10px auto 0;
}

/*  -----------------------------------------------------------------------------------------------
  NAVBAR
--------------------------------------------------------------------------------------------------- */
/* Navbar */
.navbar {
    transition: all 0.4s;
    padding: 15px 0;
}

.nav-link {
    color: #555 !important;
    font-weight: 500;
}

.nav-link.active, .nav-link:hover {
    color: var(--primary-color) !important;
}

#mainNav {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/*  -----------------------------------------------------------------------------------------------
  HERO
--------------------------------------------------------------------------------------------------- */
/* Hero Section con Immagine di Sfondo e Overlay Scuro */
.hero-section {
    padding-top: 100px;
    /* ECCO IL TRUCCO:
       1. linear-gradient(...): Crea un velo nero al 50% di opacità.
          Essendo il primo della lista, sta SOPRA l'immagine.
       2. url(...): La tua immagine sta SOTTO il velo.
    */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('../img/hero.png') no-repeat center center/cover;
                
    height: 100vh;
    position: relative;
    /* Assicuriamoci che il testo sia bianco per contrastare */
    color: white; 
}

.overlay {
    background: rgba(0, 0, 0, 0.4); /* Scurisce l'immagine per leggere il testo */
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

/* Chi Sono */
.profile-img {
    border: 5px solid #fff;
}

/* Cards Servizi */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.1) !important;
}

/* Maps */
.map-container iframe {
    display: block;
    vertical-align: bottom; /* Alternativa di sicurezza */
}



/*  -----------------------------------------------------------------------------------------------
  Formazione
--------------------------------------------------------------------------------------------------- */

/* La "scatola" di ogni titolo di studio */
.education-box {
    position: relative;
    padding-left: 25px; /* Spazio per la linea colorata */
    border-left: 3px solid #e0e0e0; /* Linea grigia di base */
    transition: all 0.3s ease;
}

/* Quando passi il mouse sopra, la linea diventa blu */
.education-box:hover {
    border-left: 3px solid var(--primary-color);
    padding-left: 30px; /* Piccolo spostamento a destra per effetto dinamico */
}

/* Stile per le etichette degli anni */
.badge {
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.5em 0.8em;
}

/* Classe helper per lo sfondo del badge col tuo colore */
.bg-primary-custom {
    background-color: var(--primary-color) !important;
    color: white;
}
/*  -----------------------------------------------------------------------------------------------
  Modalità erogazione
--------------------------------------------------------------------------------------------------- */

.mode-box {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 1px solid #f0f0f0; /* Bordo sottile sopra per definizione */
}

/* Linea colorata sotto il box per dare stile */
.border-bottom-primary {
    border-bottom: 4px solid var(--primary-color);
}

/* Effetto quando passi il mouse sopra */
.mode-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* Icona leggermente più grande e spaziata */
.icon-wrapper {
    margin-bottom: 1.5rem;
}

/*  -----------------------------------------------------------------------------------------------
  WHATSAPP LINK
--------------------------------------------------------------------------------------------------- */
/* ICONA WHATSAPP FISSA */
.whatsapp-btn {
    position: fixed;
    bottom: 55px;
    right: 55px;
    z-index: 99;
    background-color: #25D366;

    width: 65px;
    height: 65px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;
    font-size: 28px;
    text-decoration: none;

    box-shadow: 0 2px 10px rgba(0,0,0,0.3);

    overflow: hidden;

    /* Animazione pulsante */
    animation: pulse 1.5s infinite;
}
.whatsapp-btn:hover {
    background-color: #20b358;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
@media (max-width: 768px) {
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 40px;
        right: 40px;
    }
}
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 14px rgba(0,0,0,0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }
}

/*  -----------------------------------------------------------------------------------------------
  COOKIES
--------------------------------------------------------------------------------------------------- */
/* ----------------------------- COOKIE MODAL MODERNO ----------------------------- */
.cookie-modal {
    display: none; /* importante! */
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 450px;
    width: 90%;
    background: rgba(255, 255, 255, 0.75); 
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 100;
    gap: 15px;
}

.cookie-modal h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.cookie-modal p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

.cookie-buttons {
    display: flex;
    justify-content: center; /* centra i pulsanti */
    gap: 15px; /* spazio tra i pulsanti */
    flex-wrap: wrap; /* adatta su più righe se necessario */
}

.btn-accept, .btn-reject {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-accept {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.4);
}

.btn-accept:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(79, 172, 254, 0.5);
}

.btn-reject {
    background: #e0e0e0;
    color: #333;
}

.btn-reject:hover {
    background: #d5d5d5;
    transform: translateY(-5px);
}

/* -----------------------------------------------------------------------------------------------
  FINE COOKIE
--------------------------------------------------------------------------------------------------- */
#containerForm {
    padding-top: 130px;
    padding-left: 20px;
}

@media (max-width: 576px) {
    #containerForm {
        padding-top: 0px;
        padding-left: 10px;
    }
}

#submitBtn{
    margin-left: 200px;
}
@media (max-width: 768px) {
    #submitBtn{
        margin-left: 75px;
    }
}
/*  -----------------------------------------------------------------------------------------------
  FOOTER
--------------------------------------------------------------------------------------------------- */
/* Effetto hover sulle icone social */
    .hover-scale {
        transition: transform 0.3s ease, color 0.3s ease;
    }
    .hover-scale:hover {
        transform: scale(1.2); /* Ingrandisce del 20% */
        color: #ffffff; /* Assicura che diventi bianco brillante */
    }
    
    /* Effetto hover sui link di testo */
    footer a:hover {
        color: #fff !important;
        text-decoration: underline !important;
    }
/*  -----------------------------------------------------------------------------------------------
  HELPERS
--------------------------------------------------------------------------------------------------- */

.rosso{border: 1px solid red;}

/* ! TEXT */
.big-text {
  font-size: 70px;
  font-weight: 900;
  color: red;                   /* colore interno del testo */
}

.sottolinea{

}

/* per schermi piccoli */
@media (max-width: 767px){
  .big-text{  
    font-size: 50px;
    color: red;
  }
}
.med-text{font-size: 30px;}
.normal-text{font-size: 20px;}
.small-text{font-size: 14px;}


body p strong {
  font-weight: 900; /* forza il grassetto pesante */
  color: black;   /* opzionale: dorato per risaltare */
}
body p em {
  font-style: italic; /* corsivo */
  color: gray;       /* opzionale: grigio per differenziare */
}

.b-radius{
    border-radius: 20px;
}

.border-black{
    border: 2px solid black;
}

.my-mt-1 { margin-top: 50px; }
.my-mt-2 { margin-top: 100px; }
.my-mt-3 { margin-top: 150px; }
.my-mt-4 { margin-top: 200px; }

.pr-150 {
    padding-right: 150px;
}

.pt-150 {
    padding-top: 150px;
}