/*
Theme Name: ilfintofiorista
Author: AlfaPi - Serena
Description: Tema per fiorista che vende fiori finti.
Version: 1.0
Text Domain: ilfintofiorista
*/

:root {
    --font-1: 'Outfit';
    --font-awesome: 'Font Awesome 7 Free';
    --colore-1: #3C6756;
    --colore-2: #F2F6F0;
    --colore-3: #9DD259;
    --colore-4: #EC2050;
    --colore-5: #27504A;
    --colore-6: #A0C6B7;
    --colore-7: #B3043D;
    --colore-8: #636363;
    --text-color: #494949;
    --bg-footer: var(--colore-5);
    --menu-color: var(--colore-1);
    --menu-hover: var(--colore-4);
    --header-top-menu: 32px;
    --header-mobile-menu: 50px;
    --border-radius-card: 23px;
    --border-radius-cta: 27px;
    --border-radius-img: 23px;
    --border-radius-tax: 23px;
    --border-radius-modulo: 10px;
    --border-radius-dropdown-menu: 0px 0px 20px 20px;
    --border-radius-catalogo: 15px;
    --border-radius-preventivo: 42px;
    --border-1px: 1.5px solid #fff;
    --border-2px-btn: 2px solid var(--colore-1);
    --border-2px-img: 2px solid var(--colore-6);
    --border-1px-tax: 1.5px solid var(--colore-5);
    --border-2px-catalogo: 2px solid rgba(60, 103, 86, 0.2);
    --box-shadow: 0px 3px 22px #00000047;
    --box-shadow-menu: 0px 3px 90px #00000029;
    --box-shadow-catalogo: 0px -21px 52px #112D2929;
    --box-sfumatura: linear-gradient(360deg, var(--colore-1) 0%, var(--colore-5) 100%);
    --box-sfumatura-aree: linear-gradient(180deg, #3C675600 0%, #06241800 62%, #062418 100%);
    --box-sfumatura-cta: linear-gradient(244deg, var(--colore-4) 0%, var(--colore-7) 100%);
    --box-sfumatura-content-box: linear-gradient(180deg, var(--colore-2) 0%, #FFFFFF 100%);
    --box-sfumatura-content-reverse: linear-gradient(0deg, var(--colore-2) 0%, #FFFFFF 100%);
    --box-sfumatura-btn: linear-gradient(247deg, var(--colore-5) 0%, var(--colore-1) 100%);
    --box-sfumatura-header: linear-gradient(90deg, #27504A00 0%, var(--colore-5) 44%, var(--colore-5) 54%, #27504A00 100%);
    --box-sfumatura-header-tax: linear-gradient(90deg, var(--colore-5) 0%, #27504A00 50%);
    --box-sfumatura-mobile-header-tax: linear-gradient(0deg, var(--colore-5) 0%, #27504A00 50%);
    --box-sfumatura-menu-before: linear-gradient(360deg, var(--colore-1) 0%, var(--colore-3) 100%) border-box;
    --box-sfumatura-rosso-scuro: linear-gradient(244deg, var(--colore-4) 0%, #86022D 100%);
    --scrollbar-width: calc(100vw - 100%);
}

/* ----------------------------------------------------
   RESET & BASE
---------------------------------------------------- */
body {
    padding: 0;
    margin: 0;
    color: var(--text-color);
    overflow-x: hidden;
    font-family: var(--font-1), sans-serif;
    font-size: clamp(1.25rem, calc(1vw + 0.5rem), 1.5rem);
    font-weight: 400;
}

html,
body {
    height: 100%;
    touch-action: pan-y;
}

a {
    color: var(--colore-5);
    text-decoration: none;
}

strong {
    font-weight: 700;
}

.container-fluid.full-width {
    max-width: 100%;
}

.container-fluid {
    max-width: 1920px;
}

.container-fluid.boxed {
    max-width: 1600px;
}

/* ATTENZIONE! VERIFICARE CHE FUNZIONI DAVVERO!!! */
.contenuto p,
.contenuto .wp-block-heading,
.contenuto .wp-block-list,
.contenuto .wp-block-image {
    max-width: 1320px;
    margin-inline: auto;
}

/* ----------------------------------------------------
   TIPOGRAFIA
---------------------------------------------------- */
h2 {
    font-size: clamp(2rem, calc(1rem + 2vw), 2.5rem);
    line-height: 1.05;
    font-weight: 300;
}

h3 {
    font-size: 1.8rem;
    line-height: 1.05;
    font-weight: 500;
    color: var(--colore-5);
}

h2+p {
    margin-top: 20px;
}

h3+p {
    margin-block: 20px 0;
}

p+h2 {
    margin-top: 80px;
}

:focus-visible {
    outline: 2px solid var(--colore-1);
    outline-offset: 3px;
}

/* CTA */
.cta {
    border-radius: var(--border-radius-cta);
    font-size: clamp(1rem, calc(0.8rem + 0.8vw), 1.25rem);
    color: #fff;
    padding: 6px 40px;
    background: var(--box-sfumatura-btn);
    border: var(--border-1px);
    transition: all 0.25s ease;
    line-height: 1.05;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.cta:hover {
    background: var(--box-sfumatura-cta);
    border-color: #fff;
    color: #fff;
}

.cta.alt {
    background: transparent;
    border: 1.5px solid var(--colore-1);
    color: var(--colore-1);
}

.cta.alt:hover {
    background: var(--colore-1);
    color: #fff;
}

/* ----------------------------------------------------
   LAYOUT GENERALE
---------------------------------------------------- */
.bg-light {
    background-color: #fff !important;
    box-shadow: var(--box-shadow-menu);
}

a:hover:not(.cta):not(.info-menu):not(.nav-link):not(.cv):not(.wpcf7-acceptance):not(.pagination-list a):not(.search-result h2 a):not(.search-result .categoria a) {
    text-decoration-color: var(--colore-2);
    text-decoration-line: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

/* ----------------------------------------------------
   TOP MENU — VERSIONE DEFINITIVA
---------------------------------------------------- */
.bg-top-menu {
    background-color: var(--colore-5);
}

/* Stato attivo del menu WP */
.bg-top-menu .top-menu .nav-item.current_page_item,
.bg-top-menu .top-menu .nav-item.current-menu-item {
    background-color: var(--colore-2);
    border-radius: 0 0 18px 18px;
    box-shadow: 0 0 14px 0 var(--colore-5);
}

.bg-top-menu .top-menu .nav-item.current_page_item a,
.bg-top-menu .top-menu .nav-item.current-menu-item a,
.bg-top-menu .nav-link.active {
    color: var(--menu-color);
}

/* Tasto "Contatti" (ultimo elemento del menu WP) */
.bg-top-menu .nav-item:last-of-type {
    background: var(--box-sfumatura-cta);
    border-left: 2px solid #fff;
    border-radius: 0 0 0 18px;
    transition: background .25s ease, border-color .25s ease;
}

.bg-top-menu .nav-item:last-of-type:hover {
    background: var(--box-sfumatura-rosso-scuro);
}

.bg-top-menu .nav-item:last-of-type a:hover,
.bg-top-menu .top-menu .nav-item:last-of-type a {
    color: #fff;
}

.bg-top-menu .nav-item {
    padding-inline: 10px;
}

.bg-top-menu .nav-link {
    color: #fff;
    font-size: clamp(1rem, calc(0.5vw + 0.8rem), 1.3rem);
    line-height: 1.05;
    transition: color .25s ease;
}

.bg-top-menu .nav-link:hover {
    color: var(--colore-3);
}

/* Contatti (desktop) */
.info-menu a {
    color: #fff;
    font-size: 1.1rem;
}

.info-menu a:hover {
    color: var(--colore-3);
    text-decoration-line: none !important;
}

.info-menu a i {
    opacity: .5;
    transition: opacity .25s ease;
}

#nav-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 12000;
    background-color: var(--colore-5);
}

/* ----------------------------------------------------
   MOBILE — SOLO TELEFONO + TASTO CONTATTI
---------------------------------------------------- */
@media (max-width: 1199px) {

    #nav-top {
        padding-inline: .75rem 0;
        -webkit-overflow-scrolling: touch;
    }

    /* ----------------------------------------------------
       1) INFO-MENU: mostra SOLO il telefono
    ---------------------------------------------------- */
    #nav-top .info-menu li.is-contact {
        display: none !important;
    }

    #nav-top .info-menu li.is-contact.phone {
        display: flex !important;
        align-items: center;
    }

    #nav-top .info-menu li.is-contact.phone .label-desktop {
        display: none !important;
    }

    #nav-top .info-menu li.is-contact.phone .label-mobile {
        display: inline-block !important;
        font-size: 1rem;
        color: #fff;
        margin-left: 0;
        white-space: nowrap;
    }

    #nav-top .info-menu li.is-social {
        display: none !important;
    }

    /* ----------------------------------------------------
       2) MENU WP: mostra SOLO l’ultima voce ("Contattaci")
    ---------------------------------------------------- */
    #nav-top .top-menu .nav-item {
        display: none !important;
    }

    #nav-top .top-menu .nav-item:last-of-type {
        display: block !important;
        transition: background .25s ease, border-color .25s ease;
    }

    .bg-top-menu .nav-item:last-of-type {
        background: var(--box-sfumatura-cta) !important;
        border-left: 2px solid #fff;
        border-bottom: 2px solid #fff;
        border-radius: 0 0 0 22px;
    }
}

/* ----------------------------------------------------
   DESKTOP — NASCONDE LABEL MOBILE
---------------------------------------------------- */
@media (min-width: 1200px) {
    #nav-top .info-menu .label-mobile {
        display: none !important;
    }
}

/* -----------------------------------
   DESKTOP MENU
----------------------------------- */
#nav-main {
    position: relative;
    top: var(--header-top-menu);
    z-index: 980;
    border-radius: 0 0 40px 40px;
}

.navbar-nav .nav-item {
    padding-inline: 0.6rem;
}

/* -----------------------------------
   BORDO ESTERNO (gradient)
----------------------------------- */
#nav-main::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 0 0 48px 48px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.15);
    pointer-events: none;
    backdrop-filter: blur(5px);
    border: 1.5px solid #efefef;
    z-index: -1;
}

/* -----------------------------------
   BORDO INTERNO
----------------------------------- */
#nav-main::after {
    content: "";
    position: absolute;

    inset: 0;
    border-radius: inherit;

    pointer-events: none;
}

.nav-link {
    font-size: clamp(1.2rem, calc(1rem + 0.4vw), 1.4rem);
    font-weight: 500;
    color: var(--menu-color);
    line-height: 1.05;
    transition: color .25s ease, opacity .25s ease;
}

#menu-main-menu .nav-link i {
    font-size: 1.75rem;
}

.navbar-nav .nav-link.active,
.navbar-nav .show>.nav-link,
.nav-link:hover {
    color: var(--colore-4);
}

/* -----------------------------------
   DROPDOWN MENU
----------------------------------- */
.dropdown-menu {
    position: absolute;
    left: 0;
    right: auto;
    transform: none;
    top: calc(100% + 10px);
    min-width: 22rem;
    padding: 20px;
    background-color: #fff;
    border-radius: var(--border-radius-dropdown-menu);
    border: 1.5px solid rgba(0, 0, 0, .05);
    box-shadow: var(--box-shadow-menu);
}

.dropdown-menu.show {
    transform: none !important;
    top: calc(100% + 10px) !important;
}

.nav-item.dropdown {
    position: relative;
}

.nav-item.dropdown:hover::after {
    content: "";
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    height: 10px;
    background: transparent;
}

.dropdown-item {
    display: flex;
    width: 100%;
    padding: 5px 0;
    font-size: 1.375rem;
    white-space: normal !important;
    color: var(--menu-color);
    transition: color .25s ease;
    font-weight: 500;
    line-height: 1.2;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: transparent;
    color: var(--colore-4);
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: transparent;
    color: var(--menu-hover);
}

.dropdown:hover .dropdown-menu,
.dropdown-menu.show {
    display: block;
}

.dropdown-toggle::after {
    content: "\f078";
    font-family: var(--font-awesome);
    font-weight: 900;
    font-size: .7rem;
    margin-left: .35rem;
    border: none;
    opacity: .7;
    transition: transform .25s ease, opacity .25s ease;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
    opacity: 1;
}

/* -----------------------------------
   MOBILE MENU
----------------------------------- */
body.menu-open {
    touch-action: pan-y;
}

/* HEADER MOBILE SEMPRE FISSO */
#nav-mobile {
    position: fixed;
    top: var(--header-top-menu);
    left: 0;
    right: 0;
    height: var(--header-mobile-menu);
    z-index: 11900;
    background: #fff;
    padding-block: 6px;
}

#mobile-menu {
    position: fixed;
    left: 0;
    right: 0;
    top: calc(-100dvh + (var(--header-top-menu) + var(--header-mobile-menu)));
    height: calc(100dvh - (var(--header-top-menu) + var(--header-mobile-menu)));
    background: #fff;
    border-bottom: 10px solid var(--colore-3);
    z-index: 11800;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        top .55s cubic-bezier(.25, .46, .45, .94),
        opacity .35s cubic-bezier(.25, .46, .45, .94),
        visibility 0s linear .55s;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;

}

/* APERTO */
#nav-mobile.menu-open #mobile-menu {
    top: calc(var(--header-top-menu) + var(--header-mobile-menu));
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: var(--box-sfumatura);
    backdrop-filter: blur(4px);
    transition-delay: 0s;
}

#navbar-close {
    position: absolute;
    right: .5rem;
    top: 8px;
    z-index: 11000;
}

/* Neutralizza Bootstrap dentro il menu mobile */
#mobile-menu .navbar-nav {
    display: block !important;
    padding: 0;
    margin: 0;
}

#mobile-menu .nav-item {
    display: block !important;
    margin: 0;
    background: #fff;
}

#mobile-menu .nav-link {
    display: block !important;
    width: 100%;
}

#mobile-menu .dropdown-menu {
    position: static !important;
    float: none !important;
    box-shadow: none !important;
    padding-left: 1.5rem;
    margin: 0;
}

/* -----------------------------------
   MENU MOBILE — WP MENU
----------------------------------- */
@media (max-width: 1199px) {
    .navbar-brand {
        z-index: 9000;
    }

    #mobile-menu .nav-item.colorato {
        background: transparent;
    }

    #mobile-menu .nav-item.colorato .nav-link {
        color: #fff;
        font-weight: 400;
    }

    #mobile-menu .nav-link {
        padding: 12px;
        font-size: 1.75rem;
        font-weight: 500;
    }

    #mobile-menu .menu-item-has-children>.dropdown-menu {
        display: block !important;
        border: none;
        padding: 0;
        padding: 0 0 0 20px;
    }

    #mobile-menu .dropdown-toggle::after,
    #mobile-menu .submenu-toggle {
        display: none !important;
    }
}

@media (min-width: 1200px) {
    #nav-main.fixed {
        position: fixed;
        top: var(--header-top-menu);
        z-index: 11000;
        left: 0;
        right: 0;
    }
}

/* ----------------------------------------------------
            HERO
            ---------------------------------------------------- */
.box-hero {
    position: relative;
    width: 100%;
    color: #fff;
    padding-block: clamp(8rem, 8vw, 105px) clamp(2rem, 4vw, 105px);
    padding-inline: clamp(15px, 6vw, 60px);
    background: var(--box-sfumatura);
}

/* immagine sotto, sfumatura sopra */
.box-hero::before {
    content: "";
    position: absolute;
    inset: 105px 0 10px 0;
    background-image: var(--hero-bg-img);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* contenuto sopra */
.box-hero>* {
    position: relative;
    z-index: 1;
}

.box-hero h1 {
    font-size: clamp(3rem, 8vw, 4.9rem);
    font-weight: 200;
    margin-bottom: 30px;
    line-height: 1.05;
}

.box-hero h1 u {
    text-decoration-line: underline;
    text-decoration-color: var(--colore-4);
    text-decoration-thickness: 4px;
    text-underline-offset: 12px;
}

.box-hero p {
    font-weight: 300;
    padding-inline: clamp(1rem, 5vw, 6rem);
}

.box-hero .cta {
    display: inline-block;
    margin-block: 40px;
    padding: 12px 48px;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--box-sfumatura-cta);
}

.box-hero .cta:hover {
    background: var(--box-sfumatura-rosso-scuro);
    transition: background .3s ease;
}

.box-hero .area-img-wrapper {
    position: relative;
    overflow: hidden;
    border: 1.5px solid var(--colore-6);
    border-radius: var(--border-radius-card);
}

.box-hero .area-img-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.box-hero a .area-img-wrapper h2 {
    position: absolute;
    bottom: .8rem;
    color: #fff;
    padding: 0.5rem 1rem;
    z-index: 1;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.4rem;
    background: color(srgb 0 0 0 / 0.43);
    border-radius: var(--border-radius-card);
    width: 90%;
    text-align: center;
    backdrop-filter: blur(3px);
    border: 1.5px solid rgba(255, 255, 255, .4);
}

.box-hero .area-img-wrapper img {
    transition: transform .3s ease-in-out;
}

.box-hero .area-img-wrapper:hover img {
    transform: scale(1.2);
}

@media (max-width: 1199.98px) {
    .box-hero a .area-img-wrapper h2 {
        font-size: 1rem;
        bottom: .2rem;
    }
}

@media (max-width: 767.98px) {
    .box-hero .area-img-wrapper img {
        aspect-ratio: 4 / 5;
    }

    .box-hero .ordine-5 .area-img-wrapper img {
        aspect-ratio: 5 / 3;
    }
}

@media (min-width: 768px) {

    .box-hero .ordine-1 .area-img-wrapper img,
    .box-hero .ordine-5 .area-img-wrapper img {
        aspect-ratio: 13 / 17;
    }

    .box-hero .ordine-2 .area-img-wrapper img,
    .box-hero .ordine-4 .area-img-wrapper img {
        aspect-ratio: 8 / 9;
    }

    .box-hero .ordine-3 .area-img-wrapper img {
        aspect-ratio: 16 / 15;
    }

    .box-hero a .area-img-wrapper h2 {
        width: auto;
        white-space: nowrap;
    }
}

/* ----------------------------------------------------
   CATEGORIE IN EVIDENZA
---------------------------------------------------- */
.categorie-top span {
    color: var(--colore-1);
    font-size: clamp(1.6rem, calc(1.2rem + 2vw), 1.8rem);
    font-weight: 500;
}

.categorie-top h2+p {
    margin-block: 0 40px;
}

.categoria-top-overlay {
    position: relative;
    min-height: 870px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: var(--border-radius-img);
    overflow: hidden;
}

.categoria-top-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: initial;
}

.categoria-top-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgb(255 255 255) 0%, rgb(255 255 255 / 0%) 20%, rgba(39, 80, 74, 0.82) 85%, rgba(39, 80, 74, 1) 100%);
    z-index: 2;
}

.categoria-top-content {
    position: relative;
    z-index: 3;
    padding: 2rem;
    color: #fff;
}

.categoria-top-content h3 a {
    color: #fff;
    font-weight: 300;
    font-size: clamp(1.5rem, calc(2.2rem + 2vw), 2.75rem);
}

.categoria-top-content .descrizione {
    font-size: 1.2rem;
    line-height: 1.2em;
    font-weight: 300;
}

@media (max-width: 767.98px) {
    .categoria-top-overlay {
        min-height: 570px;
    }

    .categoria-top-gradient {
        background: linear-gradient(180deg, #27504A00 0%, #27504AD1 56%, #27504A 100%);
    }

    /* Nasconde gradient su TUTTI */
    .categoria-top-gradient-top {
        display: none;
    }

    /* La riattiva SOLO sul primo elemento */
    .row.row-cols-xxl-4.row-cols-md-2.row-cols-1>.col:first-child .categoria-top-gradient-top {
        display: block;
    }
}

/* ----------------------------------------------------
   PAGE HEADER — BASE
---------------------------------------------------- */
.page-header h1 {
    font-size: clamp(1.7rem, calc(6.25vw + 1rem), 4rem);
    font-weight: 400;
    color: #fff;
    line-height: 1em;
}

/* ----------------------------------------------------
   PAGE HEADER — FULL
---------------------------------------------------- */
.page-header.full {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 4rem 0 2rem 0;
}

@media (max-width: 1199px) {
    .page-header.full {
        padding: 6rem 0 2rem 0;
    }
}

.page-header.full .page-header__overlay {
    position: absolute;
    inset: 0;
    background: var(--box-sfumatura-header);
}

.page-header.full .page-header__content {
    position: relative;
    z-index: 2;
}

/* ----------------------------------------------------
   PAGE HEADER —  TAXONOMY 
---------------------------------------------------- */
.page-header.taxonomy {
    background-color: var(--colore-5);
    color: #fff;
}

.page-header.taxonomy .info {
    padding-inline: 3rem;
}

.page-header.taxonomy .info p {
    font-weight: 300;
    line-height: 1.2em;
}

.page-header.taxonomy .image {
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.page-header.taxonomy .image img {
    height: 100%;
    height: 600px;
    visibility: hidden;
}

@media (max-width: 540px) {
    .page-header.taxonomy .info {
        padding: 35px;
    }

    .page-header.taxonomy .info p {
        font-size: 1.3rem;
    }

    .page-header.taxonomy {
        max-height: initial;
    }

    .page-header.taxonomy .image img {
        height: 240px;
    }
}

/* Overlay sopra l'immagine */
.page-header.taxonomy .image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--box-sfumatura-header-tax);
    pointer-events: none;
    z-index: 2;
}

@media (max-width: 991.98px) {
    .page-header.taxonomy .image::after {
        background: var(--box-sfumatura-mobile-header-tax);
    }

    .page-header.taxonomy .image img {
        height: 350px;
    }

    .page-header.taxonomy .info {
        margin-top: -100px;
    }
}


/* ----------------------------------------------------
   PAGE HEADER —  BLOG
---------------------------------------------------- */
.page-header.blog {
    padding: 3rem 1rem;
}

@media (max-width: 1199.98px) {
    .page-header.blog {
        padding: 6rem 1rem 0 1rem;
    }
}

.page-header.blog img {
    border-radius: var(--border-radius-img);
}

.page-header.blog h1 {
    font-size: clamp(2rem, calc(1.6rem + 1vw), 3rem);
    font-weight: 500;
    color: var(--colore-5);
    line-height: 1.05;
}

/* ----------------------------------------------------
   PAGE HEADER —  PORTFOLIO
---------------------------------------------------- */
.page-header.portfolio {
    padding: 3rem 1rem;
}

@media (max-width: 1199.98px) {
    .page-header.portfolio {
        padding: 6rem 1rem 0 1rem;
    }
}

.page-header.portfolio img {
    border-radius: var(--border-radius-img);
    aspect-ratio: 16 /9;
    object-fit: cover;
}

.page-header.portfolio h1 {
    font-size: clamp(2rem, calc(1.6rem + 1vw), 3rem);
    font-weight: 500;
    color: var(--colore-5);
    line-height: 1.05;
}

/* ----------------------------------------------------
   PAGE HEADER —  CATALOGO
---------------------------------------------------- */
.page-header.catalogo {
    padding: 3rem 1rem 0 1rem;
}

@media (max-width: 1199.98px) {
    .page-header.catalogo {
        padding: 6rem 1rem 0 1rem;
    }
}

/* Breadcrumbs */
.page-header .breadcrumbs {
    color: #fff;
    font-size: 1rem;
}

.page-header.blog .breadcrumbs,
.page-header.page-header.taxonomy .breadcrumbs,
.page-header.portfolio .breadcrumbs {
    margin-block: 0 20px;
}

.page-header .breadcrumbs a {
    font-weight: 500;
    color: #fff;
}

.page-header .breadcrumbs span {
    font-weight: 300;
}

.page-header .breadcrumbs span i {
    font-size: .5rem;
    position: relative;
    bottom: 2px;
}

.page-header.catalogo .breadcrumbs a,
.page-header.blog .breadcrumbs a,
.page-header.portfolio .breadcrumbs a {
    color: var(--colore-5);
}

.page-header.catalogo .breadcrumbs span {
    color: var(--colore-5);
}

.page-header.blog .breadcrumbs,
.page-header.portfolio .breadcrumbs {
    color: var(--colore-5);
}

/* ----------------------------------------------------
   CONTENUTO
---------------------------------------------------- */
.contenuto ol {
    counter-reset: list;
}

.contenuto ol,
.contenuto ul {
    margin: 3em 0 3em 0.5em;
    padding-left: 2rem;
}

.contenuto ul li,
.contenuto ol li {
    list-style: none;
    position: relative;
    margin-block: 0 20px;
    padding-left: 1.5rem;
}

.contenuto ul li::before {
    content: '\f111';
    position: absolute;
    left: 0;
    top: 0.7rem;
    font-family: var(--font-awesome);
    font-weight: 900;
    color: var(--colore-4);
    font-size: .75rem;
}

.contenuto ol li::before {
    content: counter(list);
    counter-increment: list;
    position: absolute;
    left: 0;
    top: 0.7rem;
    color: var(--colore-4);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}

.contenuto ul li a,
.contenuto ol li a {
    text-decoration-color: var(--colore-1) !important;
    color: var(--colore-1);
    text-decoration-line: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.contenuto ul li a:hover,
.contenuto ol li a:hover {
    text-decoration-color: var(--colore-4) !important;
    text-underline-offset: 4px !important;
}

.contenuto p a {
    color: var(--colore-1);
    font-weight: 700;
    text-decoration: underline;
}

.wp-block-image {
    text-align: center;
}

.wp-block-image img {
    max-width: 100%;
    border-radius: var(--border-radius-img);
}

/* ----------------------------------------------------
   GUTENBERG BLOCKS — BASE
---------------------------------------------------- */
.content-box span {
    color: var(--colore-1);
    font-size: clamp(1.6rem, calc(1.2rem + 2vw), 1.75rem);
    font-weight: 500;
    line-height: 1.2em;
    text-align: center;
}

.content-box .has-two-lines span:first-of-type {
    font-size: 1.9rem;
    font-weight: 500;
    color: var(--colore-5);
}

.content-box h2 {
    font-size: clamp(1.6rem, 2.1vw, 2.75rem);
    text-align: center;
    margin-bottom: 40px;
}

.content-box h2+p {
    margin-block: 0 40px;
}

.content-box img {
    border-radius: var(--border-radius-img);
}

.content-box .box {
    border-radius: var(--border-radius-card);
}

.content-box .box h2 {
    font-size: clamp(1rem, calc(0.9rem + 1vw), 1.8rem);
    font-weight: 500;
    margin-bottom: clamp(10px, 2vw, 10px);
    overflow-wrap: anywhere;
}

.content-box .box h2 a {
    color: var(--colore-1);
}

.content-box .box p {
    line-height: 1.2;
}

/* ----------------------------------------------------
   CATALOGO
---------------------------------------------------- */
/* area riservata */
.content-box.catalogo .ff-login-text {
    color: var(--colore-1);
    font-size: 2.75rem;
    font-weight: 500;
    line-height: 1.05;
}

.ff-user-badge {
    position: fixed;
    bottom: 15px;
    right: 15px;
    background: var(--colore-7);
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: .75rem;
    z-index: 9999;
    display: flex;
    gap: 10px;
    align-items: center;
    border: var(--border-1px);
}

.ff-user-badge a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.content-box.catalogo span.ricordami {
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 400;
}

.content-box.catalogo .cta.ff-login,
.content-box.catalogo a.ff-lostpass {
    color: #fff;
    font-size: 1.25rem;
}

.content-box.catalogo a.ff-lostpass {
    color: var(--colore-5);
}

.content-box.catalogo img {
    height: 370px;
    object-fit: cover;
    border-top-left-radius: var(--border-radius-img);
    border-top-right-radius: var(--border-radius-img);
}

/* hover immagine */
.catalogo-img-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

.catalogo-img-wrapper img {
    transition: opacity .3s ease;
    border-radius: unset;
    border-top-left-radius: var(--border-radius-img);
    border-top-right-radius: var(--border-radius-img);
}

/* L'immagine hover deve essere nascosta di default */
.catalogo-img-wrapper .img-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

/* Al passaggio del mouse: nascondo la main */
.catalogo-img-wrapper:hover .img-main {
    opacity: 0;
}

/* Al passaggio del mouse: mostro la hover */
.catalogo-img-wrapper:hover .img-hover {
    opacity: 1;
}

.content-box.catalogo .badge-top {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--colore-4);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: var(--border-radius-catalogo);
    z-index: 10;
}

.content-box.catalogo h3 {
    font-size: clamp(1.2rem, calc(1rem + 2vw), 1.8rem);
}

.content-box.catalogo h3 a:hover {

    color: var(--colore-4);
}

.content-box.catalogo p {
    font-weight: 300;
    line-height: 1.2em;
    margin-bottom: 40px;
}

.content-box .box.catalogo {
    border: var(--border-2px-catalogo);
}

.content-box.catalogo a.categoria {
    font-size: clamp(1.1rem, calc(1rem + 0.3vw), 1.25rem);
    color: var(--colore-8);
    font-weight: 500;
}

.content-box.catalogo .excerpt {
    font-size: clamp(1.1rem, calc(1rem + 0.3vw), 1.25rem);
    line-height: 1.2em;
}

.content-box.catalogo h2+p {
    margin-block: 20px 40px;
}

.content-box.catalogo .prezzo {
    color: var(--colore-1);
}

.content-box.catalogo .codice span:first-of-type {
    font-size: 1rem;
    display: block;
    line-height: 1.05;
    min-height: 1em;
    text-align: left;
    opacity: .5;
    font-weight: 400;
}

.content-box.catalogo .codice span:last-of-type {
    font-size: 2rem;
    color: var(--colore-1);
    display: block;
    line-height: 1.05;
    font-weight: 300;
}

.content-box.catalogo .prezzo span.prezzo-valore {
    font-size: 1.9rem;
    position: relative;
}

.content-box.catalogo .prezzo span.prezzo-valore::before {
    content: "€";
    position: absolute;
    right: 110%;
    top: 0;
    font-size: 2rem;
    font-weight: 100;
}

.content-box.catalogo .prezzo span:last-of-type {
    font-weight: 100;
}

.content-box.catalogo .prezzo.su-richiesta {
    position: relative;
}

.content-box.catalogo .prezzo.su-richiesta span:first-of-type::before {
    content: "€";
    position: absolute;
    right: 60%;
    top: -5px;
    font-size: 2.2rem;
    font-weight: 100;
    opacity: 0.25;
}

.content-box.catalogo .prezzo.su-richiesta span {
    font-size: 1.5rem;
    font-weight: 300;
}

.content-box.catalogo .prezzo span.prezzo-da {
    font-size: 1.1rem;
    text-align: right;
    font-weight: 400;
}

.content-box.catalogo .prezzo span.iva {
    font-size: 1rem;
    font-weight: 400;
}

/*** Catalogo dettaglio ***/
.page-catalogo img {
    background: #fff;
    box-shadow: var(--box-shadow-catalogo);
    border-radius: var(--border-radius-catalogo);
}

.page-catalogo .codice span:first-of-type {
    font-size: clamp(1.1rem, calc(0.8rem + 1vw), 1.6rem);
    display: block;
    opacity: .3;
    font-weight: 300;
}

.page-catalogo .codice span:last-of-type {
    font-size: clamp(1.8rem, calc(1.2rem + 2vw), 2.8rem);
    color: var(--colore-1);
    display: block;
    font-weight: 300;
    line-height: 1.05;
}

.page-catalogo h1 {
    font-size: clamp(2rem, calc(1.2rem + 2vw), 3rem);
    color: var(--colore-1);
    font-weight: 500;
    line-height: 1.05;
    margin-block: 20px;
}

.page-catalogo .prezzo {
    color: var(--colore-1);
    margin-top: 40px;
    font-size: clamp(1.8rem, calc(1.2rem + 2vw), 2.8rem);
}

.page-catalogo .prezzo span.prezzo-valore {
    font-size: 2.8rem;
    position: relative;
}

.page-catalogo .prezzo span.prezzo-valore::before {
    content: "€";
    position: absolute;
    right: 105%;
    top: -4px;
    font-weight: 100;
    color: var(--colore-1);
}

.page-catalogo .prezzo span:last-of-type {
    font-weight: 100;
}

.page-catalogo .prezzo.su-richiesta {
    position: relative;
    line-height: 100%;
    font-size: 2.75rem
}

.page-catalogo .prezzo.su-richiesta span:first-of-type::before {
    content: "€";
    position: absolute;
    right: 22.5%;
    top: -5px;
    font-size: 3.2rem;
    font-weight: 100;
    opacity: 0.25;
}

.page-catalogo .prezzo.su-richiesta span {
    font-weight: 300;
}

.page-catalogo .prezzo span.prezzo-da {
    font-size: 1.4rem;
    text-align: right;
    font-weight: 400;
}

.page-catalogo .prezzo span.iva {
    font-size: 1rem;
    font-weight: 400;
}

.page-catalogo p {
    font-weight: 300;
}

.page-catalogo .catalogo-thumb img {
    cursor: zoom-in;
    transition: transform .2s ease;
}

.page-catalogo .catalogo-thumb img:hover {
    transform: scale(1.05);
}

.lb-nav a.lb-prev,
.lb-nav a.lb-next {
    width: 10%;
}

/* ----------------------------------------------------
            TASSONOMIA
            ---------------------------------------------------- */
.tax-argomenti {
    display: flex;
    list-style: none;
    padding: 0;
    flex-wrap: wrap;
    gap: 20px;
}

.tax-argomenti li a {
    color: var(--colore-5);
    transition: .25s ease;
    background-color: #fff;
    border-radius: var(--border-radius-tax);
    padding: 5px 20px;
    font-size: 1.25rem;
    border: var(--border-1px-tax)
}

.tax-argomenti li.active a,
.tax-argomenti li a:hover {
    background: var(--colore-5);
    color: #fff;
    text-decoration: none !important;
}

@media (max-width: 767.98px) {
    .tax-argomenti {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 0;
        list-style: none;
        justify-content: initial !important;
        align-items: stretch !important;
    }

    /* “Tutti” su una riga */
    .tax-argomenti li:first-child {
        grid-column: 1 / -1;
    }

    .tax-argomenti li a {
        font-size: 0.95rem;
        padding: 6px 12px;
        white-space: normal;
        text-align: center;
        line-height: 1.2;
        width: 100%;
        display: block;
        box-sizing: border-box;
        font-size: 0.95rem;
        padding: 6px 12px;
        white-space: normal;
        text-align: center;
        line-height: 1.2;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        height: 100%;
    }
}

/* ----------------------------------------------------
            BOX IMMAGINE + TESTO
            ---------------------------------------------------- */

.box-img-testo {
    width: 100%;
    padding-block: 40px;
}

.box-img-testo.con-sfondo {
    position: relative;
    background-color: var(--colore-2);
}

.box-img-testo.con-sfondo.trasparente {
    background-color: transparent;
}

/* Sfondo immagine */
.box-img-testo.con-sfondo::before {
    content: "";
    position: absolute;
    inset: 5px 0 10px 10%;
    background-image: var(--bg-img-testo);
    background-size: contain;
    background-position-x: left;
    background-repeat: no-repeat;
    background-position-y: center;
    z-index: 0;
}

.box-img-testo.con-sfondo>* {
    position: relative;
    z-index: 1;
}

.box-img-testo span {
    color: var(--colore-1);
    font-size: clamp(1.5rem, calc(1rem + 2vw), 2.75rem);
    font-weight: 500;
}

.box-img-testo figure img {
    border-radius: var(--border-radius-img);
}

.box-img-testo figure figcaption {
    white-space: pre-line;
    line-height: 1.2;
}

@media (min-width: 1199px) {
    .box-img-testo {
        padding-block: 100px;
    }
}

/* ----------------------------------------------------
                            ACF BLOCKS: PUNTI
                            ---------------------------------------------------- */
.content-box .box.punto {
    padding-block: 40px;
    background: var(--box-sfumatura-content-box);
}

/* DESKTOP: layout verticale */
.content-box .box.punto .wrapper-punto {
    display: block;
}

.content-box .box.punto .wrapper-punto h3 {
    align-self: flex-end;
    margin-bottom: 0;

}

/* MOBILE: immagine + titolo affiancati */
@media (max-width: 767.98px) {
    .content-box .box.punto .wrapper-punto {
        display: flex;
        align-items: baseline;
        justify-content: start;
        gap: 12px;
    }

    .content-box .box.punto .wrapper-punto figure {
        width: 80px;
        margin: 0;
        flex-shrink: 0;
    }
}

/* ----------------------------------------------------
                        ACF BLOCKS: CITAZIONE
                        ---------------------------------------------------- */
.box-citazione {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: #fff;
    margin-block: 80px;
    line-height: 1.05;
    font-weight: 300;
}

.box-citazione__overlay {
    background: color-mix(in srgb, var(--colore-1) 60%, transparent);
    aspect-ratio: 16 / 9;
}

.box-citazione__overlay blockquote {
    font-size: clamp(3.25rem, calc(1rem + 5vw), 6.4rem);
}

.box-citazione__overlay .autore {
    font-size: clamp(1rem, calc(1rem + 1vw), 2.6rem);
}

@media (max-width: 480.98px) {

    .box-citazione.img,
    .box-citazione__overlay {
        aspect-ratio: 7 / 16;
    }
}

@media (min-width: 481px) and (max-width: 767.98px) {

    .box-citazione.img,
    .box-citazione__overlay {
        aspect-ratio: 10 / 16;
    }
}

.box-citazione.img {
    aspect-ratio: 16 / 9;
}

.box-citazione.semplice {
    font-size: clamp(1.4rem, calc(1rem + 5vw), 2.4rem);
    padding: 0 20px;
    color: var(--colore-1);
}

.box-citazione.semplice::before {
    content: "";
    border-left: 12px solid var(--colore-1);
    position: absolute;
    height: 100%;
}

.box-citazione.semplice p {
    padding-left: 1em;
}

/* box citazione colorata  */
.box-citazione.colorata {
    position: relative;
    background-color: var(--colore-1);
    border-radius: var(--border-radius-card);
    padding: 8vw;
    font-size: clamp(1rem, calc(1rem + 3vw), 3rem);
}

.citazione-testo {
    position: relative;
    z-index: 2;
    font-weight: 200;
    /*left: -80px;*/
}

.quote-icon {
    position: absolute;
    z-index: 1;
    opacity: .1;
    aspect-ratio: unset !important;
}

.quote-top {
    top: 40px;
    left: 40px;
    width: 150px;
    rotate: 180deg;
}

.quote-bottom {
    bottom: 40px;
    right: 40px;
    width: 53px;
}

@media (max-width: 767.98px) {
    .box-citazione-colorata {
        padding: 40px 30px;
        font-size: 1.6rem;
    }

    .quote-top {
        width: 80px;
        top: 10px;
        left: 10px;
    }

    .quote-bottom {
        width: 40px;
        bottom: 10px;
        right: 10px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .box-citazione-colorata {
        padding: 80px 60px 80px 120px;
        font-size: 2rem;
    }

    .quote-top {
        width: 100px;
    }
}

/* ----------------------------------------------------
   APPROFONDIMENTI / BLOG BOX
---------------------------------------------------- */
.content-box.approfondimenti.acf-block {
    background: var(--box-sfumatura-content-reverse);
}

.content-box.approfondimenti .box .data {
    top: 20px;
    right: 20px;
    color: #fff;
    padding: 0px 10px;
    font-size: 1rem;
    border-radius: var(--border-radius-card);
    background-color: var(--colore-1);
    font-weight: 300;
    border: var(--border-1px);
}

.content-box.approfondimenti .box img {
    border: var(--border-2px-img)
}

.content-box.approfondimenti .box.approfondimento h2,
.content-box.approfondimenti .box.approfondimento h3 {
    font-size: clamp(1.75rem, calc(0.9rem + 1.3vw), 2.2rem);
    font-weight: 500;
}

.content-box.approfondimenti .box.approfondimento h2 a:hover,
.content-box.approfondimenti .box.approfondimento h3 a:hover {
    color: var(--colore-4);
}

/* ----------------------------------------------------
   PORTFOLIO / BLOG PORTFOLIO BOX
---------------------------------------------------- */
.content-box.portfolio.acf-block {
    background: var(--box-sfumatura-content-reverse);
}

.content-box.portfolio .box img {
    border: var(--border-2px-img);
    aspect-ratio: 16 /9;
    object-fit: cover;
}

.content-box.portfolio .box.portfolio h2,
.content-box.portfolio .box.portfolio h3 {
    font-size: clamp(1.75rem, calc(0.9rem + 1.3vw), 2.2rem);
    font-weight: 500;
}

.content-box.portfolio .box.portfolio h2 a:hover,
.content-box.portfolio .box.portfolio h3 a:hover {
    color: var(--colore-4);
}

/* ----------------------------------------------------
                    PREFOOTER CON MODULO
                    ------------------------------------------------------*/
.prefooter {
    padding-block: 60px 80px;
    position: relative;
    background-color: var(--colore-2);
}

.prefooter .image {
    flex: 0 0 40%;
    z-index: 1;
}

.prefooter .image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    border-radius: var(--border-radius-card);
}

.prefooter .testo {
    flex: 0 0 60%;
    position: relative;
    width: 100%;
    height: 380px;
    padding: 0 160px 0 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--box-sfumatura);
    color: #fff;
    border-radius: var(--border-radius-card);
    margin-top: 5%;
    margin-left: 0;
    margin-right: -5%;
}

.prefooter .testo span {
    font-size: clamp(1.2rem, calc(1.2rem + 0.6vw), 1.8rem);
    font-weight: 500;
}

.prefooter .testo .titolo {
    font-size: clamp(1.8rem, calc(1.8rem + 1.1vw), 2.9rem);
    font-weight: 300;
    line-height: 1.05;
}

.prefooter .testo p {
    font-weight: 300;
}

@media (max-width: 991px) {
    .prefooter .content-img-testo-cta1 {
        flex-direction: column;
        position: relative;
    }

    .prefooter .testo {
        flex: none;
        width: 100%;
        height: auto;
        padding: 40px 30px;
        margin: 0;
        border-radius: var(--border-radius-card);
        z-index: 2;
    }

    .prefooter .image {
        flex: none;
        width: 100%;
        margin-top: -40px;
        z-index: 1;
    }

    .prefooter .image img {
        height: 260px;
        object-fit: cover;
        width: 100%;
        border-radius: var(--border-radius-card);
    }
}

/* ----------------------------------------------------
                        FOOTER
                        ---------------------------------------------------- */
footer {
    background-color: var(--bg-footer);
    color: #fff;
    padding-block: clamp(40px, 6vw, 80px);
    font-size: 1rem;
}

footer h2 {
    color: #fff;
    font-size: clamp(1.4rem, calc(1vw + 1rem), 1.8rem);
    margin-block: 30px 60px;
}

footer a {
    color: #fff;
}

footer a:focus-visible {
    outline: 2px solid var(--colore-3);
    outline-offset: 2px;
}

footer i {
    color: var(--colore-3);
    font-size: 1.1em;
    vertical-align: middle;
}

footer a:hover {
    color: var(--colore-3);
    transition: color .25s ease;
    text-decoration-line: unset !important;
}

footer ul.social li a,
footer ul.social li a i {
    font-size: 2.2rem;
    line-height: 1.05;
}

footer ul.social li a:hover,
footer ul.social li a:hover i {
    color: #fff;
}

footer .dati {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

footer .dati span.small {
    opacity: .5;
    font-size: .75rem;
    line-height: 1.05;
    font-weight: 300;
}

footer .dati i {
    font-size: .95rem;
    position: relative;
    bottom: 2px;
}

/* RICERCA (form) */
.open-search {
    text-align: center;
    display: flex;
    align-items: center;
}

.open-search a i {
    transform: rotate(90deg);
}

.overlay {
    height: 100%;
    width: 100%;
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    background: color-mix(in srgb, var(--colore-1) 95%, transparent);
}

.overlay-content {
    position: relative;
    top: 50%;
    transform: translate(12.5%, -50%);
}

.overlay .close-search {
    position: absolute;
    top: 100px;
    right: 45px;
    font-size: 60px;
    cursor: pointer;
    color: #fff;
    z-index: 999;
    background: transparent;
    border: none;
}

.overlay input {
    padding: 10px 15px;
    font-size: clamp(1.5rem, 5vw, 3rem);
    width: 75vw;
    background-color: transparent;
    border: var(--border-1px);
    margin: 0;
    text-align: center;
    color: #fff !important;
    border-radius: var(--border-radius-cta);
}

.overlay input::placeholder {
    color: #fff;
    opacity: 1;
}

.overlay input::-ms-input-placeholder {
    color: #fff;
}

.overlay input:focus,
.overlay input:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 0;
}

.search-alert {
    padding: 5px 20px;
    background: var(--colore-7);
    color: #fff;
    width: fit-content;
    border-radius: var(--border-radius-catalogo);
}

.search-result {
    padding: 20px 0;
    background: #fff;
    border-bottom: 1.5px solid var(--colore-8);
}

.search-result h2 a {
    color: var(--colore-1);
    font-weight: 700;
    font-size: clamp(1.4rem, calc(1.25vw + 0.8rem), 1.6rem);
}

.search-result h2 a:hover {
    color: var(--colore-4);
}

.search-result img {
    border-radius: var(--border-radius-img);
}

.search-result .highlight {
    background-color: var(--colore-5);
    padding: 5px;
}

.search-result .highlight {
    background-color: #a0c6b763;
    padding: 0 5px;
}

.search-result h2 a:hover .highlight {
    background-color: var(--colore-7);
    color: #fff;
}

.search-result .categoria a {
    color: var(--colore-5);
    transition: .25s ease;
    background-color: #fff;
    border-radius: var(--border-radius-tax);
    padding: 0 20px;
    font-size: 1rem;
    border: 2px solid var(--colore-5);
    font-weight: 600;
}

.search-result .categoria a:hover {
    border-color: var(--colore-4);
    color: var(--colore-4);
}

.search-result .badge-riservato {
    display: inline-block;
    background: var(--colore-7);
    color: #fff;
    font-size: .75rem;
    padding: 6px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: 500;
    line-height: 1em;
    position: relative;
    bottom: 4px;
}

.mobile-search-wrapper {
    padding: 20px;
}

.mobile-search-box {
    position: relative;
    top: 0;
}

.mobile-search-input {
    width: 100%;
    padding: .5rem 1rem .5rem;
    font-size: 1rem;
    outline: none;
    background: transparent;
    border: var(--border-1px);
    border-radius: 9px;
}

.mobile-search-input:focus {
    border-color: #fff;
}

.mobile-search-input::placeholder {
    color: #fff;
    opacity: .75;
}

.mobile-search-input::-ms-input-placeholder {
    color: #fff;
}

.mobile-search-box::before {
    content: "\f002";
    font-family: var(--font-awesome);
    font-weight: 900;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    pointer-events: none;
    font-size: 1rem;
}

/* ----------------------------------------------------
   PAGINAZIONE
---------------------------------------------------- */
.navigation.pagination .nav-links {
    display: flex;
    margin: 0 auto;
    gap: 20px;
}

.pagination-list span,
.pagination-list a {
    border-radius: 50%;
    padding: .25em;
    font-weight: 700;
    margin: 0;
    width: 50px;
    background-color: var(--colore-1);
    color: #fff;
    display: inline-block;
}

.pagination-list span.current {
    background-color: var(--colore-6);
    color: var(--colore-1);
}

.pagination-list a {
    color: #fff;
}

.pagination-list a.next,
.pagination-list a.prev {
    color: var(--colore-1);
    background-color: #fff;
}

/* ----------------------------------------------------
   MODULO CONTATTI
---------------------------------------------------- */
.cta.catalogo-form-toggle {
    width: 100%;
    color: #fff;
    padding: 10px 0 15px 0;
    border: none;
    font-size: clamp(1.25rem, calc(0.8rem + 2vw), 2.75rem);
    font-weight: 300;
    cursor: pointer;
    border-radius: var(--border-radius-preventivo);
    text-align: center;
}

.cta.catalogo-form-toggle:hover {
    background: var(--box-sfumatura-cta);
}

.cta.catalogo-form-toggle::after {
    content: "\f078";
    font-family: var(--font-awesome);
    font-weight: 900;
    font-size: clamp(1rem, calc(0.5rem + 2vw), 2.5rem);
    transition: transform .2s ease;
    border: none;
    display: inline-block;
}

.cta.catalogo-form-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.cta.catalogo-form-toggle[aria-expanded="true"] {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.catalogo-form-content {
    border: var(--border-1px);
    border-top: none;
    padding: 20px;
    border-radius: 0 0 42px 42px;
    background: var(--colore-2);
}

.modulo {
    background-color: var(--colore-2);
}

.modulo.area-riservata {
    border-bottom-left-radius: var(--border-radius-modulo);
    border-bottom-right-radius: var(--border-radius-modulo);
}

.modulo.area-riservata .ff-alert.ff-alert-error{
text-align: center;
color: var(--colore-7);
}

.modulo .row {
    padding-block: 20px;
}

input[type=text],
input[type=email],
input[type=tel],
input[type=password],
textarea {
    font-family: var(--font-1);
    border-radius: 10px;
    border: 1.5px solid var(--colore-6);
    padding: 5px 10px;
    color: var(--text-color);
}

.wpcf7-form label,
.modulo label {
    color: var(--colore-1);
    font-size: 1.25rem;
}

/* Errori CF7 */
.wpcf7-not-valid-tip {
    margin-block: 2px 10px;
    text-align: center;
    color: var(--colore-7);
    font-size: 1.25rem;
    display: block;
}

.wpcf7-acceptance input[type=checkbox] {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    position: relative;
    top: 6px;
    left: -20px;
    border: var(--border-2px-btn);
}

.wpcf7-acceptance input[type=checkbox]:checked {
    background: #fff;
}

.wpcf7-acceptance input[type=checkbox]:checked::after {
    content: "✔";
    font-size: 1rem;
    color: var(--colore-1);
    position: absolute;
    top: -2px;
    left: 4px;
}

/* Label checkbox */
.wpcf7-acceptance .wpcf7-list-item-label {
    position: relative;
    left: -15px;
    font-size: 1.25rem;
}

.wpcf7-acceptance .wpcf7-list-item-label a {
    color: var(--colore-1);
    text-decoration: underline;
    text-decoration-color: var(--colore-1);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.wpcf7-submit {
    background: var(--box-sfumatura-cta);
    color: #fff;
    border: none;
    border-radius: var(--border-radius-modulo);
    padding: 0 50px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.wpcf7-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Spinner */
.col-12.text-end {
    position: relative;
}

.wpcf7-spinner {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    pointer-events: none;
}

/* CAPTCHA */
#arithmetic_cal {
    width: fit-content;
}

#rtn {
    padding: 5px 10px;
    border-radius: var(--border-radius-modulo);
    border: none;
    margin-top: 10px;
    font-size: 1rem;
}

#arithmathic_refresh {
    border: none;
    margin-inline: 10px;
    cursor: pointer;
    position: relative;
    top: -2px;
}

#arithmathic_refresh svg {
    width: 20px;
    height: 20px;
    fill: var(--colore-1);
    transition: transform .2s ease;
}

#arithmathic_refresh:hover svg {
    transform: rotate(90deg);
}

#arithmathic_result {
    margin-top: 10px;
    font-size: .9rem;
    color: #fff;
}

/* BOX REGISTRAZIONE - LOGIN */
.box-registrazione-login h2 {
    background-color: var(--colore-1);
    color: #fff;
    padding: 20px;
    margin-bottom: 0;
    border-top-left-radius: var(--border-radius-cta);
    border-top-right-radius: var(--border-radius-cta);
}

/* barra admin */
body.admin-bar #nav-top {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar #nav-top {
        top: 46px;
    }
}