/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/
html {
    scroll-behavior: smooth;
}

/* storia */

.linea-temporale {
    height: -webkit-fill-available;
    position: relative;
}

#cronologia-anno1 .linea-temporale:after {
    content: '';
    display: block;
    width: 4px;
    height: var(--cronologia-height, 100px);
    background: #A0C6B2;
    background: -webkit-linear-gradient(top, #E7FF92 0%, #A0C6B2 45%, #E7FF92 100%);
    background: linear-gradient(to bottom, #E7FF92 0%, #A0C6B2 45%, #E7FF92 100%);
    position: absolute;
    z-index: 10;
}

.linea-temporale::before {
    content: '';
    display: block;
    width: 21px;
    height: 22px;
    background: #FD6A64;
    border-radius: 100%;
    position: absolute;
    top: calc(50% - 20px);
    right: 34px;
    z-index: 20;
}

@media all and (max-width: 767px) {
    .linea-temporale::before {
        right: 37px;
    }
}

.linea-temporale.last::after {
    background: linear-gradient(to bottom, #E7FF92 0%, #A0C6B2 45%, #ffffff 100%);
}

.linea-temporale.last::after {
    position: absolute;
    z-index: 10;
    content: '';
    display: block;
    width: 4px;
    height: 110px;
    bottom: 0;
    background: #fff;
}

/* Pulsante pausa caroselli */

.swiper-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Partnership */
.partnership-wrap {
    height: fit-content;
}

.partnership-wrap img {
    height: 92px;
    object-fit: contain;
}

.partnership-wrap .partnership-info {
    transform-origin: top;
    transition: all 0.3s ease;
    padding: 20px 0 30px;
    opacity: 1;
    max-height: none;
}

.partnership-wrap .partnership-info a {
    text-decoration: underline;
}

.partnership-wrap .partnership-info a:hover {
    font-weight: 700;
}


.partnership-wrap .partnership-info.collapsed {
    transform: scaleY(0);
    opacity: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
}

.partnership-wrap .partnership-toggle {
    cursor: pointer;
}

button.partnership-toggle-btn {
    background: transparent;
}

/* Carosello loghi */
#carosello-loghi .swiper-slide {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#carosello-loghi .image {
    height: 80px !important;
    width: 70%;
    background-size: contain;
    background-repeat: no-repeat;
}

header {
    z-index: 20;
}

@media all and (min-width: 1084px) {
    .home .block-nav-header {
        padding-top: 70px;
    }

    .home .container-menu {
        margin-top: 25px !important;
    }
}

#brx-content {
    z-index: 10;
}

/* Home */
@media all and (min-width: 1084px) {
    .home #header-agrintesa {
        background-color: transparent
    }

    .home form.bricks-search-form label {
        color: #fff !important;
    }

    .home #menu-secondario a {
        color: #fff;
    }

    .home #menu-primario a,
    .home #menu-primario .brxe-dropdown span,
    .home #menu-primario .brx-submenu-toggle button {
        color: #fff;
    }

    .home #menu-primario .brx-dropdown-content {
        background-color: rgba(0, 0, 0, 0.4);
        transform: translateY(9px);
    }

    .home .bricks-search-form button circle,
    .home .bricks-search-form button path {
        stroke: #000 !important;
    }
}

/* Accessibilità home */
.home form[role="search"] input {
    background-color: rgba(231, 231, 231, 0.5);
    color: #fff
}

@media all and (max-width: 1084px) {
    form[role="search"] input {
        color: #353535 !important;
    }
}

.home form[role="search"] input::placeholder {
    color: #000;
    font-weight: 500;
}

/* cerca altre pagine */
body:not(.home) form[role="search"] input {
    background-color: rgba(231, 231, 231, 0.5);
    color: rgba(53, 53, 53, 1);
}

body:not(.home) form[role="search"] input::placeholder {
    color: rgba(53, 53, 53, 1);
    font-weight: 500;
}

/* Menu */
#menu-primario li .aria-current,
ul.brx-dropdown-content a[aria-current="page"],
#menu-secondario a[aria-current="page"],
li.menu-item a[aria-current="page"] {
    text-decoration: underline;
}

.box2 {
    opacity: 0;
}

/* Contatti */
.privacy-form {
    font-family: Manrope;
    font-size: 11px;
    font-style: normal;
    font-weight: 400;
    line-height: 15px;
    display: block;
}

.form-group li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.splide__pagination {
    width: 100%;
}

/* box espandibili */
.rotated {
    rotate: 180deg;
}

.link-privacy-footer {
    text-decoration: underline;
}

.link-privacy-footer:hover {
    color: rgba(60, 122, 86, 1);
}

.form-newsletter-pv .link-privacy-footer:hover {
    font-weight: 700;
    color: #363636 !important;
}

.agrintesa_file_download_btn img {
    margin-right: 10px;
}


/* Caroselli Accessibilità */
.splide__pagination .splide__pagination__page:focus,
.swiper-pagination-bullet:focus {
    outline: 2px solid #111;
    outline-offset: 2px;
}

*:focus {
    outline: 2px solid #353535;
    outline-offset: 2px;
}

@media all and (max-width: 1082px) {

    .custom-swiper-controls {
        margin-left: 0 !important;
    }

    .custom-swiper-controls .custom-swiper-prev-btn,
    .custom-swiper-controls .custom-swiper-next-btn {
        display: initial;
    }

    .swiper-pagination .swiper-pagination-bullet {
        display: none !important;
    }

    .splide__pagination .splide__pagination__page {
        display: none !important;
    }
}

@media all and (min-width: 1083px) {

    .custom-swiper-controls .custom-swiper-prev-btn,
    .custom-swiper-controls .custom-swiper-next-btn {
        display: none !important;
    }

    .splide__pagination .custom-splide-prev-btn,
    .splide__pagination .custom-splide-next-btn {
        display: none !important;
    }
}

/* Aggiungi freccia link esterni */
.add-external-link-arrow:after {
    content: '';
    display: block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cmask id='mask0_4159_15026' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='0' y='0' width='20' height='20'%3E%3Crect width='20' height='20' fill='%23D9D9D9'/%3E%3C/mask%3E%3Cg mask='url(%23mask0_4159_15026)'%3E%3Cpath d='M13.4537 6.50313L5.67643 14.2725C5.56101 14.3878 5.41601 14.4441 5.24143 14.4415C5.0667 14.4388 4.92163 14.3798 4.80622 14.2644C4.69094 14.149 4.6333 14.0053 4.6333 13.8333C4.6333 13.6614 4.69094 13.5177 4.80622 13.4023L12.5756 5.625H5.74538C5.5683 5.625 5.41983 5.56507 5.29997 5.44521C5.18025 5.32535 5.12038 5.17687 5.12038 4.99979C5.12038 4.82257 5.18025 4.67417 5.29997 4.55458C5.41983 4.43486 5.5683 4.375 5.74538 4.375H13.9504C14.1639 4.375 14.3427 4.44715 14.4871 4.59146C14.6315 4.7359 14.7037 4.91479 14.7037 5.12813V13.3333C14.7037 13.5104 14.6438 13.6588 14.5239 13.7785C14.4041 13.8984 14.2556 13.9583 14.0785 13.9583C13.9013 13.9583 13.7528 13.8984 13.6331 13.7785C13.5135 13.6588 13.4537 13.5104 13.4537 13.3333V6.50313Z' fill='%23111111'/%3E%3C/g%3E%3C/svg%3E");
    width: 13px;
    height: 13px;
    background-size: contain;
    background-repeat: no-repeat;
    transform: translateX(-7px);
}

/* Fix menu mobile */
.brx-nav-nested-items * {
    -webkit-tap-highlight-color: transparent;
}

@media all and (max-width: 1084px) {
    #menu-primario .brx-nav-nested-items *:focus {
        outline: none;
    }
}

/* Fix WPML */

.wpml-ls-legacy-list-horizontal {
    padding: 0;
    border: none;
}

.wpml-ls-legacy-list-horizontal .wpml-ls-item {
    padding: 0;
}

.wpml-ls-legacy-list-horizontal a {
    padding: 0 !important;
}

@media all and (max-width: 1083px) {
    li:has(.lang-agrintesa) {
        order: 10;
    }
}

@media all and (min-width: 1084px) {
    li:has(.lang-agrintesa) {
        order: 0;
    }
}