:root {
    --principale: #f80303;
    --secondario: #292828;
    --grigio-chiaro: #dddddd;
    --grigio: #aaaaaa;
    --altezza-header: 80px;
}

@font-face {
    font-family: 'Google Sans';
    src: url('GoogleSans-VariableFont.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Google Sans';
    src: url('GoogleSans-Italic-VariableFont.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

/* TAG PRINCIPALI */
html, body {
    overflow-x: hidden;
}

body {
    margin-top: var(--altezza-header);
    font-family: 'Google Sans', sans-serif;
    font-weight: 400;
}

body.modal-open {
    padding-right: 0 !important;
}

.modal {
    padding-right: 0 !important
}

.modal-open nav {
    padding-right: 0 !important;
}

.bg-sfondo {
    background-image: url('../imgs/image_footer.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: rgba(255, 255, 255, 1);
}

.bg-sfondo-2 {
    background-image: url('../imgs/image_footer.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: rgba(0, 0, 0, 1);
}

@media (max-width: 992px) {
    .bg-sfondo,
    .bg-sfondo-2 {
        background-attachment: scroll;
    }
}

nav {
    min-height: var(--altezza-header);
}

.btn-primario-2 {
    border: 1px solid var(--principale);
    background-color: white;
    color: var(--principale);
}

.btn-primario-2:hover {
    background-color: var(--principale);
    color: white;
}

.bg-principale {
    background-color: var(--principale);
    color: white;
    opacity: 0.9 !important;
}

.text-principale {
    color: var(--principale) !important;
}

.text-secondario {
    color: var(--secondario) !important;
}

.text-grigio {
    color: var(--grigio);
}

.btn {
    border-radius: var(--bs-border-radius-lg);
}

.btn-primario {
    background-color: var(--principale);
    border-color: var(--principale);
    color: white;
}

.btn-primario:hover {
    background-color: white;
    color: var(--principale);
    border-color: var(--principale);
}
.btn-whatsapp {
    background-color: #25D366;
    border-color: #fff;
    color: #fff;
}

.btn-whatsapp-outline {
    background-color: white;
    border-color: #25D366;
    color: #25D366;
}

.btn-whatsapp-outline:hover {
    background-color: #25D366;
    border-color: #25D366;
    color: white;
}

.input-group-text {
    border-top-left-radius: var(--bs-border-radius) !important;
    border-bottom-left-radius: var(--bs-border-radius) !important;
}

::marker{
    font-size:0px;
}


.form-control,
.input-group-text {
    border: 1px solid var(--grigio-chiaro);
    transition: border-color .25s linear;
}

.form-control:focus {
    border-color: var(--principale);
    box-shadow: none;
}

.d-flex-center {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.btn {
    line-height: 1 !important;
}

.accordion-button:focus {
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    color: var(--secondario) !important;
    background-color: var(--grigio-chiaro) !important;
}

.accordion-button::after {
    background-image: none !important; /* Rimuove l'icona originale */
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid currentColor; /* Crea il triangolo verso il basso */
    transition: transform 0.2s ease-in-out;
}

/* Stato aperto (quando non è cliccato/collapsed) */
.accordion-button:not(.collapsed)::after {
    background-image: none !important;
    transform: rotate(-180deg); /* Ruota il triangolo verso l'alto */
}

.w-max-content {
    width: max-content !important;
}

.vh-50 {
   height: 50vh !important;
}

.carousel-control-prev,
.carousel-control-next {
    background-color: rgba(0, 0, 0, 0.3); /* Nero al 30% di opacità */
    width: 50px;  /* Regola la larghezza del tasto */
    height: 50px; /* Regola l'altezza */
    border-radius: 50%; /* Lo rende circolare */
    top: 50%;     /* Lo centra verticalmente */
    transform: translateY(-50%);
    margin: 0 10px; /* Distanza dal bordo */
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(0, 0, 0, 0.6); /* Più scuro al passaggio del mouse */
}

.sfocato {
    background-size: cover;
    position: relative;
}

.sfocato::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    backdrop-filter: blur(5px) brightness(0.8);
    -webkit-backdrop-filter: blur(5px) brightness(0.8);
}

.fluttuante {
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.gradient-text {
    background: linear-gradient(90deg, var(--principale), var(--secondario), var(--principale));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 10s linear infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

.modern-container-white {
    background: rgba(255, 255, 255);
    border-radius: var(--bs-border-radius-xxl);
}

html.lenis {
    height: auto;
}

.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.min-vh-90 {
  min-height: 90vh !important;
}

.form-check-input {
    cursor: pointer;
}
.form-check-input:checked {
    background-color: var(--principale);
    border-color: var(--principale);
}