body {
    font-family: 'Montserrat', sans-serif;
}

a {
    -webkit-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
    text-decoration: none;
}

nav.navbar {
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
}

.banner-section {
    position: relative;
    overflow: hidden;
}

img.banner-image {
    height: 100%;
    width: 100%;
    -o-object-fit: contain;
    object-fit: contain;
    position: absolute;
    left: 0;
    top: 0;
}

.banner-text {
    margin: -5px 0;
}

.floating-title {
    position: absolute;
    top: 0%;
    left: 50%;
    font-size: 17vmin;
    font-weight: 800;
    opacity: 0.1;
    max-width: 900px;
    z-index: -2;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
}

main {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

a.event-main-link {
    background: white;
    color: black;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

a.event-main-link img {
    height: 500px;
    width: 100%;
    -o-object-fit: contain;
    object-fit: contain;
}

a.event-main-link:hover {
    background: #111111 !important;
    background-color: gray;
    color: white;
}

a.event-link {
    color: white;
    padding: 1.5rem;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

a.event-link:hover {
    color: white;
    border: 0.5rem solid !important;
    border-color: #e30613 !important;
}

a.event-link img {
    height: 350px;
    width: 100%;
    -o-object-fit: contain;
    object-fit: contain;
}

a.see-more {
    font-size: 1rem;
    font-weight: 500;
    display: inline-block;
    background: white;
    color: black;
    padding: 0.3rem 1rem;
    -webkit-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
    border: 2px solid white;
}

a.see-more:hover {
    background: black;
    color: white;
}

a.see-more.btn-big {
    font-size: 1.25rem;
    padding: 0.5rem 1.2rem;
}

.h-scrolling-block {
    width: 100%;
}

@media (min-width: 992px) {
    .h-scrolling-block {
        position: absolute;
        bottom: 0;
        left: 0;
        z-index: -1;
    }
}

.h-scrolling-block > .row {
    min-width: 1200px;
}

.h-scrolling-block img {
    height: 240px;
    width: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    padding: 10px;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.social-links a {
    font-size: 1.5rem;
    background-color: black;
    color: white;
    border: 2px solid black;
}

.social-links a:hover {
    color: black;
    background-color: white;
}

.go-to-top {
    position: fixed;
    right: 50%;
    bottom: 0px;
    -webkit-transform: translateX(50%);
    -ms-transform: translateX(50%);
    transform: translateX(50%);
    background-color: black;
    color: white;
    border: none;
    font-size: 1.5rem;
    padding: 0rem 0.5rem;
    -webkit-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.go-to-top:hover {
    color: white;
    background-color: #555;
}

.bg-black {
    background: #111111;
}

.p-4-mod {
    padding: 0.5rem !important;
}

.bg-trasparent-mod {
    background: #111111 !important;
    background-color: #111111 !important;
}

.gt_float_switcher .gt-selected .gt-current-lang {
    padding: 2px 2px !important;
    background-color: black !important;
    color: white !important;
    font-size: 15px !important;
}

.gt_options a {
    padding: 3px 3px !important;
    font-size: 13px !important;
    background-color: black !important;
    color: white !important;
}

.iti__country {
    color: black !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #e30613 !important;
}

/* ===== DESKTOP: submenu laterale ===== */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-left: .15rem;
}

/* ===== MOBILE: submenu a colonna ===== */
@media (max-width: 991px) {
    /* Disattiva posizionamento laterale */
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        inset: auto !important;
    }

    /* Submenu animato */
    .dropdown-submenu > .dropdown-menu {
        padding-left: 15px;
        border-left: 2px solid #444;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.35s ease;
    }

    .dropdown-submenu > .dropdown-menu.show {
        max-height: 500px;

        /* spazio sufficiente per 3-5 voci */
        opacity: 1;
    }

    /* Freccetta */
    .submenu-arrow {
        transition: transform 0.3s ease;
    }

    .dropdown-submenu > a.active .submenu-arrow {
        transform: rotate(90deg);

        /* ► diventa ▼ */
    }
}

/* ===== DESKTOP: submenu on hover ===== */
@media (min-width: 992px) {
    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
        margin-left: 0.1rem;
    }

    /* freccetta ruota su hover */
    .dropdown-submenu:hover > a .submenu-arrow {
        transform: rotate(90deg);
    }
}


/* Contenitore orizzontale su desktop */
.service-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap; /* 🔥 permette di diventare verticale su mobile */
}

/* Contenitore pulsanti */
.service-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap; /* 🔥 importantissimo per mobile */
}

/* Nascondi checkbox */
.service-btn input[type="checkbox"] {
    display: none;
}

/* Stile pulsanti */
.service-btn span {
    padding: 10px 22px;
    border: 2px solid #ffffff;
    border-radius: 30px;
    color: #ffffff;
    transition: all 0.25s ease;
    display: inline-block;
}

.service-btn:hover span {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Stato attivo (rosso brand) */
.service-btn input[type="checkbox"]:checked + span {
    background-color: #e30613;
    border-color: #e30613;
    color: #ffffff;
}

/* 🔥 Responsività vera */
@media (max-width: 576px) {
    .service-row {
        flex-direction: column;   /* label sopra, pulsanti sotto */
        align-items: flex-start;  /* allinea tutto a sinistra */
        gap: 8px;
    }

    .service-buttons {
        gap: 10px;
        width: 100%;
    }

    .service-btn span {
        padding: 10px 18px; /* un po' più piccoli su mobile */
    }
}
