/* Stile base pagine */
body {
    min-height: 100vh;
    margin: 0;
    font-family: 'Times New Roman', Times, serif; 
    background-color: white;
    overflow-x: hidden;
    overflow-y: auto;
}
/* evidenziatore titoli, sottotitoli e testi */
.highlight {
    background-color: #ffdfec;
    padding: 5px;
    border-radius: 30px;
}
/* Container principale */
.container {
    width: 100%;
    max-width: 1200px;
    min-height: 100vh; 
    overflow-x: hidden; 
}
.content {
    padding: 2rem;
    text-align: center;
    background-color: transparent;
}
html, body {
    height: 100%;
}
/* Sezioni della pagina */
.section {
    padding: 1rem;
    margin: 0; 
    max-width: 1200px; 
}
.fixed-top {
    position: fixed; 
    top: 0;
    width: 100%;
    z-index: 1000;
}
/* Stile della navigazione */
.navbar {
    position: fixed; 
    top: 0;
    width: 100%;
    z-index: 1000; 
}

/* Imposta il colore di sfondo e il padding della navigazione */
.navbar {
    background-color: #fff;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
}

/* Media query per schermi grandi */
@media (min-width: 1200px) {
    .navbar-brand {
        font-size: 2.5rem;
    }
    .navbar-nav {
        flex-wrap: nowrap; 
        justify-content: flex-end; 
    }
    .navbar-nav .nav-link {
        font-size: 1rem; 
    }
    .dropdown-menu {
        max-height: calc(100vh - 100px); 
        overflow-y: auto; 
        right: 0; 
        left: auto; 
    }
    .logo {
        max-width: 350px;
    }
}
/* Cambia il colore delle linee del menu hamburger */
.navbar-dark .navbar-toggler-icon {
    filter:invert(100%) grayscale(100%); /* Rende le linee completamente nere */
}
/* Stile per il testo intro */
.intro-text {
    text-align: center;
    padding: 1rem;
    background-color: #ffdfec;
    margin-bottom: 2rem;
}
.intro-text h1 {
    font-size: 2rem;
    color: #000000; 
}
.intro-text p {
    font-size: 1.2rem;
    color: #000000; 
}
h2 {
    font-size: 2rem;
    color: black;
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
}
/* Stile per il titolo delle sezioni */
.text-sezione h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 0.5rem;
}
h4 {
    font-size: 10rem;
    color: black;
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.intro-text p {
    font-size: 1.2rem;
    color: #000000; 
}
/* Stile per il link del menu */
.navbar-brand {
    display: flex;
    align-items: center; 
    font-size: 1.5rem; 
}
/* Stile per il menu */
.navbar {
    padding: 0.5rem 1rem; 
    background-color: transparent; 
    background-image: url('loghi/logoRosa.png');
    background-size: cover; 
    background-position: 20px 32%; 
    background-repeat: repeat; 
    position: relative;
}
/* Navbar Links */
.navbar-nav .nav-link {
    color: black !important;
    text-decoration: none;
    font-family: 'Times New Roman', Times, serif;
    position: relative;
    transition: background-color 0.3s ease-in-out;
    padding: 8px 10px;
}
/* Hover effect per i link */
.navbar-nav .nav-link:hover {
    color: rgb(253, 250, 250);
}
/* Colore di sfondo quando il link è attivo */
.navbar-nav .nav-link.active {
    background-color: rgba(236, 234, 234, 0.61);
    color: rgb(5, 5, 5);
}
/* Rettangolo evidenziatore */
.navbar-nav .nav-link::before {
    content: ""; 
    position: absolute; 
    left: 0;
    right: 0;
    top: 50%; 
    height: 40px; 
    background-color: rgba(243, 242, 243, 0.671); 
    border-radius: 30px;
    transform: translateY(-50%); 
    opacity: 0;
    transition: opacity 0.3s ease;
}
/* Mostra l'evidenziatore al passaggio del mouse */
.navbar-nav .nav-link:hover::before {
    opacity: 0.5;
}
/* Stile per il menu a discesa */
.dropdown-menu {
    background-color: transparent;
    border-radius: 30px;
    min-width: 200px;
    padding: 1rem;
}
/* Elementi nel menu a discesa */
.dropdown-item {
    font-size: 1rem;
    color: black;
    background: transparent;
    border-radius: 30px;
    padding: 0.5rem 1rem;
    transition: background 0.3s ease;
}
/* Contenitore del logo */
.logo-container {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}
/* CSS per il logo */
.logo {
    max-width: 300px;
    height: auto;
    opacity: 0.3;
}
/* Carosello */
.carousel {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}
/* Contenitore delle immagini */
.carousel-inner {
    display: flex;
    width: 100%;
    height: 60%;
}
.carousel-item {
    min-width: 100%;
    transition: transform 0.5s ease-in-out;
}
.carousel-item img {
    width: 100%;
    height: 400px;
    object-fit: cover; 
    object-position: center;
}
/* Stile per la didascalia */
.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5); 
    color: #fff;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.carousel-item:hover .carousel-caption {
    opacity: 1; 
}
.carousel-caption h5 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: bold;
}
.carousel-caption a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}
.carousel-caption a:hover {
    border-bottom: 1px solid #fff;
}
/* Controlli del carosello */
.carousel-control-prev, .carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px; 
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5); 
    border-radius: 50%;
    z-index: 10;
}
.carousel-control-prev {
    left: 20px;
}
.carousel-control-next {
    right: 20px;
}
@media (max-width: 768px) {
    .carousel-caption h5 {
        font-size: 1.2rem;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 20px;
        height: 20px;
    }
    .carousel-item img {
        
        height: 300px;
        object-position: center;
    }
}
/* Stile per la sezione di testo in fondo alla pagina */
.footer-text {
    background-color: #f1f1f1;
    color: #333;
    text-align: center; 
    padding: 2rem;
    margin-top: 5px;
    margin-bottom: 5px;
}
.footer-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.footer-text p {
    font-size: 1rem;
    line-height: 1.5; 
}
/* Stile per la sezione pink-section */
.pink-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    background-color: #ffdfec;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    width: 100%;
    margin: 0 auto;
}
/* Stile per i titoli e paragrafi */
.pink-section h3 {
    font-size: 1.5rem;
    color: black;
    margin-bottom: 0.5rem;
    text-align: center;
}

.pink-section p, .pink-section a {
    font-size: 1.2rem;
    color: black;
    margin: 0.5rem 0;
    text-align: center;
    text-decoration: none;
}
/* Sezione collegamenti rapidi */
.full-width-section {
    background-color: #ECB7CB;
    padding: 2rem; 
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    margin: 0;
    width: 100%;
    overflow: hidden;
}
.full-width-section .content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}
.pink-section a {
    display: block;
    margin: 0.5rem 0;
}
.pink-section a:hover {
    text-decoration: underline;
}
/* Layout per schermi più grandi */
@media (min-width: 768px) {
    .pink-section {
        flex-direction: row;
        justify-content: space-between;
    }
    .pink-section > div {
        flex: 2;
        margin: 0 0.5rem;
        text-align: center;
    }
    .pink-section p, .pink-section a {
        text-align: center;
    }
}
@media (max-width: 767px) {
    .pink-section > div {
        margin-bottom: 1rem;
    }
}
/* Stile per il cerchio attorno al triangolo*/
.scroll-to-top {
    position: relative;
    width: 50px; 
    height: 50px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none; 
    transition: background-color 0.3s ease;
}
/* Stile per il triangolo */
.scroll-to-top .triangle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 12px solid black; 
}
.intro-text {
    text-align: center;
}
/* Personalizzazione delle dimensioni delle immagini */
.img-small {
    width: 100px;
    height: auto;
}
.img-medium {
    width: 300px;
    height: auto;
}
.img-large {
    width: 1000px;
    height: auto;
}
.img-custom {
    width: var(--img-width, 100%);
    height: var(--img-height, auto);
}
/* Personalizzazione del testo */
.text-small {
    font-size: 0.8rem;
}
.text-medium {
    font-size: 1.2rem;
}
.text-large {
    font-size: 1.5rem;
}
.text-custom {
    font-size: var(--text-size, 1rem);
    color: var(--text-color, #000);
    text-align: center;
}
/* Funzione CSS per dimensioni e margini dell'immagine */
.img-custom-size {
    width: var(--img-width, 100%);
    height: var(--img-height, 50px);
    margin-top: var(--img-margin-top, 0);
    margin-right: var(--img-margin-right, 0);
    margin-bottom: var(--img-margin-bottom, 0);
    margin-left: var(--img-margin-left, 0); 
    object-fit: var(--img-object-fit, cover);
    border-radius: var(--img-border-radius, 0); 
}
/* Immagini che si adattano a schermo intero */
.img-fullscreen {
    width: 100vw;
    height: 100vh;
    object-fit: cover; 
}
/* Immagini che si adattano al contenitore */
.img-container-fit {
    width: 100%;
    height: auto; 
    object-fit: contain;
}
.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
}
/* Stile per il pulsante di chiusura */
.lightbox .close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2em;
    color: #fff;
    cursor: pointer;
    z-index: 1001;
}
/* sezione loghi sponsor */
.footer-text {
    background-color: #f8f9fa;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
    margin: 0;
}
.gallery-loghi {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.gallery-item-loghi {
    margin: 10px;
}
/* Schermata di caricamento */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}
#loading-logo {
    width: 100px; 
    height: 100px;
    animation: rotate-logo 2s linear infinite;
}
/* Anima il logo */
@keyframes rotate-logo {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
/* Adattamenti per schermi più piccoli */
@media (max-width: 768px) {
    #loading-logo {
        width: 80px;
        height: 80px;
    }
}
/* Adattamenti per schermi più grandi */
@media (min-width: 1200px) {
    #loading-logo {
        width: 120px;
        height: 120px;
    }
}
/* Stili per la tabella della classifica */
.table-classifica {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-collapse: separate;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 30px;
    overflow: hidden;
}
.table-classifica th, .table-classifica td {
    padding: 1.5rem; 
    text-align: center;
    border-bottom: 2px solid #ffdfec; 
    border-right: 2px solid #ffdfec; 
}
.table-classifica th {
    background-color: #ffdfec;
    color: black;
}
.team-logo {
    width: 30px;
    height: 30px;
}
/* Stili per tabelle home page */
.table-classifica tr:hover {
    background-color: #ffffff;
}
.table-container {
    background-color: black;
    border: 2px solid black; 
    padding: 20px; 
    max-width: 1000px; 
    margin: 20px auto;
    border-radius: 30px;
    color: white;
}
.table-classifica {
    width: 100%; 
    color: rgb(7, 6, 6);
    text-align: center;
    border-collapse: collapse;
}
.table-classifica th, .table-classifica td {
    padding: 10px; 
    border: 0.1px solid rgb(255, 255, 255); 
}
.table-classifica tr:hover {
    background-color: #ffffff; 
    color: black; 
}
@media (max-width: 768px) {
    .table-container {
        max-width: 90%; 
        padding: 10px;
    }
}
/* galleria foto indoor-prato */
.gallery-indoor-prato {
    display: flex; 
    flex-wrap: wrap; 
}
.gallery-item-indoor-prato {
    flex: 1 1 calc(30% - 10px); 
    margin: 5px; 
    overflow: hidden; 
}
.gallery-item-indoor-prato img {
    width: 100%; 
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 30px; 
}
@media (min-width: 769px) {
    .gallery-item-indoor-prato {
        flex: 1 1 calc(25% - 10px); 
    }
}
/* Stili per la Galleria */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-gap: 10px;
    padding: 20px;
}
.gallery-item {
    position: relative;
    background-color: rgb(255, 255, 255);
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    grid-column: span 1;
}
.gallery-item.wide {
    grid-column: span 2;
}
.gallery-item.tall {
    grid-row: span 2;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
    backface-visibility: hidden;
    display: block;
    border-radius: 10px;
}
.gallery-item img:hover {
    transform: scale(1.05);
}
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.lightbox.active {
    display: flex;
}
.lightbox img {
    max-width: 90%;
    max-height: 90%;
}
/* Stile per il banner della mappa */
.map-banner {
    padding: 0.5rem 0;
    background-color: #ffdfec;
    text-align: center;
    margin-top: 0;
}
.map-banner h2 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #070606;
    margin: 0.5rem 0;
}
/* Stile per i paragrafi */
.map-banner p, .map-banner ul {
    font-weight: 500;
    font-size: 1rem;
    color: black;
    margin-top: 0.2rem;
}
.map-container {
    max-width: 100%;
    height: 450px;
    margin-top: 1px;
}
.map-container iframe {
    width: 85%;
    height: 100%;
    border: none;
}
/* Stile di base per le mini gallery home */
.gallery-mini {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    margin-top: 0;
    margin-bottom: 0;
    padding: 20px;
}
.gallery-mini-item {
    flex: 1 1 calc(25% - 20px);
    max-width: calc(25% - 20px);
    cursor: pointer;
    opacity: 0; 
    transform: translateY(20px);
    transition: all 0.5s ease; 
}
.gallery-mini-item.in-view {
    opacity: 1; 
    transform: translateY(0);
}
.gallery-mini-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 30px;
    transition: transform 0.3s ease;
}
.gallery-mini-item:hover img {
    transform: scale(1.05);
}
@media (max-width: 1024px) {
    .gallery-mini-item {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}
@media (max-width: 768px) {
    .gallery-mini-item {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}
@media (max-width: 480px) {
    .gallery-mini-item {
        flex: 1 1 100%;
        max-width: 100%;
    }
}
/* Contenitore delle foto nella storia */
.gallery-story {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 0;
    margin-bottom: 0;
    padding: 20px;
}
.gallery-story-item {
    opacity: 0; 
    transform: translateX(100%); 
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.gallery-story-item.visible {
    opacity: 1; 
    transform: translateX(0);
}
.gallery-story-item img {
    position: static;
    width: 100%;
    height: auto;
    max-height: 25vh;
    object-fit: cover;
    border-radius: 30px;
    transition: transform 0.3s ease;
}
.gallery-story-item:hover img {
    transform: scale(1.05);
}
@media (min-width: 1025px) {
    .gallery-story-item {
        flex: 1 1 calc(25% - 20px);
        max-width: calc(25% - 20px);
    }
}
@media (max-width: 768px) {
    .gallery-story-item {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}
@media (max-width: 480px) {
    .gallery-story-item {
        flex: 1 1 100%;
        max-width: 100%;
    }
}
/* Stile generale sezione squadra */
.sezione {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #ffdfec;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0; 
    transform: translateX(-100%); 
    transition: all 0.8s ease-in-out; 
    width: 100%;
}
@media (min-width: 1025px) {
    .container {
        display: flex;
        flex-wrap: wrap;
        gap: 2rem;
    }
    .sezione {
        width: 48%;
        margin-bottom: 2rem;
    }
}
@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0); 
    }
}
.sezione.in-view {
    opacity: 1;
    transform: translateX(0); 
}
.text-sezione {
    flex-basis: 50%;
    padding-left: 2rem;
}
.text-sezione.text-left {
    text-align: left;
}
.image-contenitore {
    flex-basis: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.image-wrapper {
    position: relative;
}
.image-front, .image-back {
    width: 100%;
    border-radius: 30px;
    transition: opacity 0.5s ease;
}
.image-back {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 1;
}
.image-wrapper.flipped .image-back {
    opacity: 1;
}
.image-wrapper.flipped .image-front {
    opacity: 0;
}
.intro-text {
    margin-top: 90px;
}
@media (max-width: 768px) {
    .intro-text {
        margin-top: 8px;
        margin-bottom: 8px;
    }
    .sezione {
        width: 100%;
    }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .intro-text {
        margin-top: 16px;
        margin-bottom: 16px;
    }
}
/* Spaziatura per schermi grandi */
@media (min-width: 1025px) {
    .intro-text {
        margin-top: 24px;
        margin-bottom: 8px;
    }
}
.confirmation-message {
    padding: 15px;
    margin: 20px 0;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    font-weight: bold;
}
/* Estetica generale dei form erasmus e sponsor */
.custom-form {
    width: 80%;
    max-width: 800px;
    margin: 1rem auto;
    padding: 20px;
    border: 2px solid #ECB7CB; 
    border-radius: 30px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* Estetica dei campi di input */
.custom-form .form-control {
    width: 100%;
    padding: 10px;
    margin-bottom: 50px;
    border: 1px solid #ccc;
    border-radius: 30px;
    font-size: 16px;
}
/* Cambia il bordo degli input quando sono selezionati */
.custom-form .form-control:focus {
    border-color: #ECB7CB;
    box-shadow: 0 0 5px rgba(236, 183, 203, 0.5); 
    outline: none;
}
/* Estetica del bottone */
.custom-form .btn {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #ECB7CB;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
/* Cambia il colore del bottone al passaggio del mouse */
.custom-form .btn:hover {
    background-color: #000000; 
}
/* Sezione form per contattarci */
.contact-form-section {
    background-color: #f8f9fa;
    padding: 2rem;
    margin-top: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: auto;
}
.contact-form-section h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #333;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}
.form-control {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.form-control:focus {
    border-color: #f8f8f8;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.993);
    outline: none;
}
.response-message {
    display: none;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 20px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    z-index: 9999;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
.response-message.success {
    background-color: green;
}
.response-message.error {
    background-color: red;
}
.btn {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background-color: #ffffff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
}
.btn:hover {
    background-color: #000000;
}
.btn-primary:focus, 
.btn-primary:active {
    background-color: #000000!important;
    box-shadow: none!important;
    outline: none; 
}
/* Sezione video */
.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    padding-top: 56.25%; /* Questo mantiene il rapporto di aspetto 16:9 */
    margin: 0 auto;
    border-radius: 30px;
    overflow: hidden;
    background-image: url('https://www.xeneizehockeyclub.com/css/loghi/logoRosa.png'); /* Immagine di anteprima */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 30px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0; /* Nasconde il video prima del play */
    transition: opacity 0.5s ease;
    object-fit: cover;
}
.video-container video.playing {
    opacity: 1; /* Mostra il video quando è in riproduzione */
}
/* vignetta consenso privacy policy */
.tooltip-box {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 30px;
    width: 300px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
}
.tooltip-trigger {
    color: #ECB7CB;
    cursor: pointer;
    position: relative;
}
.tooltip-trigger:hover {
    text-decoration: underline;
}
/* Contenitore generale della sezione sponsor */
.sponsor-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.sponsor-section.slide-in-right {
    transform: translateX(100px); /* dx */
}
.sponsor-section.slide-in-left {
    transform: translateX(-100px); /* sx */
}
.sponsor-section.visible {
    opacity: 1;
    transform: translateX(0);
}
.title-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.logo {
    width: 170px;
    height: auto;
    opacity: 1;
}
.sponsor-section p {
    font-size: 1rem;
    line-height: 1.5;
    text-align: left;
    color: #333;
}
.sponsor-section iframe {
    width: 100%;
    height: 400px;
    border: 0;
    margin-top: 20px;
}
@media (max-width: 576px) {
    .sponsor-section {
        flex-direction: column;
        align-items: center;
    }
    .title-container {
        align-items: center;
    }
}
@media (min-width: 577px) and (max-width: 991px) {
    .sponsor-section {
        flex-direction: column;
        align-items: center;
    }
    .title-container {
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }
    .logo {
        width: 180px;
    }
    .sponsor-section p {
        margin-left: 10px;
    }
    .sponsor-section iframe {
        width: 100%;
        height: 250px;
        margin-top: 20px;
    }
}
@media (min-width: 992px) {
    .sponsor-section {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
    .title-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .sponsor-section iframe {
        width: 55%;
        height: 100%;
        margin: 0;
    }
    .sponsor-section > p {
        max-width: 50%;
        margin-top: 20px;
    }
}
