@font-face {
    font-family: 'Work Sans';
    src: url('../fonts/WorkSans-Variable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Work Sans';
    src: url('../fonts/WorkSans-VariableItalic.woff2') format('woff2');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Zodiak';
    src: url('../fonts/Zodiak-Variable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Zodiak';
    src: url('../fonts/Zodiak-VariableItalic.woff2') format('woff2');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}
:root {
    /* COLORI */
    --ottanio: #2f6976;
    --zucchero: #8db9cb;
    --senape: #cfaa4f;
    --pavone: #0c3f45;
    --sabbia: #f1eeeb;
}
body {
    font-family: 'Work Sans', sans-serif;
    font-size: 15px;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Zodiak', serif;
}
h1 {
    color: var(--pavone);
    font-size: 42px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 1.5rem;
}
h2 {
    color: var(--ottanio);
    font-weight: 500;
    font-size: 30px;
    line-height: 1.3em;
}
h3 {
    color: var(--ottanio);
    font-weight: 600;
    font-size: 26px;
}
h4 {
    color: var(--senape);
    font-family: work sans;
    text-transform: uppercase;
    font-weight: 600;
}
h4.recensione-meseanno {
    font-family: 'Zodiak',serif;
    font-size: 1rem;
    color: var(--bs-heading-color);
    text-transform: none;
    font-weight: 500;
}
a {
    color: var(--ottanio);
    text-decoration: none; /* opzionale, se vuoi togliere la sottolineatura */
}
a:hover,
a:active,
a:focus {
    color: var(--senape);
    outline: none; /* opzionale, solo se hai un altro stile di focus */
}
.table {
    --bs-table-striped-bg: var(--sabbia);
}
.btn {
    border-radius: 2em;
    --bs-btn-font-size: 14px;
    --bs-btn-line-height: 24px;
    --bs-btn-padding-x: 26px;
}
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--senape);
    --bs-btn-border-color: var(--senape);
    --bs-btn-hover-bg: var(--ottanio);
    --bs-btn-hover-border-color: var(--ottanio);
    --bs-btn-active-bg: var(--ottanio);
    --bs-btn-active-border-color: var(--ottanio);
}
.btn-primary:focus {
    color: #fff;
}
.btn-primary:disabled {
    --bs-btn-disabled-bg: var(--ottanio);
    --bs-btn-disabled-border-color: var(--ottanio);
}
.navbar-nav {
    --bs-nav-link-color: #000;
    --bs-nav-link-hover-color: var(--ottanio);
}
.tnp-submit.btn-primary {
    --bs-btn-bg: var(--ottanio);
    --bs-btn-border-color: var(--ottanio);
    --bs-btn-hover-color: var(--ottanio);
    --bs-btn-hover-bg: var(--sabbia);
    --bs-btn-hover-border-color: var(--sabbia);
    --bs-btn-active-bg: var(--sabbia);
    --bs-btn-active-border-color: var(--sabbia);
}
.tnp-submit.btn-primary:disabled {
    --bs-btn-disabled-bg: var(--ottanio);
    --bs-btn-disabled-border-color: var(--ottanio);
}
.btn-secondary {
    --bs-btn-color: var(--ottanio);
    --bs-btn-bg: var(--zucchero);
    --bs-btn-border-color: var(--zucchero);
    --bs-btn-hover-color: var(--zucchero);
    --bs-btn-hover-bg: var(--pavone);
    --bs-btn-hover-border-color: var(--pavone);
    --bs-btn-active-color: var(--zucchero);
    --bs-btn-active-bg: var(--pavone);
    --bs-btn-active-border-color: var(--pavone);
}
.btn-secondary:focus {
    color: var(--ottanio);
}
.btn-outline-primary {
    --bs-btn-color: var(--senape);
    --bs-btn-border-color: var(--senape);
    --bs-btn-hover-bg: var(--senape);
    --bs-btn-hover-border-color: var(--senape);
    --bs-btn-active-bg: var(--senape);
    --bs-btn-active-border-color: var(--senape);
}
.pagination {
    --bs-pagination-active-bg: var(--senape);
    --bs-pagination-active-border-color: var(--senape);
    --bs-pagination-color: var(--ottanio);
    --bs-pagination-hover-color: #fff;
    --bs-pagination-hover-bg: var(--senape);
    --bs-pagination-hover-border-color: var(--senape);
    --bs-pagination-focus-color: #fff;
    --bs-pagination-focus-bg: var(--senape);
    --bs-pagination-focus-border-color: var(--senape);
}
.badge {
    --bs-badge-font-size: 14px;
    --bs-border-radius: 0.2rem;
    --bs-badge-font-weight: 500;
}
.bg-primary {
    --bs-primary-rgb: 207,170,79;
}
.bg-secondary {
    --bs-secondary-rgb: 233,79,61;
}
.page-link:focus {
    box-shadow: none;
}
.navbar-toggler-svg .line {
    stroke: var(--ottanio);
}
.counter {
    color: #2F6976;
    margin-bottom: 0.625rem;
    font-weight: 500;
    font-size: 30px;
    line-height: 1.3em;
    font-family: 'Zodiak', serif;
    display: block;
    text-align: center;
}
#top-bar {
    background-color: var(--ottanio);
    color: #fff;
}
#top-bar a {
    color: #fff;
    text-decoration: none;
}
#top-bar .iconify {
    color: var(--senape);
}
.site-logo {
    max-width: 250px;
    margin: 15px 0;
}
#masthead {
    background-color: #fff;
}
#main-nav .menu-item {
    margin-left: 15px;
}
#main-nav .menu-item .dropdown-menu .menu-item {
    margin-left: 0;
}
#main-nav .active .current_page_item a {
    color: var(--ottanio);
}
#main-nav .nav-link {
    position: relative;
}
#main-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--zucchero);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}
#main-nav .nav-link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}
#main-nav .active > .nav-link::before,
#main-nav .current-menu-item > .nav-link::before {
    transform: scaleX(1);
    transform-origin: left;
    transition: none;
}
.breadcrumb {
    --bs-breadcrumb-font-size: 14px;
}
.breadcrumb .spacer {
    display: inline-block;
    margin-left: 3px;
    margin-right: 3px;
}
.dropdown-item:focus, .dropdown-item:hover {
    background-color: transparent;
    color: var(--ottanio);
}
/* nascondi lo slider finché swiper non è pronto */
.home-hero-slider.swiper {
    opacity: 0;
    transition: opacity 0.3s ease;
}
.home-hero-slider.swiper.swiper-initialized {
    opacity: 1;
}
/* Altezza fissa dello slider */
.home-hero-slider,
.home-hero-slide {
    height: 70vh;
    min-height: 300px; /* fallback sensato per schermi piccoli */
    position: relative;
}
/* L’immagine deve coprire sempre l’area */
.home-hero-slide__bg {
    position: absolute;
    inset: 0;
    margin-bottom: 10px;
}
.home-hero-slide__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}
/* Overlay testo */
.home-hero-slide__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    color: #fff;
}
/* Titolo */
.home-hero-slide__title {
    font-size: 36px;
    font-weight: 500;
    max-width: 50%;
    font-style: italic;
    color: #fff;
}
.home-hero-slide__bdbg {
    color: var(--zucchero);
    font-size: 24px;
    font-weight: 700;
    max-width: 50%;
}
.home-hero-slider .swiper-pagination-bullets.swiper-pagination-horizontal {
    bottom: 40px;
    left: calc(var(--bs-gutter-x) * .5);
    text-align: left;
}
/* Bullet normale */
.home-hero-slider .swiper-pagination-bullet {
    width: 40px;            /* lunghezza del trattino */
    height: 3px;            /* spessore */
    border-radius: 0;       /* niente bordi arrotondati */
    background: #fff;  /* colore attenuato */
    margin: 0 4px;          /* spazio tra i trattini */
    opacity: 1;             /* disattiva gestione opacity di Swiper */
}
/* Bullet attivo */
.home-hero-slider .swiper-pagination-bullet-active {
    background: var(--zucchero);
}
/* Contenitore dello slider novità */
.bd-swiper-novita {
}
/* Le slide possono avere larghezza automatica */
.bd-swiper-novita .swiper-slide {
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
}
/* Qui si fa la magia: altezza fissa, larghezza che segue */
.bd-swiper-novita .swiper-slide img {
    height: 350px;               /* scegli tu: 180, 200, 240… */
    width: auto;                 /* si allarga in base all’altezza, mantenendo il ratio */
    max-width: 100%;             /* per sicurezza, così non esce dalla slide */
    object-fit: contain;         /* o "cover" se vuoi che riempia tagliando un po' */
    display: block;
    -webkit-box-shadow: 5px 4px 10px -1px rgba(0,0,0,0.46);
    box-shadow: 5px 4px 10px -1px rgba(0,0,0,0.46);
}
/* main.css */
.bd-grid-novita {
    /* già .row da Bootstrap */
}
.bd-novita-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%; /* occupa tutta l'altezza disponibile */
}
.bd-novita-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px; /* stessa altezza dello swiper */
    margin-bottom: 1rem;
    padding: 15px; /* spazio per l'ombra, come nello swiper */
}
.bd-novita-cover img {
    max-height: 350px; /* altezza massima, come nello swiper */
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* stessa ombra */
}
.bd-novita-title {
    font-size: 1rem;
    margin: 0;
    padding: 0 1rem;
    word-wrap: break-word;
}
.bd-novita-autore {
    font-family: 'Zodiak', serif;
    font-size: 1rem;
    text-transform: capitalize;
    margin: 0 0 1rem 0;
    font-weight: normal;
    color: var(--pavone);
}
/* Margine solo se c'è il bottone dopo */
.bd-novita-item:has(.bd-prenota-btn) .bd-novita-title {
    margin-bottom: 0.5rem;
}
.bd-prenota-btn {
    margin-top: auto;
}
.bd-col-sticky {
    position: sticky;
    top: 150px;
    align-self: flex-start;
}
.single h1 {
    text-align: left;
    font-size: 32px;
}
.beweb-search-form label {
    font-weight: bold;
    color: var(--ottanio);
}
.home .beweb-search-form label {
    color: var(--sabbia);
}
.details {
    background-color: var(--sabbia);
}
.widget-storie-carta .attachment-thumbnail,
.widget-attivita .attachment-thumbnail{
    width: 100px;
    height: auto;
    display: block;
}
.widget-storie-carta h3,
.widget-attivita h3 {
    font-size: 16px;
}
.n {
    color: var(--senape);
}
.t {
    color: var(--ottanio);
}
#secondary h3,
.details.card h3 {
    font-size: 22px;
    color: var(--senape);
}
#secondary h4 {
    font-size: 18px;
    text-transform: none;
    font-family: 'Zodiak', serif;
    letter-spacing: 0;
}
#secondary .widget-attivita h4 {
    font-size: 15px;
}
.accordion-button {
    background-color: var(--sabbia);
    padding-top: 10px;
    padding-bottom: 10px;
    color: var(--ottanio);
}
.accordion-button:not(.collapsed) {
    background-color: var(--zucchero);
    color: var(--ottanio);
}
.accordion-button:focus {
    box-shadow: none;
}
.accordion-button.disabled::after {
    visibility: hidden;
}
.accordion-item {
    /*background-color: var(--sabbia);*/
    border: 0;
    margin-bottom: 5px;
}
.card {
    --bs-card-border-width: 0;
    --bs-card-spacer-x: 0;
}
.card h3 {
    font-size: 18px;
}
.attivita_grid .card-title,
.percorsi_grid .card-title {
    --bs-card-title-color: var(--ottanio);
}
.attivita_grid .card-image,
.percorsi_grid .card-image {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}
.attivita_grid .card-image img,
.percorsi_grid .card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.attivita_grid .card-image:hover img,
.percorsi_grid .card-image:hover img {
    transform: scale(1.08);
}
.attivita_grid .card-image .position-absolute.top-0,
.percorsi_grid .card-image .position-absolute.top-0 {
    z-index: 1;
}
.archive .table {
    table-layout: fixed;
    width: 100%;
}
.archive .table th,
.archive .table td{
    word-break: break-word;        /* fallback */
    overflow-wrap: anywhere;       /* chiave */
}
.archive .form-label[for="bd-catalogo-search"] {
    font-weight: bold;
    color: var(--ottanio);
}
.archive .table th {
    color: var(--ottanio);
}
.table-hover > tbody > tr:hover > * {
    --bs-table-hover-bg: var(--zucchero);
    --bs-table-hover-color: #fff;
}
/* notifica "copiato negli appunti" */
.archivio-table tbody tr {
    cursor: pointer;
    transition: background-color 0.2s;
}
.archivio-table tbody tr:hover {
    background-color: rgba(47, 105, 118, 0.05);
}
.copia-notifica {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(47, 105, 118, 0.95);
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 9999;
    animation: slideIn 0.3s ease;
}
.copia-notifica.fade-out {
    opacity: 0;
    transition: opacity 0.3s;
}
@keyframes slideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
/* Ticker avvisi */
.news-ticker {
    background: var(--zucchero);
    overflow: hidden;
    padding: 12px 0;
    position: relative;
}
.news-ticker-wrapper {
    overflow: hidden;
}
.news-ticker-content {
    display: flex;
    white-space: nowrap;
    font-family: 'Zodiak', serif;
}
.news-item {
    color: var(--pavone);
    padding: 0;
    font-size: 16px;
    font-weight: 500;
}
.news-intro {
    color: #fff;
    padding: 0 10px;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
}
.news-intro:before {
    content: "|";
    color: var(--pavone);
    padding: 0 10px 0 0;
}
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
.news-ticker:hover .news-ticker-content {
    animation-play-state: paused;
}
#loghi-footer {
    background-color: var(--sabbia);
}
#colophon {
    font-size: 12px;
    color: #fff;
    background-color: var(--ottanio);
}
#footer-widget {
    background-color: var(--zucchero);
    color: var(--pavone);
}
#footer-widget .titoletto {
    color: #fff;
    font-weight: bold;
}
#footer-widget a {
    color: var(--ottanio);
    text-decoration: none;
}
#footer-widget a:hover {
    color: var(--pavone);
}
#footer-widget .menu {
    margin-bottom: 15px;
}
#footer-widget .nav-link {
    padding: 0;
}
#footer-widget .menu-item {
    padding-top: 3px;
    margin-top: 3px;
    border-top: 1px solid var(--ottanio);
}
#footer-widget .menu-item:last-of-type {
    padding-bottom: 3px;
    border-bottom: 1px solid var(--ottanio);
}
#footer-widget .form-control {
    padding: 5px 10px;
    background-color: var(--sabbia);
}
#footer-widget .btn {
    --bs-btn-padding-x: 15px;
    --bs-btn-padding-y: 1px;
}
#colophon a {
    color: #fff;
    text-decoration: none;
}
.text-big {
    font-size: 20px;
}
.titolo-riga {
    font-size: 16px;
    color: var(--senape);
    font-family: 'Work Sans', sans-serif;
    text-transform: uppercase;
    font-weight: 800;
}
.miniatura-testo-left img {
    float: left;              /* sposta l'immagine nell'angolo in alto a sinistra */
    margin: 0 1rem 0.5rem 0;  /* spazio tra immagine e testo */
    width: 150px;             /* stessa dimensione del file */
    height: auto;
}
.miniatura-testo-right img {
    float: right;              /* sposta l'immagine nell'angolo in alto a sinistra */
    margin: 0 1rem 0.5rem 0;  /* spazio tra immagine e testo */
    width: 150px;             /* stessa dimensione del file */
    height: auto;
}
/* Contenitore */
.img-stack {
    position: relative;
}
/* IMMAGINE SOTTO: allineata a sinistra, non a tutta larghezza */
.img-stack .wpb_single_image:first-child {
    margin-bottom: 0;
    text-align: left; /* chi se ne frega, ma aiuta */
}
.img-stack .wpb_single_image:first-child img {
    width: 70%;      /* non riempie la colonna: regola 60–80% */
    height: auto;
    display: block;
}
/* IMMAGINE SOPRA: sovrapposta, allineata a destra */
.img-stack .wpb_single_image.img-stack-top {
    position: absolute;
    right: 0;        /* attaccata a destra della colonna */
    top: 52%;        /* scende un po’ sotto la metà: regola tu (50–65%) */
    transform: translateY(-20%);
    z-index: 2;
    width: 70%;
}
/* Bordo bianco e ombra sulla foto sopra */
.img-stack .wpb_single_image.img-stack-top img {
    border: 5px solid #fff;
    box-sizing: border-box;
}
/* Rimuove i puntini standard */
ul.custom-line-list {
    list-style: none;
    padding-left: 0;
}
/* Stile per ogni elemento */
ul.custom-line-list li {
    position: relative;
    padding-left: 30px;  /* spazio per la linea */
    margin-bottom: 10px; /* opzionale */
}
/* La linea personalizzata */
ul.custom-line-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;         /* verticale: si regola se serve */
    width: 20px;
    height: 2px;
    background-color: var(--senape);
}
.not_home  header .navbar {
    border-bottom: 2px solid var(--ottanio);
}
header .navbar.scrolled {
    border-bottom: 0;
}
.parent-page-title {
    color: var(--senape);
    text-align: center;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 20px;
}
.single .parent-page-title {
    color: var(--zucchero);
    text-align: left;
}
.icona_testo p {
    margin-bottom: 0;
}
.icona_testo.servizi .text {
    font-family: 'Zodiak', serif;
    font-weight: bold;
    font-size: 16px;
}
/* BOTTONE TORNA SU */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--ottanio);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(47, 105, 118, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
#backToTop.visible {
    opacity: 1;
    visibility: visible;
}
#backToTop:hover {
    background: var(--zucchero);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(47, 105, 118, 0.3);
}

#backToTop:active {
    transform: translateY(-1px);
}
/* Icona freccia */
#backToTop svg {
    width: 24px;
    height: 24px;
    fill: var(--sabbia);
    transition: transform 0.3s ease;
}
#backToTop:hover svg {
    transform: translateY(-2px);
}
@media (max-width: 1199.98px) {
    #masthead {
        position: sticky;
        top: 0;
        z-index: 1000;
        background: #fff;
    }
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        z-index: 999;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        max-height: calc(100vh - 100%);
        overflow-y: hidden;
        padding: 5px;
    }
    .site-logo {
        max-width: 150px;
        margin: 5px 0;
    }
    /* Personalizzazioni dropdown mobile */
    #main-nav .dropdown-menu {
        padding-left: 1rem;
        background: transparent;
    }

    #main-nav .dropdown-toggle::after {
        float: right;
        margin-top: 0.5rem;
    }

    #main-nav .nav-link::before {
        display: none;
    }
    .home-hero-slide__bdbg,
    .home-hero-slide__title {
        max-width: 80%;
    }
    .news-ticker-content {
        animation: scroll 15s linear infinite;
    }
}
/* Versione responsive */
@media (max-width: 767.98px) {
    #backToTop {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    #backToTop svg {
        width: 20px;
        height: 20px;
    }
    .news-ticker-content {
        animation: scroll 5s linear infinite;
    }
    .vc_sep_width_40 {
        width: 70%;
    }
    #loghi-footer a img {
        min-width: 80px;
        max-width: 120px;
    }
}
@media (min-width: 992px) {
    .col-lg-2-4 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}