/********** Template CSS **********/
:root {
    --primary: #EB1616;
    --secondary: #191C24;
    --light: #fffdfd;
    --dark: #000000;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 40px 0;
    color: var(--light);
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link,
    .navbar.shadow-sm .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 8px;
        border-top: 1px solid var(--light);
    }
}

@media (min-width: 992px) {
    .navbar.shadow-sm .navbar-nav .nav-link {
        padding: 20px 0;
    }

    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .85);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .85), rgba(0, 0, 0, .85)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** Service ***/
.service-item .btn {
    position: absolute;
    right: -50px;
    bottom: -50px;
    width: 50px;
    height: 50px;
    color: var(--primary);
    background: var(--dark);
    opacity: 0;
}

.service-item:hover .btn {
    right: 0;
    bottom: 0;
    opacity: 1;
}


/*** Team ***/
.team-item .team-img::before,
.team-item .team-img::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, .85);
    transition: .5s;
}

.team-item .team-img::after {
    left: auto;
    right: 0;
}

.team-item:hover .team-img::before,
.team-item:hover .team-img::after {
    width: 50%;
}

.team-item .team-img .team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
    z-index: 3;
    opacity: 0;
}

.team-item:hover .team-img .team-social {
    transition-delay: .3s;
    opacity: 1;
}

.team-item .team-social .btn {
    display: inline-flex;
    margin: 0 3px;
    color: var(--primary);
    background: var(--dark);
}

.team-item .team-social .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}


/*** Testimonial ***/
.testimonial-carousel {
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-carousel .owl-dots {
    margin-top: 35px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dots .owl-dot {
    width: 60px;
    height: 60px;
    margin: 0 5px;
    padding: 10px;
    background: var(--secondary);
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-dots .owl-dot img {
    opacity: .1;
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active img {
    opacity: 1;
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 1.5rem;
    font-size: 15px;
    background: var(--dark);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}

/* ======================================================
   CAMBIO COLORI GLOBALE PER TUTTO IL SITO
   ====================================================== */

/* 1. TESTO, ICONE E TITOLI ROSSI -> NUOVO COLORE */
.text-primary, 
p.text-primary, 
span.text-primary, 
i.text-primary, 
h1.text-primary, 
h4.text-primary, 
a .text-primary,
.navbar-dark .navbar-nav .nav-link:hover {
    color: #E4CFA6 !important; /* <--- Sostituisci #D4AF37 con il tuo colore */
}

/* 2. BOTTONI, SFPONDI E SPINNER */
.btn-primary, 
.bg-primary, 
.spinner-grow.text-primary {
    background-color: #E4CFA6 !important;
    border-color: #E4CFA6 !important;
    color: #000000 !important; /* Colore del testo dentro il bottone */
}

/* 3. EFFETTO MOUSE (HOVER) SUI BOTTONI */
.btn-primary:hover {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
}

/* 4. BORDI */
.border-primary {
    border-color: #E4CFA6 !important;
}

/* ======================================================
   CAMBIO DEL RESTO DEI COLORI (SFONDI, CARDS E TESTI)
   ====================================================== */

/* 1. SFONDO DEI RIQUADRI, NAVBAR, CARDS E MODALI (ex blu/grigio scuro) */
.bg-secondary {
    background-color: #1a1a1a !important; /* <--- Inserisci il colore dei riquadri */
}

/* 2. SFONDO GENERALE DELLA PAGINA E CAMPI DI TESTO (ex nero) */
body, .bg-dark {
    background-color: #111111 !important; /* <--- Inserisci lo sfondo principale */
}

/* 3. CAMPI DI TESTO E SELEZIONABILI (INPUT E SELECT) */
.form-control, .form-select {
    background-color: #262626 !important; /* Sfondo delle caselle dove si scrive */
    color: #ffffff !important;           /* Colore del testo digitato */
    border: 1px solid #404040 !important; /* Bordo delle caselle */
}

/* 4. COLORE DEL TESTO PRINCIPALE DELLA PAGINA */
body, p, label, .text-white {
    color: #e0e0e0 !important; /* Grigio chiarissimo / Bianco */
}

/* ======================================================
   COLORI MENU DI NAVIGAZIONE (NAVBAR)
   ====================================================== */

/* 1. Colore normale dei link (HOME, CHI SIAMO, ecc.) */
.navbar .navbar-nav .nav-link {
    color: #ffffff !important; /* <--- Incolla il colore desiderato (es. #ffffff per Bianco) */
}

/* 2. Colore quando ci passi sopra con il mouse o della pagina attiva */
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: #E4CFA6 !important; /* <--- Colore di evidenziamento (es. Oro) */
}


/* ======================================================
   COLORI SELETTORE DATA (CALENDARIO)
   ====================================================== */

/* 1. SELETTORE NATIVO DEL BROWSER (HTML5 <input type="date">) */
input[type="date"] {
    color-scheme: dark !important;     /* Usa 'dark' per popup scuro o 'light' per chiaro */
    accent-color: #E4CFA6 !important; /* Cambia il colore del cerchio di selezione (es. Oro) */
}

/* Icona del calendario dentro la casella di testo */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) sepia(100%) saturate(1000%) hue-rotate(10deg); /* Cambia colore icona */
    cursor: pointer;
}

/* 2. SELETTORE CUSTOM / PLUGIN JAVASCRIPT (es. Flatpickr, Datepicker) */
.flatpickr-calendar, 
.datepicker, 
.ui-datepicker,
.dropdown-menu {
    background-color: #1a1a1a !important; /* Sfondo del riquadro */
    border: 1px solid #333333 !important;
    color: #ffffff !important;
}

/* Giorno selezionato e passaggio del mouse */
.flatpickr-day.selected, 
.datepicker td.active, 
.ui-datepicker td a.ui-state-active,
.flatpickr-day:hover {
    background-color: #E4CFA6 !important;
    border-color: #E4CFA6  !important;
    color: #000000 !important;
}

/* ======================================================
   PARTE SUPERIORE DEL CALENDARIO (HEADER MESE E GIORNI)
   ====================================================== */

/* 1. TESTATA SUPERIORE (Mese "Settembre 2026" e freccette) */
.flatpickr-months,
.flatpickr-month,
.flatpickr-current-month,
.datepicker-header,
.ui-datepicker-header,
.datepicker table thead tr:first-child {
    background-color: #1a1a1a !important; /* <--- Sfondo della fascia superiore */
    color: #ffffff !important;           /* Colore del testo "Settembre 2026" */
}

/* 2. FRECCETTE DI NAVIGAZIONE (< e >) */
.flatpickr-prev-month,
.flatpickr-next-month,
.ui-datepicker-prev,
.ui-datepicker-next {
    fill: #E4CFA6 !important;  /* Colore freccia se SVG */
    color: #E4CFA6 !important; /* Colore freccia se testo/icona */
}

/* 3. FASCIA DEI GIORNI DELLA SETTIMANA (Lun, Mar, Mer, Gio...) */
.flatpickr-weekdays,
span.flatpickr-weekday,
.datepicker th,
.ui-datepicker th,
.datepicker table thead tr:last-child {
    background-color: #222222 !important; /* Sfondo riga dei giorni */
    color: #E4CFA6 !important;           /* Colore scritte "Lun", "Mar", ecc. */
}

/* 4. PER CALENDARIO NATIVO DEL BROWSER (HTML5) */
input[type="date"]::-webkit-calendar-picker-indicator {
    background-color: transparent;
}


/* ======================================================
   1. BORDO E CONTORNO DELLA CELLA ORARIO SELEZIONATA
   ====================================================== */
.time-slot.selected,
.time-slot.active,
.time-slot-container.active,
.time-slot:focus {
    border: 2px solid #E4CFA6 !important;  /* Colore del bordo principale */
    outline: 2px solid #e4cfa6 !important; /* Elimina il contorno esterno blu/grigio */
    box-shadow: 0 0 10px rgba(228, 207, 166, 0.4) !important; /* Bagliore opzionale */
}

/* ======================================================
   2. MENU A TENDINA DEI MESI DELL'ANNO (DROPDOWN)
   ====================================================== */

/* Sfondo e testo della tendina dei mesi */
.flatpickr-monthDropdown-months,
.flatpickr-monthDropdown-month,
.datepicker select,
select {
    background-color: #1a1a1a !important; /* Sfondo scuro del menu */
    color: #ffffff !important;           /* Colore delle scritte dei mesi */
    border: 1px solid #333333 !important;
}

/* Singole voci dei mesi nella lista */
.flatpickr-monthDropdown-months option,
.datepicker select option,
select option {
    background-color: #1a1a1a !important; /* Sfondo di ciascun mese */
    color: #ffffff !important;           /* Colore del testo */
}

/* Mese attualmente selezionato o evidenziato (SOSTITUISCE IL BLU) */
.flatpickr-monthDropdown-months option:checked,
.flatpickr-monthDropdown-months option:hover,
select option:checked,
select option:hover {
    background-color: #E4CFA6 !important; /* Sfondo del mese scelto (es. Oro) */
    color: #000000 !important;           /* Testo nero per contrasto */
}





/* ======================================================
   COLORI SLOT ORARI (PRENOTAZIONE)
   ====================================================== */

/* 1. SLOT DISPONIBILI (Stato normale) */
.time-slot {
    background-color: #1a1a1a !important; /* Sfondo dello slot */
    color: #e0e0e0 !important;           /* Colore dell'orario */
    border: 1px solid #333333 !important; /* Bordo della casella */
}

/* 2. PASSAGGIO DEL MOUSE (Hover) */
.time-slot:hover {
    background-color: #E4CFA6 !important; /* Nuovo colore (es. Oro) */
    border-color: #E4CFA6  !important;
    color: #000000 !important;           /* Testo scuro per contrasto */
}

/* 3. SLOT SELEZIONATO (Sostituisce il ROSSO dell'immagine) */
.time-slot.selected,
.time-slot.active {
    background-color: #E4CFA6 !important; /* Sfondo della casella scelta */
    border-color: #E4CFA6    !important;
    color: #000000 !important;           /* Colore del testo scelto */
}

/* 4. SLOT GIÀ OCCUPATI O DISABILITATI (Quelli sbarrati) */
.time-slot.occupied,
.time-slot.disabled,
.time-slot:disabled {
    background-color: #222222 !important; /* Sfondo disattivato */
    color: #555555 !important;           /* Testo grigio scuro */
    border-color: #2a2a2a !important;
    opacity: 0.6;
}




/* ======================================================
   FRECCE DI NAVIGAZIONE DEL CALENDARIO (< e >)
   ====================================================== */

/* 1. FRECCE IN STATO NORMALE */
.flatpickr-prev-month,
.flatpickr-next-month,
.flatpickr-prev-month svg,
.flatpickr-next-month svg,
.datepicker .prev,
.datepicker .next,
.ui-datepicker-prev,
.ui-datepicker-next {
    color: #E4CFA6 !important;  /* Per frecce create come testo/font icona */
    fill: #E4CFA6 !important;   /* Per il riempimento di frecce SVG */
    stroke: #E4CFA6  !important; /* Per i contorni di frecce SVG */
}

/* 2. FRECCE AL PASSAGGIO DEL MOUSE (Hover) */
.flatpickr-prev-month:hover,
.flatpickr-next-month:hover,
.flatpickr-prev-month:hover svg,
.flatpickr-next-month:hover svg,
.datepicker .prev:hover,
.datepicker .next:hover {
    color: #ffffff !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
}
