/* ==========================================================================
   BS AvisBNB — main.css
   Tema proprietario bs-avisbnb: nessuna dipendenza da Divi / et_pb_*
   ========================================================================== */

/* ── Variabili CSS ─────────────────────────────────────────────────────────── */
:root {
    --color-accent:      #2ea3f2;
    --color-accent-dark: #0c71c3;
    --color-yellow:      #f9e500;
    --color-yellow-lime: #edf000;
    --color-dark:        #333333;
    --color-mid:         #666666;
    --color-light:       #f5f5f5;
    --color-white:       #ffffff;
    --color-border:      #e0e0e0;
    --color-header-bg:   #ffffff;
    --color-footer-bg:   #222222;
    --color-footer-bottom-bg: #1f1f1f;
    --color-footer-text: #ffffff;
    --color-footer-info: #666666;
    --color-overlay:     rgba(0, 0, 0, 0.65);

    --font-body:    'Open Sans', Arial, sans-serif;
    --font-heading: 'Raleway', sans-serif;
    --font-bevan:   'Bevan', cursive;
    --font-dosis:   'Dosis', sans-serif;
    --font-chewy:   'Chewy', cursive;

    --header-height: 80px;
    --container-max: 1080px;
    --gutter:        30px;
}

/* ── Reset base ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.7em;
    color: var(--color-mid);
    background: var(--color-white);
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.3em;
    margin: 0 0 .5em;
}

h3, h4 { color: var(--color-accent); }
h6 { color: var(--color-dark); }

p { margin: 0 0 1em; }

.clearfix::after { content: ''; display: table; clear: both; }

/* ── Layout container ──────────────────────────────────────────────────────── */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

#page-container {
    overflow: hidden;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#et-main-area {
    flex: 1 0 auto;
    padding-top: var(--header-height);
}

/* ── Header ────────────────────────────────────────────────────────────────── */
#main-header {
    background: var(--color-header-bg);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    height: var(--header-height);
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
    transition: height .2s ease;
}

#main-header .et_menu_container {
    display: flex;
    align-items: center;
    height: var(--header-height);
}

/* Logo */
.logo_container {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    margin-right: 40px;
}

.logo_container .custom-logo,
.logo_container #logo {
    display: block;
    max-height: 43px;
    width: auto;
}

/* Navigazione */
#et-top-navigation {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

#top-menu-nav { flex: 1; }

ul#top-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
}

ul#top-menu > li {
    position: relative;
}

ul#top-menu > li > a {
    display: block;
    padding: 0 18px;
    height: var(--header-height);
    line-height: var(--header-height);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.6);
    text-transform: none;
    letter-spacing: 0;
    transition: color .2s;
    white-space: nowrap;
}

/* Freccia dropdown per voci con figli */
ul#top-menu > li.menu-item-has-children > a::after {
    content: ' \2304';
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    vertical-align: middle;
    position: relative;
    top: -2px;
    margin-left: 3px;
}

ul#top-menu > li > a:hover,
ul#top-menu > li.current-menu-item > a,
ul#top-menu > li.current_page_item > a,
ul#top-menu > li.current-menu-ancestor > a {
    color: var(--color-accent);
    text-decoration: none;
}

/* Dropdown */
ul#top-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--color-white);
    box-shadow: 0 3px 10px rgba(0,0,0,.15);
    border-top: 2px solid var(--color-accent);
    list-style: none;
    margin: 0;
    padding: 10px 0;
    z-index: 9999;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity .2s ease, transform .2s ease;
}

ul#top-menu li:hover > .sub-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

ul#top-menu .sub-menu li a {
    display: block;
    padding: 8px 20px;
    font-size: 13px;
    color: var(--color-dark);
    font-weight: 400;
    white-space: nowrap;
}

ul#top-menu .sub-menu li a:hover { color: var(--color-accent); }

/* Icona search */
#et_top_search {
    margin-left: 15px;
    cursor: pointer;
}

#et_search_icon {
    display: block;
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Form search */
.et_search_outer {
    display: none;
    background: var(--color-light);
    border-top: 1px solid var(--color-border);
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: 9998;
}

.et_search_outer.bs-search-visible { display: block; }

.et_search_form_container { padding: 15px var(--gutter); display: flex; align-items: center; gap: 10px; }

.et-search-field {
    flex: 1;
    padding: 8px 15px;
    border: 1px solid var(--color-border);
    border-radius: 3px;
    font-size: 14px;
    font-family: var(--font-body);
    outline: none;
}

.et_close_search_field {
    cursor: pointer;
    font-size: 20px;
    color: var(--color-mid);
    line-height: 1;
}
.et_close_search_field::after { content: '×'; }

/* Menu mobile toggle */
#et_mobile_nav_menu { display: none; margin-left: 15px; }

.mobile_menu_bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-dark);
    position: relative;
    cursor: pointer;
}
.mobile_menu_bar::before,
.mobile_menu_bar::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-dark);
    position: absolute;
}
.mobile_menu_bar::before { top: -7px; }
.mobile_menu_bar::after  { top: 7px; }

/* ── Area principale (offset header fisso) ─────────────────────────────────── */
/* #et-main-area padding-top gestito nel blocco #page-container sopra */

/* ── Sezioni bs-* ──────────────────────────────────────────────────────────── */
.bs-section {
    padding: 54px 0;
    position: relative;
}

.bs-row {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 27px var(--gutter);
    display: flex;
    flex-wrap: wrap;
    gap: var(--gutter);
}

.bs-col       { flex: 1; min-width: 0; }
.bs-col--1-2  { flex: 0 0 calc(50% - calc(var(--gutter) / 2)); }
.bs-col--4-4  { flex: 0 0 100%; }

/* ── Hero section ──────────────────────────────────────────────────────────── */
.bs-hero-section.bs-section {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 0;
    min-height: 172px;
    display: flex;
    align-items: center;
}

.bs-hero-row {
    align-items: center;
}

.bs-hero-text-col {
    color: var(--color-white);
    text-align: center;
}

.bs-hero-title {
    font-family: var(--font-heading);
    font-size: xx-large;
    color: var(--color-yellow);
}

.bs-hero-bevan {
    font-family: var(--font-bevan);
}

.bs-hero-text-col h1 {
    color: var(--color-yellow);
    margin-bottom: .3em;
}

.bs-hero-text-col p {
    color: rgba(255,255,255,.8);
    font-size: 14px;
    margin: 0;
}

.bs-hero-logo-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bs-hero-logo {
    max-width: 354px;
    height: auto;
    animation: slideInLeft .5s ease-in-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ── Slider section ────────────────────────────────────────────────────────── */
.bs-slider-section {
    padding: 0 0 54px;
    background: var(--color-accent-dark);
}

.bs-slider-section .bs-row {
    padding: 27px 0;
    max-width: var(--container-max);
}

/* Slider section: padding come prod Divi (27px top, 68px bottom) */
.bs-slider-section > .bs-row {
    padding: 27px 0 68px;
    max-width: var(--container-max);
}

/* Swiper container */
.bs-slider {
    width: 100%;
    height: 483px;
    position: relative;
}

/* Ogni slide */
.bs-slider .swiper-slide {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: var(--color-accent-dark); /* stesso colore sezione esterna */
}

/* Overlay scuro sulle slide — replica et_pb_slide_overlay_container di Divi */
.bs-slide__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.bs-slide__container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.bs-slide__inner { width: 100%; }

.bs-slide__desc {
    color: var(--color-white);
    padding: 20px 0;
    max-width: 100%;
    text-align: center;
}

/* Titolo slide */
.bs-slide__title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 .4em;
    line-height: 1.2em;
    color: var(--color-yellow-lime);
    text-align: center;
}

.bs-slide__title a {
    color: var(--color-yellow-lime);
    text-decoration: none;
    transition: color .2s;
}

.bs-slide__title a:hover { color: var(--color-yellow); }

/* Meta */
.bs-slider .post-meta {
    font-size: 12px;
    color: rgba(255,255,255,.7);
    margin: 0 0 .8em;
    text-align: center;
}

.bs-slider .post-meta a { color: rgba(255,255,255,.85); }
.bs-slider .post-meta a:hover { color: var(--color-yellow); }

/* Excerpt */
.bs-slide__content { font-size: 13px; color: rgba(255,255,255,.85); margin-bottom: 1em; text-align: center; }
.bs-slide__content p { margin: 0; }

/* Bottone wrapper */
.bs-btn-wrapper { margin-top: 10px; text-align: center; }

/* Bottone generico */
.bs-btn {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid var(--color-yellow);
    color: var(--color-yellow);
    background: transparent;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background .2s, color .2s;
    text-decoration: none;
}

/* Bottone "Read More" nello slider */
.bs-btn--more,
.bs-slider .bs-btn--more {
    display: inline-block;
    padding: 9px 18px;
    border: 2px solid rgba(255,255,255,.8) !important;
    color: var(--color-white) !important;
    background: transparent;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
    text-decoration: none;
}

.bs-btn:hover {
    background: var(--color-yellow);
    color: var(--color-dark);
    text-decoration: none;
}

.bs-btn--more:hover {
    background: rgba(255,255,255,.15);
    border-color: var(--color-white);
    color: var(--color-white);
    text-decoration: none;
}

/* Swiper controlli */
.bs-slider .swiper-button-prev,
.bs-slider .swiper-button-next {
    color: var(--color-yellow);
}

.bs-slider .swiper-button-prev::after,
.bs-slider .swiper-button-next::after {
    font-size: 20px;
}

.bs-slider .swiper-pagination-bullet {
    background: rgba(255,255,255,.5);
    opacity: 1;
}

.bs-slider .swiper-pagination-bullet-active {
    background: var(--color-yellow);
}

/* ── Pagine interne ────────────────────────────────────────────────────────── */
#content-area {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 40px var(--gutter);
}

.entry-title-wrapper {
    margin-bottom: 30px;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 15px;
}

.entry-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-dark);
    margin: 0;
}

/* Blocchi Gutenberg – stili base */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    font-family: var(--font-heading);
    color: var(--color-dark);
}

.entry-content .wp-block-columns { gap: 30px; }

.entry-content .wp-block-image img {
    border-radius: 3px;
}

.entry-content .wp-block-button__link {
    background: var(--color-accent);
    border-radius: 3px;
}

/* Meta post */
.post-meta {
    font-size: 12px;
    color: var(--color-mid);
    margin-bottom: 1em;
}

.post-meta a { color: var(--color-accent); }

/* Thumbnail singolo post */
.bs-post-thumbnail { margin-bottom: 20px; }
.bs-post-thumbnail img { border-radius: 3px; width: 100%; }

/* Navigazione post prev/next */
.bs-post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    font-size: 13px;
}

/* Grid post (archive/index) */
.bs-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* .bs-post-card bordo/shadow rimossi — stile pulito senza box */

.bs-post-title {
    font-size: 1.1rem;
    margin: 0 0 8px;
}

.bs-post-title a { color: var(--color-dark); }
.bs-post-title a:hover { color: var(--color-accent); text-decoration: none; }

.bs-post-excerpt { font-size: 13px; color: var(--color-mid); margin-bottom: 15px; }

/* Paginazione */
.bs-pagination { text-align: center; margin-top: 20px; }
.bs-pagination .nav-links { display: inline-flex; gap: 5px; }
.bs-pagination a,
.bs-pagination span {
    padding: 6px 12px;
    border: 1px solid var(--color-border);
    border-radius: 3px;
    font-size: 13px;
    color: var(--color-dark);
}
.bs-pagination a:hover { background: var(--color-accent); color: var(--color-white); border-color: var(--color-accent); text-decoration: none; }
.bs-pagination .current { background: var(--color-accent); color: var(--color-white); border-color: var(--color-accent); }

/* 404 */
.bs-404 { text-align: center; padding: 60px 0; }
.bs-404 h1 { font-size: 3rem; color: var(--color-accent); }
.bs-404 p { font-size: 1.1rem; color: var(--color-mid); margin-bottom: 30px; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
#main-footer {
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding-top: 6%;
    margin-top: auto;
    flex-shrink: 0;
}

#footer-widgets {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-widget {
    flex: 1;
    min-width: 200px;
    color: var(--color-white);
}

.footer-widget .widget-title {
    font-family: var(--font-heading);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,.15);
}

.footer-widget a { color: var(--color-white); }
.footer-widget a:hover { color: hsla(0,0%,100%,.7); text-decoration: none; }
.footer-widget ul { list-style: none; margin: 0; padding: 0; }
.footer-widget ul li { padding: 4px 0; font-size: 13px; }

#footer-bottom {
    padding: 15px 0;
    background: var(--color-footer-bottom-bg);
    background: rgba(0,0,0,.32);
    margin-top: 0;
}

#footer-info {
    margin: 0;
    font-size: 12px;
    color: var(--color-footer-info);
    text-align: left;
}

#footer-info a {
    color: var(--color-footer-info);
    font-weight: 700;
}

#footer-info a:hover { color: var(--color-accent); text-decoration: none; }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 980px) {

    /* Mostra hamburger, nascondi menu desktop */
    #top-menu-nav { display: none; }
    #et_top_search { display: none; }
    #et_mobile_nav_menu { display: flex; align-items: center; }

    /* Mobile nav aperto */
    #top-menu-nav.mobile-open {
        display: block;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-white);
        box-shadow: 0 5px 15px rgba(0,0,0,.15);
        z-index: 9998;
        padding: 10px 0;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
    }

    ul#top-menu {
        flex-direction: column;
        align-items: stretch;
    }

    ul#top-menu > li > a {
        height: auto;
        line-height: 1.5;
        padding: 12px var(--gutter);
    }

    ul#top-menu .sub-menu {
        position: static;
        box-shadow: none;
        display: none;
        opacity: 1;
        transform: none;
        background: var(--color-light);
        padding: 0;
    }

    ul#top-menu .sub-menu.open { display: block; }

    ul#top-menu .sub-menu li a {
        padding: 10px var(--gutter) 10px calc(var(--gutter) + 15px);
    }

    /* Hero */
.bs-hero-section .bs-row { flex-direction: column; }
.bs-col--1-2 { flex: 0 0 100%; }

    /* Slider */
    .bs-slider { height: 260px; }
    .bs-slide__title { font-size: 1.4rem; }

    /* Footer */
    #footer-widgets { flex-direction: column; }
    .footer-widget { min-width: unset; }
}

@media (max-width: 640px) {
    .bs-slider { height: 220px; }
    .bs-slide__title { font-size: 1.2rem; }
    .bs-posts-grid { grid-template-columns: 1fr; }
    .bs-row { padding: 20px var(--gutter); }
}

/* ── Animazioni on-scroll (sistema bs-, replica effetti Divi) ────────────────
   Uso: aggiungere .bs-animate + una variante all'elemento; main.js aggiunge
   .bs-in-view quando l'elemento entra nel viewport.
   Varianti: --fade --from-left --from-right --from-top --from-bottom --zoom
   Delay sfalsabile: style="--bs-anim-delay: 150ms"
   Attive solo con JS attivo (html.js): senza JS il contenuto resta visibile. */
.js .bs-animate { opacity: 0; }

.js .bs-animate.bs-in-view {
    animation-duration: 800ms;
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    animation-fill-mode: both;
    animation-delay: var(--bs-anim-delay, 0ms);
}

.js .bs-animate--fade.bs-in-view        { animation-name: bs-fade; }
.js .bs-animate--from-left.bs-in-view   { animation-name: bs-from-left; }
.js .bs-animate--from-right.bs-in-view  { animation-name: bs-from-right; }
.js .bs-animate--from-top.bs-in-view    { animation-name: bs-from-top; }
.js .bs-animate--from-bottom.bs-in-view { animation-name: bs-from-bottom; }
.js .bs-animate--zoom.bs-in-view        { animation-name: bs-zoom; }

@keyframes bs-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes bs-from-left {
    from { opacity: 0; transform: translate3d(-60px, 0, 0); }
    to   { opacity: 1; transform: none; }
}
@keyframes bs-from-right {
    from { opacity: 0; transform: translate3d(60px, 0, 0); }
    to   { opacity: 1; transform: none; }
}
@keyframes bs-from-top {
    from { opacity: 0; transform: translate3d(0, -40px, 0); }
    to   { opacity: 1; transform: none; }
}
@keyframes bs-from-bottom {
    from { opacity: 0; transform: translate3d(0, 40px, 0); }
    to   { opacity: 1; transform: none; }
}
@keyframes bs-zoom {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: none; }
}

/* Accessibilità: nessuna animazione se l'utente lo preferisce */
@media (prefers-reduced-motion: reduce) {
    .js .bs-animate { opacity: 1 !important; animation: none !important; }
}

/* ==========================================================================
   APPEND — stili aggiuntivi (sessione estensione tema)
   ========================================================================== */

/* ── Template "Due colonne con immagine" ───────────────────────────────────── */
.bs-two-col-image #left-area { width: 100%; }

.bs-two-col-section {
    padding: 30px 0 54px;
}

.bs-two-col-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gutter);
    align-items: flex-start;
}

.bs-two-col-text {
    flex: 0 0 calc(65% - calc(var(--gutter) / 2));
    min-width: 0;
}

.bs-two-col-image {
    flex: 0 0 calc(35% - calc(var(--gutter) / 2));
    min-width: 0;
}

.bs-two-col-text .entry-content { font-size: 14px; line-height: 1.8em; }
.bs-two-col-text .entry-content p { margin: 0 0 1.2em; }
.bs-two-col-text .entry-content strong { color: var(--color-dark); }
.bs-two-col-text .entry-content em { color: var(--color-mid); }

.bs-two-col-featured {
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

.bs-two-col-featured-img {
    width: 100%;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

/* Colonne 1/3 e 2/3 */
.bs-col--1-3 { flex: 0 0 calc(33.333% - calc(var(--gutter) * 2 / 3)); }
.bs-col--2-3 { flex: 0 0 calc(66.666% - calc(var(--gutter) / 3)); }

@media (max-width: 980px) {
    .bs-two-col-text,
    .bs-two-col-image,
    .bs-col--1-3,
    .bs-col--2-3 {
        flex: 0 0 100%;
    }
    .bs-two-col-featured { position: static; margin-top: 20px; }
}

/* ── Barra contatti footer (dal Customizer) ────────────────────────────────── */
.bs-footer-contacts {
    background: rgba(0,0,0,.3);
    padding: 25px 0;
    border-top: 1px solid rgba(255,255,255,.08);
}

.bs-contacts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}

.bs-contact-block {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bs-contact-label {
    font-family: var(--font-heading);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent);
    margin-bottom: 4px;
}

.bs-contact-block a {
    color: var(--color-white);
    font-size: 14px;
    text-decoration: none;
    transition: color .2s;
}

.bs-contact-block a:hover { color: var(--color-accent); text-decoration: none; }

.bs-contact-address {
    color: var(--color-footer-text);
    font-size: 13px;
    line-height: 1.5;
}

.bs-contact-tel { font-weight: 600; }

@media (max-width: 640px) {
    .bs-contacts-grid { flex-direction: column; gap: 18px; }
}

/* ── Fallback nome sito (se nessun custom logo impostato) ─────────────────── */
.bs-site-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    color: var(--color-dark);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.bs-site-name:hover { text-decoration: none; color: var(--color-accent); }

/* ==========================================================================
   APPEND — Sezioni homepage
   ========================================================================== */

/* ── Sezione 2: Box CAI Bollate ───────────────────────────────────────────── */
.bs-cai-section {
    padding: 54px 0;
}

.bs-cai-row {
    align-items: center;
    min-height: 120px;
}

.bs-cai-col-empty { flex: 0 0 calc(33.333% - calc(var(--gutter) * 2 / 3)); }
.bs-cai-col-button {
    flex: 0 0 calc(33.333% - calc(var(--gutter) * 2 / 3));
    text-align: center;
}

.bs-cai-button {
    display: inline-block;
    padding: 10px 34px !important;
    border: 36px solid #4f92c1 !important;
    border-radius: 31px !important;
    color: var(--color-yellow-lime) !important;
    background: var(--color-white) !important;
    font-family: var(--font-chewy), sans-serif !important;
    font-size: 34px !important;
    font-weight: 700 !important;
    line-height: 1.7em !important;
    text-decoration: none !important;
    transition: all .3s ease;
    letter-spacing: normal;
    text-transform: none !important;
}

.bs-cai-button:hover {
    letter-spacing: 0;
    text-decoration: none;
    color: var(--color-yellow) !important;
}

/* ── Sezione 3: Immagine Donazione + Testo storico ────────────────────────── */
.bs-story-section {
    padding: 25px 0;
}

.bs-story-row {
    align-items: flex-start;
}

.bs-story-image-col {
    flex: 0 0 calc(25% - calc(var(--gutter) * 3 / 4));
    min-width: 0;
}

.bs-story-text-col {
    flex: 0 0 calc(75% - calc(var(--gutter) / 4));
    min-width: 0;
}

.bs-story-featured {
    width: 100%;
    height: auto;
    border-radius: 3px;
    animation: slideInLeft .5s ease-in-out;
}

.bs-story-text-col .bs-text p {
    margin: 0 0 1em;
    line-height: 1.8em;
}

.bs-story-text-col .bs-text strong {
    color: var(--color-dark);
}

/* Colonne 1/4 e 3/4 */
.bs-col--1-4 { flex: 0 0 calc(25% - calc(var(--gutter) * 3 / 4)); }
.bs-col--3-4 { flex: 0 0 calc(75% - calc(var(--gutter) / 4)); }

@media (max-width: 980px) {
    .bs-story-image-col,
    .bs-story-text-col,
    .bs-col--1-4,
    .bs-col--3-4 {
        flex: 0 0 100%;
    }
    .bs-story-image-col { margin-bottom: 20px; }
}

/* ── Sezioni con sfondo scuro: forza testo bianco ─────────────────────────── */
/* Quando bs_section ha bg= o bg_image=, aggiunge bs-section--bg.            */
/* Le sezioni con colore di sfondo scuro devono avere tutto il testo bianco.  */
.entry-content .bs-section--bg .bs-text,
.entry-content .bs-section--bg .bs-text h1,
.entry-content .bs-section--bg .bs-text h2,
.entry-content .bs-section--bg .bs-text h3,
.entry-content .bs-section--bg .bs-text h4,
.entry-content .bs-section--bg .bs-text h5,
.entry-content .bs-section--bg .bs-text h6,
.entry-content .bs-section--bg .bs-text p,
.entry-content .bs-section--bg .bs-text span,
.entry-content .bs-section--bg .bs-text em,
.entry-content .bs-section--bg .bs-text strong,
.entry-content .bs-section--bg .bs-text a {
    color: var(--color-white);
}
.entry-content .bs-section--bg .bs-text a:hover {
    color: var(--color-yellow);
    text-decoration: none;
}
/* Eccezione: sezioni con sfondo chiaro/immagine (hero) — override inline     */
/* Le sezioni con bg_image usano overlay scuro → testo bianco OK              */

/* ── Sezione 4: Diventa donatore / Come trovarci ──────────────────────────── */
.bs-donore-section {
    background: var(--color-accent-dark);
    padding: 50px 0;
    color: var(--color-white);
}

/* Testo centrato in tutte le sezioni con sfondo scuro */
.entry-content .bs-section--bg .bs-text {
    text-align: center;
}

.bs-donore-text {
    text-align: center;
    color: var(--color-white);
}

.bs-donore-text h3 {
    color: var(--color-white);
    font-family: var(--font-heading);
    margin: .5em 0;
}

.bs-donore-text h4 {
    color: var(--color-white);
    font-family: var(--font-heading);
    margin: .5em 0;
}

.bs-donore-text p {
    color: var(--color-white);
    font-size: 14px;
    margin: 0 0 1em;
}

.bs-donore-text em { color: rgba(255,255,255,.9); }
.bs-donore-text strong { color: var(--color-white); }

@media (max-width: 640px) {
    .bs-cai-button { font-size: 24px; padding: 8px 25px; }
    .bs-donore-text h3 { font-size: 1.5rem !important; }
    .bs-donore-text h4 { font-size: 1.2rem !important; }
}

/* ==========================================================================
   Layout post + sidebar (senza riferimenti Divi)
   ========================================================================== */

/* ── Layout 2 colonne: main + sidebar ────────────────────────────────────── */
.bs-layout-with-sidebar {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 40px var(--gutter);
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.bs-main { min-width: 0; }

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.bs-sidebar { min-width: 0; }

.bs-sidebar .widget {
    margin-bottom: 30px;
}

.bs-sidebar .widget-title {
    font-family: var(--font-heading);
    font-size: .9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--color-mid);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.bs-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bs-sidebar ul li {
    padding: 5px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--color-border);
}

.bs-sidebar ul li:last-child { border-bottom: none; }

.bs-sidebar a {
    color: var(--color-mid);
    text-decoration: none;
}

.bs-sidebar a:hover { color: var(--color-accent); }

/* Search widget */
.bs-sidebar .widget_search .search-form {
    display: flex;
    gap: 6px;
}

.bs-sidebar .widget_search input[type="search"] {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid var(--color-border);
    border-radius: 3px;
    font-size: 13px;
    font-family: var(--font-body);
}

.bs-sidebar .widget_search input[type="submit"] {
    padding: 6px 14px;
    background: var(--color-accent);
    color: var(--color-white);
    border: none;
    border-radius: 3px;
    font-size: 13px;
    cursor: pointer;
}

/* ── Singolo post ─────────────────────────────────────────────────────────── */
.bs-post-header {
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.bs-post-title-single {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-dark);
    margin: 0 0 8px;
}

.bs-post-meta {
    font-size: 12px;
    color: var(--color-mid);
    margin: 0;
}

.bs-post-meta a { color: var(--color-accent); text-decoration: none; }

.bs-post-thumbnail { margin-bottom: 20px; }
.bs-post-thumbnail img { width: 100%; height: auto; border-radius: 3px; }

.bs-post-content {
    font-size: 14px;
    line-height: 1.8em;
    color: var(--color-mid);
}

.bs-post-content h1, .bs-post-content h2,
.bs-post-content h3, .bs-post-content h4 {
    color: var(--color-dark);
    margin-top: 1.5em;
}

.bs-post-content p { margin: 0 0 1.2em; }
.bs-post-content ul, .bs-post-content ol { padding-left: 1.5em; margin-bottom: 1.2em; }
.bs-post-content li { margin-bottom: .4em; }
.bs-post-content a { color: var(--color-accent); }
.bs-post-content img { max-width: 100%; height: auto; border-radius: 3px; }
.bs-post-content blockquote {
    border-left: 4px solid var(--color-accent);
    margin: 1.5em 0;
    padding: .5em 1.2em;
    color: var(--color-mid);
    font-style: italic;
}

.bs-post-nav { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--color-border); font-size: 13px; }
.bs-post-nav .nav-links { display: flex; justify-content: space-between; gap: 20px; }
.bs-post-nav a { color: var(--color-accent); text-decoration: none; }
.bs-post-nav a:hover { text-decoration: underline; }

/* ── Card post (index / archive) ─────────────────────────────────────────── */
.bs-post-card {
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.bs-post-card:last-of-type { margin-bottom: 0; }

.bs-post-thumbnail-link img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 3px;
    display: block;
    margin-bottom: 15px;
}

.bs-post-card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0 0 6px;
}

.bs-post-card-title a { color: var(--color-dark); text-decoration: none; }
.bs-post-card-title a:hover { color: var(--color-accent); }

.bs-post-excerpt { font-size: 13px; color: var(--color-mid); margin-bottom: 15px; }
.bs-post-excerpt p { margin: 0; }

/* ── Bottone standard tema (senza et_pb) ─────────────────────────────────── */
.bs-btn {
    display: inline-block;
    padding: 8px 18px;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    background: transparent;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    text-decoration: none;
    border-radius: 2px;
    transition: background .2s, color .2s;
}

.bs-btn:hover {
    background: var(--color-accent);
    color: var(--color-white);
    text-decoration: none;
}

/* ── Archivio header ─────────────────────────────────────────────────────── */
.bs-archive-header {
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.bs-archive-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-dark);
    margin: 0;
}

.bs-archive-description { font-size: 13px; color: var(--color-mid); margin: 6px 0 0; }

/* ── Commenti ────────────────────────────────────────────────────────────── */
.comments-area { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--color-border); }
.comments-title, .comment-reply-title { font-size: 1.2rem; color: var(--color-dark); margin-bottom: 20px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 30px; }
.comment-body { border-bottom: 1px solid var(--color-border); padding: 15px 0; font-size: 13px; }
.comment-author .fn { font-weight: 700; color: var(--color-dark); }
.comment-metadata { font-size: 11px; color: var(--color-mid); margin-bottom: 8px; }
.comment-metadata a { color: var(--color-mid); }
.comment-content p { margin: 0 0 .5em; }

.comment-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--color-border);
    border-radius: 3px;
    font-size: 13px;
    font-family: var(--font-body);
    margin-bottom: 15px;
}

.comment-form textarea { height: 120px; resize: vertical; }

.comment-form input[type="submit"] {
    padding: 9px 22px;
    background: var(--color-accent);
    color: var(--color-white);
    border: none;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}

.comment-form input[type="submit"]:hover { background: var(--color-accent-dark); }

/* ── Responsive layout ───────────────────────────────────────────────────── */
@media (max-width: 980px) {
    .bs-layout-with-sidebar {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .bs-sidebar { border-top: 1px solid var(--color-border); padding-top: 30px; }
}

