@font-face {
    font-family: 'Rockwell Nova';
    src: local('Rockwell Nova'),
        local('Rockwell Nova Regular'),
        url('/assets/fonts/RockwellNova.woff2') format('woff2'),
        url('/assets/fonts/RockwellNova.woff') format('woff'),
        url('/assets/fonts/RockwellNova.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rockwell Nova Bold';
    src: local('Rockwell Nova Bold'),
        local('Rockwell Nova Bold'),
        url('/assets/fonts/RockwellNova-Bold.woff2') format('woff2'),
        url('/assets/fonts/RockwellNova-Bold.woff') format('woff'),
        url('/assets/fonts/RockwellNova-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url('/assets/fonts/HelveticaNeueLTStd-Roman.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Helvetica Neue Bold';
    src: url('/assets/fonts/HelveticaNeueLTStd-Bd.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Helvetica Neue Bold Condensed';
    src: url('/assets/fonts/HelveticaNeueLTStd-BdCn.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Helvetica Neue Ext';
    src: url('/assets/fonts/HelveticaNeueLTStd-Ex.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Helvetica Neue Bold Ext';
    src: url('/assets/fonts/public/HelveticaNeueLTStd-Ex.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Helvetica Neue Medium Condensed';
    src: url('/assets/fonts/HelveticaNeueLTStd-MdCn.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Helvetica Neue Condensed';
    src: url('/assets/fonts/HelveticaNeueLTStd-Cn.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Helvetica Neue Italic';
    src: url('/assets/fonts/HelveticaNeueLTStd-It.otf') format('opentype');
    font-weight: normal;
    font-style: italic;
}

/* TYPOGRAFY */
H1 {
    font-family: 'Helvetica Neue Ext' !important;
    font-weight: normal;
    align-items: center;
    font-size: 48px;
    margin-bottom: 26px;
    letter-spacing: 0.55px;
    color: #12747f !important
}

.occhiello {

    font-family: 'Rockwell Nova', Rockwell, 'Courier New', Georgia, serif;
    font-size: 26px;
    font-weight: bold;
    color: black;
    letter-spacing: 1.3px;
    margin-left: -20px !important;

    text-transform: uppercase;
    z-index: 10;


}

h1 {
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 52px
}

p {
    font-size: 16px;
    line-height: 20px;
    margin-bottom: 6px
}

.occhiello::before {
    content: '';
    display: inline-block;
    width: 21px;
    height: 22px;
    background-image: url('/assets/images/tai.png');
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 0px;
    margin-top: 2px;
    position: relative;
    z-index: 1;
}

h2 {
    font-family: 'Rockwell Nova', Rockwell, 'Courier New', Georgia, serif;
    font-weight: bold;
}

a {
    text-decoration: none !important;
    color: #424242
}

.breadcrumb-item.active {
    font-weight: bold;
    color: #12747f !important
}

/* MENU */
.navbar-custom {
    background-color: #12747f;
    /* Verde scuro elegante */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    padding: 0;
    padding-bottom: 5px;
    border-radius: 0 !important;
    overflow: visible !important;
}

/* Il container-fluid dentro la navbar non deve avere overflow hidden */
.menu-wrapper .container-fluid {
    overflow: visible !important;
}

.menu-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: none;
    overflow: visible !important;
}

.menu-wrapper.fixed-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    animation: none;
}

/* Nascondi il logo quando il menu è fisso */
body.menu-scrolled .logo-container {
    display: none !important;
}

body.menu-scrolled .menu-wrapper {
    top: 0;
    /* Compensa il salto con padding-top */
    padding-top: 0;
}

body.menu-scrolled {
    /* Aggiungi padding-top per compensare l'altezza del menu fisso */
    padding-top: 0;
}

.navbar-custom .navbar-brand {
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    padding: 1rem 1.5rem;
    letter-spacing: 0.5px;
}

.navbar-custom .navbar-brand:hover {
    color: #e8f5e9;
}

.navbar-custom .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-family: 'Rockwell Nova', Rockwell, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 500;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 0.9rem !important;
    position: relative;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    height: 100%;
    margin-left: 2px !important;
    margin-right: 2px !important;
}

.navbar-custom .nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

/* TIPOGRAFY */

/* HEADER */
.navbar-custom .nav-link.active {
    color: #f1db14;
    font-weight: 700 !important;
}

.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    bottom: 7px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #ffd740;
    /* Giallo oro accentuato */
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-custom .nav-link:hover::after {
    width: 80%;
}

/* Dropdown styling */
.navbar-custom .dropdown-menu,
.navbar-custom .menu-secondo-livello {
    background-color: #12747f;
    /* Verde medio */
    border: none;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    padding: 0.75rem 0;
    opacity: 0;
    visibility: hidden;
    min-width: max-content;
    max-width: 500px;
    padding-right: 2rem;
}

.navbar-custom {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

/* Il dropdown via hover CSS è gestito solo su tablet/mobile (sotto 1280px) */
@media (max-width: 1279.98px) {
    .navbar-custom .dropdown:hover>.dropdown-menu {
        opacity: 1;
        animation: scaleIn 0.8s ease forwards;
        visibility: visible;
    }
}

/* Gestione apertura dropdown via JS (classe .show) su desktop */
@media (min-width: 1280px) {
    .navbar-custom .dropdown-menu.show {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        animation: scaleIn 0.3s ease forwards;
    }
}

/* Gestione apertura dropdown via JS (classe .show) su MOBILE/TABLET */
@media (max-width: 1279.98px) {
    .navbar-custom .dropdown-menu.show {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

.navbar-custom .dropdown-item {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.75rem 1.5rem;
    font-family: 'Rockwell Nova', Rockwell, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 500;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.navbar-custom .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    padding-left: 2rem;
    transform: translateX(5px);
}

.navbar-custom .dropdown-item.active {
    background-color: rgba(255, 215, 64, 0.2);
    color: white;
}

/* Submenu parent items (second level with children) */
.navbar-custom .dropdown-menu .dropdown-submenu>.dropdown-item {
    font-family: 'Rockwell Nova', Rockwell, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Sub-dropdown styling */
.navbar-custom .dropdown-menu .dropdown-menu {
    background-color: #12747f;
    /* Verde medio - same as first level */
    left: 100%;
    top: 0;
    margin-left: 0.5rem;
    border-radius: 8px;
    position: absolute;
    transform: scale(0);
    transform-origin: top left;
    opacity: 0;
    visibility: hidden;
    padding: 1rem 0;
    min-width: max-content;
    max-width: 500px;
    padding-right: 2rem;
}

/* Third-level submenu styling */
.navbar-custom .dropdown-menu .dropdown-menu .dropdown-menu {
    background: #e3eef0 !important;
    /* Colore terzo livello */
    left: 100%;
    top: 0;
    margin-left: 0.5rem;
    border-radius: 8px;
    position: absolute;
    transform: scale(0);
    transform-origin: top left;
    opacity: 0;
    visibility: hidden;
    min-width: max-content;
    max-width: 500px;
    padding-right: 2rem;
}

/* Override for Bootstrap dropdown-menu third level */
body .navbar-expand-xl .navbar-nav .dropdown-menu .dropdown-menu .dropdown-menu {
    background-color: #e3eef0 !important;
}

/* Fourth level submenu styling */
.navbar-custom .dropdown-menu .dropdown-menu .dropdown-menu .dropdown-menu,
ul[style*="background-color: #e3eef0"] {
    background-color: #e3eef0 !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* Voce del terzo livello - spazio dimezzato */
.navbar-custom .dropdown-menu .dropdown-menu .dropdown-item {
    font-family: 'Rockwell Nova', Rockwell, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
    color: #0d5c57;
}

.navbar-custom .dropdown-menu .dropdown-submenu:hover>.dropdown-menu,
.dropdown-submenu.show>.dropdown-menu {
    display: block;
    animation: scaleIn 0.8s ease forwards;
}

/* Rimuovi transform quando il menu è chiuso */
.dropdown-submenu>.dropdown-menu:not(.show) {
    display: none !important;
    transform: scale(0) !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>.dropdown-menu {
    display: none;
}

@media (min-width: 1280px) {
    .dropdown-submenu.show>.dropdown-menu {
        display: block;
        animation: scaleIn 0.8s ease forwards;
    }

    .navbar-custom .dropdown-menu .dropdown-submenu.show>.dropdown-menu {
        display: block;
        animation: scaleIn 0.8s ease forwards;
    }
}

/* Navbar toggle button */
.navbar-custom .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Animation for menu items */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation for submenu scaling */
@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
        visibility: hidden;
    }

    to {
        transform: scale(1);
        opacity: 1;
        visibility: visible;
    }
}

/* Flag icon styling */
.flag-icon {
    margin-right: 0.5rem;
    font-size: 1.2rem;
    vertical-align: middle;
}

/* Language selector styling */
.navbar-custom .dropdown-toggle {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    font-family: 'Rockwell Nova', Rockwell, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 500;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar-custom .dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-custom .dropdown-menu-end {
    background-color: #12747f;
    border: none;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.navbar-custom .dropdown-menu-end .dropdown-item {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.75rem 1.5rem;
    font-family: 'Rockwell Nova', Rockwell, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 500;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.navbar-custom .dropdown-menu-end .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    padding-left: 2rem;
    transform: translateX(5px);
}

.navbar-custom .dropdown-menu-end .dropdown-item.active {
    background-color: rgba(255, 215, 64, 0.2);
    color: white;
}

/* Responsive adjustments */
@media (max-width: 1279.98px) {
    .navbar-custom .nav-link {
        padding: 0.75rem 1rem;
    }

    .navbar-custom .dropdown-menu {
        background-color: rgba(0, 0, 0, 0.1);
        border-radius: 0;
        box-shadow: none;
    }

    .navbar-custom .dropdown-menu .dropdown-menu {
        position: static;
        left: 0;
        margin-left: 1rem;
        background-color: rgba(0, 0, 0, 0.15);
        min-width: max-content;
        max-width: 500px;
        padding-right: 1.5rem;
    }

    .d-flex.align-items-center {
        margin-top: 1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .dropdown-submenu>.dropdown-menu {
        position: static !important;
        left: auto !important;
        margin-left: 1rem !important;
        background-color: rgba(0, 0, 0, 0.15) !important;
        display: none !important;
        min-width: max-content;
        max-width: 100%;
        padding-right: 1.5rem;
    }

    .dropdown-submenu.show>.dropdown-menu {
        display: block !important;
    }

    .dropdown-submenu .dropdown-toggle::after {
        content: '+';
        float: right;
        margin-left: 7px;
    }

    .dropdown-submenu.show .dropdown-toggle::after {
        content: '-';
    }
}

.verde {
    color: #12747f
}

.background_verde {
    background-color: #12747f
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: 'Helvetica Neue', sans-serif;
    max-width: 100vw;
}

html {
    overflow-x: hidden;
    overflow-y: auto;
}

/* Prevenzione overflow per tutti gli elementi */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Esclude .row dalla limitazione max-width per permettere i margini negativi Bootstrap */
.row {
    max-width: none !important;
}

/* Container fluid senza problemi di overflow */
.container-fluid {
    overflow-x: hidden;
    max-width: 100%;
}

/* Immagini responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Slideshow con effetto diagonale */
.slideshow-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #000;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide.active {
    z-index: 2;
}

.slide.previous {
    z-index: 3;
}

.caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.7);
    color: black;
    padding: 10px;
    width: 30%;
    font-size: 11px;
    transform: translateX(-100%);
    transition: transform 0.5s ease 0.5s, opacity 0.5s ease 0.5s;
    opacity: 0;
}

/* Caption al 85% su mobile - con limite altezza per non sforare */
@media (max-width: 768px) {
    .caption {
        width: 98% !important;
        max-height: 55%;
        overflow-y: auto;
        font-size: 10px !important;
        margin-left: 1% !important;
        bottom: 70px !important;
        border-radius: 10px !important;
    }

    .caption p {

        font-size: 12px !important;

    }

    .caption H3 {

        font-size: 14px !important;

    }


    .slide-link {
        position: absolute;
        bottom: 20px;
        right: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100px!important;
        height: 30px !important;
        min-width:40px!important;
        background: rgba(255, 255, 255, 0.8);
        border-radius: 50%;
        text-decoration: none;
        color: #333;
        font-size: 18px !important;
        font-weight: bold;
        transition: all 0.3s ease;
        opacity: 0;
        transform: translateX(100%);
        transition: transform 0.5s ease 0.5s, opacity 0.5s ease 0.5s;
        z-index: 5;
    }



}

.slide.active .caption {
    transform: translateX(0);
    opacity: 1;
}

.slide-link {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    text-decoration: none;
    color: #333;
    font-size: 24px;
    font-weight: bold;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.5s ease 0.5s, opacity 0.5s ease 0.5s;
    z-index: 5;
}

.slide.active .slide-link {
    opacity: 1;
    transform: translateX(0);
}

.slide-link:hover {
    background: rgba(255, 255, 255, 1);
    color: #000;
    transform: scale(1.1);
}

.slide.entering {
    z-index: 4;
    transform: scale(0);
    transform-origin: top left;
    animation: growFromCorner 0.78s ease forwards;
}

.slide img.desktop-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide img.mobile-img {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .slide img.desktop-img {
        display: none;
    }

    .slide img.mobile-img {
        display: block;
    }

    /* Slider responsive - altezza basata su vh per mobile */
    .slideshow-container {
        height: 40vh !important;
        min-height: 250px !important;
    }
}

@keyframes growFromCorner {
    0% {
        transform: scale(0);
        transform-origin: top left;
    }

    100% {
        transform: scale(1);
        transform-origin: top left;
    }
}

.imgSfondo {
    position: relative;
    width: 60%;
    max-width: 800px;
}

.image-container {
    position: relative;
    z-index: 2;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    border-radius: 5px;
}

.trapezoid {
    position: absolute;
    top: 50%;
    left: -390%;
    width: 110% !important;
    max-width: none !important;
    height: 80%;
    background-color: rgba(0, 0, 255, 0.5);
    z-index: 1;
    transition: left 1.5s ease;
    transform: translateY(-50%) rotate(0deg);
}

.trapezoid-1 {
    background-color: #12747f;
}

.trapezoid-2 {
    background-color: rgba(0, 255, 0, 0.5);
}

.trapezoid-3 {
    background-color: rgba(0, 0, 255, 0.5);
}

.dots-container {
    text-align: center;
    margin-top: 10px;
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    z-index: 10;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active {
    background-color: #f1db14;
}

.dot:hover {
    background-color: #555;
}

/* Stili per le righe di immagini */
.image-row {
    display: flex;
    justify-content: space-around;
    margin: 8px 0;
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    margin-right: 18px;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(0.01);
    transition: transform 1s ease;
}

.image-overlay {
    position: absolute;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
    background-color: rgba(18, 116, 127, 0.85) !important;
    color: white;
    display: flex;
    align-items: top;
    justify-content: top;
    font-size: 17.1px;
    font-weight: 400 !important;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 4px;
    line-height: 20.4px;
    padding: 10px 20px;
}



.image-wrapper:hover .image-overlay,
.image-wrapper.active-overlay .image-overlay {
    opacity: 1;
}

.image-wrapper.active-overlay img {
    transform: scale(1.2);
}

.image-wrapper:hover .image-title {
    opacity: 0;
}

/* Responsive - Tablet */

@media only screen and (min-width: 768px) and (max-width: 1024px) {
    .image-row {
        flex-wrap: wrap;
    }
    .image-wrapper {
        width: calc(50% - 18px) !important;
        max-width: calc(50% - 18px) !important;
        flex: 0 0 calc(50% - 18px) !important;
        margin-right: 18px;
        margin-bottom: 18px;
    }
    .image-wrapper:nth-child(2n) {
        margin-right: 0;
    }
}

/* iPad with retina */
@media only screen and (min-width: 768px) and (max-width: 1024px) and (-webkit-min-device-pixel-ratio: 1), only screen and (min-width: 768px) and (max-width: 1024px) and (min-device-pixel-ratio: 2) {
    .image-row {
        flex-wrap: wrap !important;
        display: flex !important;
    }

    .image-wrapper {
        width: calc(50% - 18px) !important;
        max-width: calc(50% - 18px) !important;
        flex: 0 0 calc(50% - 18px) !important;
        margin-right: 18px !important;
        margin-bottom: 18px !important;
    }

    .image-wrapper:nth-child(2n) {
        margin-right: 0 !important;
    }
}

@media (min-width: 768px) and (max-width: 1200px) {
    .image-row {
        flex-wrap: wrap;
    }

    .image-wrapper {
        flex: 0 0 calc(50% - 18px);
        margin-right: 18px;
        margin-bottom: 18px;
    }

    .image-wrapper:nth-child(2n) {
        margin-right: 0;
    }
}

/* Responsive - Mobile */
@media (max-width: 767px) {
    .caption {
        width: 100%;
        left: 0;
    }

    .image-row {
        flex-direction: column;
        align-items: center;
    }

    .image-wrapper {
        margin-bottom: 18px;
    }
}

.nospace {
    margin: 0 !important;
    color: #12747f
}

/* GIOSTRA */

.swiper-container {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
}

.swiper-wrapper {
    align-items: center;
}

.swiper-slide {
    width: calc((100vw - 40px) / 3);
    height: auto;
    position: relative;
    transition: transform 0.6s ease;
    display: flex;
    align-items: center;
}

.swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 6px !important
}

.swiper-slide-active {
    transform: scale(1.25) !important;
    z-index: 10 !important;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.swiper-slide-active img {
    box-shadow: none !important;
    border-radius: 6px !important;
    border: none;
}

.slide-caption-giostra {
    position: absolute;
    bottom: 30px;
    left: 30px;
    width: calc(50% - 30px);
    background: rgba(8, 157, 192, 0.85);
    color: white;
    padding: 20px;
    opacity: 0;
    transition: opacity 1.6s ease;
    border-radius: 5px;
    border: 1px solid white;
    text-align: center;
    overflow: visible;
    word-wrap: break-word;
    white-space: normal;
}

.swiper-slide-active .slide-caption-giostra {
    opacity: 1 !important;
}

.slide-caption-giostra h3 {
    font-family: 'Rockwell Nova', Rockwell, 'Courier New', Georgia, serif;
    font-size: clamp(0.9rem, 1.5vw, 1.8rem);
    font-weight: 600;
    margin: 0 0 18px 0;
    color: white;
    text-align: center;
    word-wrap: break-word;
    white-space: normal;
}

.slide-caption-giostra p {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: clamp(0.8rem, 1.2vw, 1.2rem);
    margin: 0;
    color: white;
    text-align: center;
    word-wrap: break-word;
    white-space: normal;
}

.swiper-button-next,
.swiper-button-prev {
    background: rgba(20, 135, 127, 0.6);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.8);
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
}

.swiper-pagination-bullet-active {
    background: white;
}

#rc-anchor-container {
    display: none !important
}

/* Animazione H1 testata */
.animate-h1 {
    animation: scaleInCenter 0.8s ease-out forwards;
    text-transform: uppercase;
    transform-origin: center center;
}

@keyframes scaleInCenter {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile - Impilamento blocchi valori e prodotti */
@media (max-width: 768px) {

    /* Sezione Valori - impila i blocchi col-6 */
    .container .row>div.col-6 {
        width: 100% !important;
        padding-right: 15px !important;
        padding-left: 15px !important;
        margin-bottom: 20px;
    }

    /* Sezione Prodotti - impila i blocchi col-4, col-5, col-7, col-8 */
    .container .row>div.col-4,
    .container .row>div.col-5,
    .container .row>div.col-7,
    .container .row>div.col-8 {
        width: 100% !important;
        padding-right: 15px !important;
        padding-left: 15px !important;
        margin-bottom: 20px;
    }

    /* Rimuovi i padding aggiuntivi su mobile */
    div[style*="padding-right:55px"],
    div[style*="padding-left:55px"] {
        padding-right: 15px !important;
        padding-left: 15px !important;
    }

    /* Rimuovi align-items-center su mobile per impilare verticalmente */
    .container .row.align-items-center {
        align-items: flex-start !important;
    }
}

/* H1 nelle testate - colore bianco con ombra 12747f */
.container-fluid.p-0.mb-0.position-relative .position-absolute h1,
.hero-section h1 {
    color: white !important;
    text-shadow: 0 0 10px #12747f, 0 0 20px #12747f, 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
}


/* Extra fix for nested dropdowns on mobile */
@media (max-width: 1279.98px) {
    .navbar-custom .dropdown-menu .dropdown-submenu > .dropdown-menu {
        display: none;
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: transparent;
        border: 0;
        box-shadow: none;
    }
    
    .navbar-custom .dropdown-menu .dropdown-submenu.show > .dropdown-menu {
        display: block;
    }
    
    .dropdown-submenu > .dropdown-toggle::after {
        content: '+' !important;
        float: right;
    }
    
    .dropdown-submenu.show > .dropdown-toggle::after {
        content: '-' !important;
    }
}
