/*
 Theme Name:   GeneratePress Child
 Description:  Tema Child per Buffetti Terracina
 Template:     generatepress
 Author:       Buffetti Terracina
 Version:      1.0.0
*/

/* Le tue personalizzazioni CSS inizieranno qui sotto */

/* ===================================================
   BUFFETTI TERRACINA — MASTER CSS (OPTIMIZED PRO)
   Pages: Cortesia (6), Home (10), Servizi (12), Contatti (16), Partner (198)
   =================================================== */

/* -----------------------------
   1) Design Tokens & Base
----------------------------- */
:root {
  --bt-text:   #0E1B2A;
  --bt-muted:  #4B5563;
  --bt-bg:     #ffffff;
  --bt-blue:   #0B4DB8;
  --bt-blue2:  #0A3E93;
  --bt-green:  #2FBF71;
  --bt-border: rgba(14,27,42,.12);
  --bt-line:   rgba(14,27,42,.10);
  --bt-radius: 18px;
  --bt-radius-lg: 26px;
  --bt-shadow: 0 18px 60px rgba(14,27,42,.06);
  --bt-shadow-strong: 0 30px 80px rgba(14,27,42,.08);
  --bt-max: 1120px;
  --bt-gradient: linear-gradient(90deg, var(--bt-blue), var(--bt-green));
}

/* Reset GeneratePress e WP */
.site-info, .entry-title, .wp-block-post-title, header.entry-header, .page-header { display: none !important; }

/* Stile base contenitore articolo globale */
.inside-article {
  border-radius: var(--bt-radius);
  overflow: hidden;
}

/* Override specifico per pagine "Premium" (Cortesia, Home, Servizi, Contatti, Partner) */
:where(.page-id-6, .page-id-10, .page-id-12, .page-id-16, .page-id-198) .inside-article {
  padding: 0 !important;
  border-radius: var(--bt-radius-lg) !important;
  box-shadow: var(--bt-shadow-strong);
}

/* -----------------------------
   2) Typography & Utilities
----------------------------- */
.bt-container { width: min(var(--bt-max), calc(100% - 36px)); margin: 0 auto; }
.bt-muted { color: var(--bt-muted); }

.bt-kicker {
  margin: 0 0 .5rem 0; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; font-size: .82rem; color: var(--bt-blue2);
}

.bt-h1 { margin: 0 0 .75rem 0; font-size: clamp(2.0rem, 3.2vw, 3.0rem); line-height: 1.06; letter-spacing: -0.02em; color: var(--bt-text); }
.bt-h2 { margin: 0 0 .5rem 0; font-size: clamp(1.6rem, 2.2vw, 2.1rem); line-height: 1.12; letter-spacing: -0.02em; color: var(--bt-text); }
.bt-h3 { margin: 0 0 .5rem 0; font-size: 1.22rem; line-height: 1.2; color: var(--bt-text); font-weight: 900; letter-spacing: .01em; } /* Unificato */

.bt-lead { margin: 0 0 1rem 0; font-size: clamp(1rem, 1.2vw, 1.1rem); line-height: 1.55; color: var(--bt-muted); }

/* Sfondi Hero condivisi */
.bt-hero, .bt-home, .bt-soon, .bt-hero--services, .bt-hero--contacts {
  padding: clamp(28px, 5vw, 72px) 18px;
  background:
    radial-gradient(900px 450px at 20% 0%, rgba(11,77,184,.10) 0%, rgba(11,77,184,0) 55%),
    radial-gradient(900px 450px at 80% 0%, rgba(47,191,113,.10) 0%, rgba(47,191,113,0) 55%),
    linear-gradient(180deg, #F7FAFF 0%, #FFFFFF 55%);
}
.bt-hero--services, .bt-hero--contacts { border-bottom: 1px solid var(--bt-border); border-radius: var(--bt-radius-lg); }

/* -----------------------------
   3) Cards & Grids System
----------------------------- */
/* Card Base unificata per Home, Partner, Soon */
.bt-card, .bt-home__card, .bt-soon__card {
  background: var(--bt-bg);
  border: 1px solid var(--bt-line);
  border-radius: var(--bt-radius);
  box-shadow: 0 12px 32px rgba(14,27,42,.08);
  overflow: hidden; height: 100%; position: relative;
  padding: 18px; /* Padding unificato */
}

/* Accent Top Border */
.bt-card--accent::before, .bt-home__card::before, .bt-soon__card::before {
  content:""; position:absolute; left:0; top:0; right:0; height:4px;
  background: var(--bt-gradient); opacity: .9;
}

/* Griglie generiche */
.bt-grid, .bt-soon__grid, .bt-home__grid, .bt-partners__grid {
  display: grid; gap: 16px;
}
/* Grid a 2 colonne responsive */
.bt-grid--2, .bt-home__grid, .bt-partners__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.bt-soon__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 900px){
  .bt-home__grid, .bt-grid--2, .bt-partners__grid, .bt-soon__grid { grid-template-columns: 1fr !important; }
}

/* Liste e Badge */
.bt-list, .bt-home__list, .bt-soon__list { margin: .75rem 0 0; padding-left: 1.1rem; color: rgba(14,27,42,.74); }
.bt-list li, .bt-home__list li, .bt-soon__list li { margin: .35rem 0; }

.bt-badges { margin-top: 1rem; display:flex; gap: .5rem; flex-wrap: wrap; }
.bt-badge {
  display:inline-flex; align-items:center; padding: .35rem .65rem;
  border-radius: 999px; border: 1px solid var(--bt-line);
  background: rgba(255,255,255,.75); box-shadow: 0 10px 22px rgba(14,27,42,.05);
  color: rgba(14,27,42,.78); font-weight: 800; font-size: 13px;
}

/* -----------------------------
   4) Buttons System (Unificato)
----------------------------- */
:where(.bt-btn, a.bt-home__btn, a.bt-soon__btn) {
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  height: 52px !important; min-height: 52px !important; padding: 0 24px !important;
  min-width: 190px; line-height: 1 !important; border-radius: 14px;
  font-weight: 800; letter-spacing: .015em; text-decoration: none;
  border: 1px solid rgba(14,27,42,.12); box-sizing: border-box !important;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
  vertical-align: middle !important; -webkit-font-smoothing: antialiased;
}
/* Fix inner span */
:where(.bt-btn, a.bt-home__btn, a.bt-soon__btn) > span { display: block !important; line-height: 1 !important; padding:0 !important; margin:0 !important; }

.bt-btn--primary, a.bt-home__btn {
  color:#fff !important; background: linear-gradient(180deg, var(--bt-blue) 0%, var(--bt-blue2) 100%);
  border-color: rgba(11,77,184,.25); box-shadow: 0 14px 28px rgba(11,77,184,.22);
}
.bt-btn--primary:hover, a.bt-home__btn:hover {
  transform: translateY(-1px); box-shadow: 0 18px 40px rgba(11,77,184,.28); filter: saturate(1.05);
}

.bt-btn--ghost {
  color: var(--bt-text) !important; background: rgba(255,255,255,.92);
  box-shadow: 0 10px 22px rgba(14,27,42,.08); backdrop-filter: blur(6px);
}
.bt-btn--ghost:hover {
  transform: translateY(-1px); border-color: rgba(47,191,113,.35); box-shadow: 0 12px 30px rgba(47,191,113,.10);
}

.bt-btn--mini { height: 44px !important; min-height: 44px !important; padding: 0 18px !important; min-width: unset !important; border-radius: 12px; font-size: 14px; }

.bt-actions, .bt-home__cta, .bt-soon__cta { display:flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: center; margin-top: 14px; }
.bt-actions--stack { flex-direction: column; align-items: flex-start; }
.bt-actions { justify-content: flex-start; } /* Reset per liste normali */

@media (max-width: 700px){
  :where(.bt-btn, a.bt-home__btn, a.bt-soon__btn) { width: 100% !important; min-width: unset; }
  .bt-actions { justify-content: stretch; }
}

/* -----------------------------
   5) Header & Hamburger (Consolidato)
----------------------------- */
/* Layout Header */
.site-header { position: sticky; top: 0; z-index: 9998; background: #fff; display: block !important; }
.inside-header { display: flex !important; align-items: center !important; justify-content: space-between !important; padding: 15px 20px !important; gap: 12px !important; }

/* Branding */
.site-branding { display: flex !important; align-items: center !important; gap: 15px; min-width: 0 !important; }
.site-logo, .custom-logo-link { display: inline-flex !important; align-items: center !important; flex: 0 0 auto !important; }
.site-logo img { height: 46px !important; width: auto !important; max-height: 46px !important; object-fit: contain !important; }

/* Titolo Gradiente */
.main-title, .main-title a {
  font-weight: 900 !important; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1.05 !important;
  color: var(--bt-blue2) !important; /* fallback */
  background: var(--bt-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  display: inline-block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.site-branding .main-title::after {
  content:""; display:block; height: 3px; width: 64px; margin-top: 6px; border-radius: 999px; background: var(--bt-gradient); opacity: .95;
}

/* Hamburger Toggle */
.menu-toggle {
  display: inline-flex !important; align-items: center !important; gap: 10px;
  background: transparent !important; border: 0 !important; padding: 0 !important;
  color: var(--bt-blue2) !important; font-weight: 900 !important; text-transform: uppercase;
}
.menu-toggle:hover { color: var(--bt-green) !important; }

/* Navigation Dropdown Overlay */
.main-navigation { position: relative; z-index: 9999; display: block !important; }
.main-navigation .main-nav > ul, #generate-slideout-menu { display: none !important; } /* Nascondi default e slideout */

.main-navigation.toggled .main-nav > ul {
  display: block !important; position: absolute !important; top: 100% !important; left: 0 !important; right: 0 !important;
  margin: 10px 0 0 0 !important; padding: 4px 0 0 0 !important;
  background: var(--bt-bg) !important; border: 1px solid var(--bt-line) !important; border-radius: 18px !important;
  box-shadow: 0 26px 70px rgba(14,27,42,.14), 0 2px 10px rgba(14,27,42,.06) !important;
  overflow: hidden; transform: translateY(-6px); opacity: 0; animation: btMenuIn .14s ease forwards;
}
.main-navigation.toggled .main-nav > ul::before { content:""; position:absolute; left:0; top:0; right:0; height:4px; background: var(--bt-gradient); opacity:.95; z-index: 2; }

@keyframes btMenuIn { to { transform: translateY(0); opacity: 1; } }

/* Voci Menu */
.main-navigation.toggled .main-nav > ul li a {
  display: block; position: relative; padding: 12px 18px !important; line-height: 1.25 !important;
  font-weight: 850 !important; color: var(--bt-text) !important; border-bottom: 1px solid rgba(14,27,42,.08) !important;
  transition: all .14s ease;
}
.main-navigation.toggled .main-nav > ul li a:hover { background: rgba(11,77,184,.045) !important; transform: translateX(2px); }
.main-navigation.toggled .main-nav > ul li.current-menu-item > a { color: var(--bt-blue2) !important; background: rgba(11,77,184,.04) !important; }
/* Indicatore hover */
.main-navigation.toggled .main-nav > ul li a::before {
  content:""; position:absolute; left:0; top:50%; transform: translateY(-50%); width:0; height: 62%;
  border-radius: 0 10px 10px 0; background: linear-gradient(180deg, var(--bt-blue), var(--bt-green));
  opacity: .95; transition: width .14s ease;
}
.main-navigation.toggled .main-nav > ul li a:hover::before { width: 6px; }

/* Responsive Header Mobile */
@media (max-width: 768px){
  .inside-header { padding: 12px 14px !important; }
  .site-branding { gap: 10px !important; max-width: calc(100% - 70px) !important; flex: 1 1 auto !important; }
  .site-logo img { height: 34px !important; max-height: 34px !important; }
  .main-title { font-size: 18px !important; }
  .site-branding .main-title::after { width: 52px; }
}
@media (max-width: 420px){
  .site-branding { max-width: calc(100% - 62px) !important; }
  .site-logo img { height: 30px !important; max-height: 30px !important; }
  .main-title { font-size: 16px !important; }
}

/* -----------------------------
   6) Cortesia (page-id-6)
----------------------------- */
.page-id-6 .site-header, .page-id-6 .main-navigation { display:none !important; }
.bt-soon__wrap { max-width: 980px; margin: 0 auto; text-align: center; }
.bt-soon__logo { display:block; margin: 0 auto 16px; max-width: 210px; width: min(210px, 60vw); height: auto; filter: drop-shadow(0 10px 18px rgba(14,27,42,.10)); }
.bt-soon__title { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.05; margin: 0 0 12px; color: var(--bt-text); letter-spacing: -0.02em; }
.bt-soon__title::after { content:""; display:block; width: 120px; height: 6px; margin: 16px auto 0; border-radius: 999px; background: var(--bt-gradient); opacity: .95; }
.bt-soon__lead { max-width: 72ch; margin: 16px auto 26px; font-size: clamp(16px, 2vw, 19px); color: var(--bt-muted); }
.bt-soon__card h3 { margin: 6px 0 10px; font-size: 15px; letter-spacing: .02em; text-transform: uppercase; color: rgba(14,27,42,.78); }
.bt-soon__foot { margin-top: 20px; color: rgba(14,27,42,.62); }

/* -----------------------------
   7) Home (page-id-10)
----------------------------- */
.bt-home__wrap { max-width: var(--bt-max); margin: 0 auto; text-align: center; }
.bt-home__title { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.05; margin: 0 0 12px; color: var(--bt-text); letter-spacing: -0.02em; }
.bt-home__title::after { content:""; display:block; width: 120px; height: 6px; margin: 16px auto 0; border-radius: 999px; background: var(--bt-gradient); opacity: .95; }
.bt-home__lead { max-width: 72ch; margin: 12px auto 14px; font-size: clamp(16px, 2vw, 19px); color: var(--bt-muted); }
.bt-home__proof { max-width: 72ch; margin: 0 auto 18px; color: rgba(14,27,42,.82); font-weight: 800; }
.bt-home__microcopy { margin-top: 14px; color: rgba(14,27,42,.70); }
.bt-home__kicker { margin: 0 0 10px; color: rgba(14,27,42,.55); font-size: 14px; font-weight: 800; }
.bt-home__footer { margin-top: 22px; text-align: center; }
.bt-home__footer-text { max-width: 78ch; margin: 0 auto 14px; color: rgba(14,27,42,.74); font-weight: 700; }

/* -----------------------------
   8) Servizi (page-id-12)
----------------------------- */
.bt-hero__grid { max-width: var(--bt-max); margin: 0 auto; display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; align-items: start; }
.bt-section { padding: clamp(40px,5vw,80px) 18px; }
.bt-section__head { max-width: 72ch; margin: 0 auto 18px; text-align: center; }
.bt-card__cta { margin-top: 14px; }
.bt-cta__grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 16px; align-items: center; }
.bt-cta__actions { display:flex; flex-direction: column; gap: 10px; align-items: flex-start; }

@media (max-width: 900px){
  .bt-hero__grid, .bt-cta__grid { grid-template-columns: 1fr; }
  .bt-cta__actions { align-items: stretch; }
}

/* -----------------------------
   9) Contatti (page-id-16)
----------------------------- */
.bt-contacts { padding: clamp(34px,5vw,78px) 18px; }
.page-id-16 .bt-contacts { padding: clamp(24px, 3.5vw, 56px) 18px !important; }

/* Griglia Contatti Unificata */
.bt-contacts__grid { max-width: var(--bt-max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.page-id-16 .bt-contacts__grid { justify-content: center; grid-template-columns: minmax(0, 520px) minmax(0, 560px); }

/* Mappa e Meta */
.bt-contacts__map, .bt-contacts__meta { grid-column: 1 / -1; width: 100%; } /* Default span per layout misti */
.bt-contacts__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Stile Mappa */
.bt-map { position: relative; border-radius: var(--bt-radius); overflow: hidden; border: 1px solid var(--bt-line); background: #fff; box-shadow: var(--bt-shadow); }
.bt-map::before { content:""; display:block; padding-top: 46%; }
.page-id-16 .bt-map::before { padding-top: 34% !important; } /* Mappa più panoramica su pagina contatti */
.bt-map iframe { position:absolute; inset:0; width:100% !important; height:100% !important; border:0 !important; }

/* Info Text */
.bt-info__stack { display: grid; gap: 16px; }
.bt-info__row { display:flex; gap: 10px; align-items:flex-start; margin: 10px 0 0; color: rgba(14,27,42,.78); }
.bt-info__row strong { color: var(--bt-text); min-width: 92px; }
.bt-kv { display:grid; gap: 8px; margin-top: 10px; }
.bt-kv div { display:flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed rgba(14,27,42,.12); color: rgba(14,27,42,.78); }
.bt-kv div:last-child { border-bottom: 0; }
.bt-kv span:first-child { color: rgba(14,27,42,.62); font-weight: 800; }

@media (max-width: 900px){
  .bt-contacts__grid, .bt-contacts__meta, .page-id-16 .bt-contacts__grid { grid-template-columns: 1fr !important; }
  .bt-map::before, .page-id-16 .bt-map::before { padding-top: 66% !important; }
}

/* -----------------------------
   10) Partners (page-id-198)
----------------------------- */
.bt-partner-card { display:block; color: inherit; text-decoration: none !important; height: 100%; transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.bt-partner-card:hover { transform: translateY(-2px); border-color: rgba(47,191,113,.28); box-shadow: 0 22px 60px rgba(11,77,184,.10), 0 10px 22px rgba(14,27,42,.06); }

.bt-partner__top { display:flex; align-items:center; gap: 14px; }
.bt-partner__logo { width: 86px; height: 56px; border-radius: 14px; border: 1px solid rgba(14,27,42,.10); background: #fff; box-shadow: 0 10px 22px rgba(14,27,42,.06); overflow: hidden; display:flex; align-items:center; justify-content:center; flex: 0 0 auto; }
.bt-partner__logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; display:block; }
.bt-partner__name { margin: 0 0 2px 0; font-size: 1.12rem; line-height: 1.15; color: var(--bt-text); font-weight: 900; }
.bt-partner__url { margin: 0; font-weight: 800; font-size: 13px; color: rgba(14,27,42,.62); word-break: break-word; }
.bt-partner__desc { margin: 12px 0 0; color: rgba(14,27,42,.74); line-height: 1.55; }
.bt-partner__cta { margin-top: 14px; display:flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Layout Full-Bleed per Partner */
.page-id-198 .bt-partners__grid { width: 100% !important; margin: 0 auto !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px !important; }
.page-id-198 .bt-card { width: 100% !important; max-width: none !important; }
@media (max-width: 720px){ .bt-partner__logo { width: 96px; height: 60px; } }
@media (max-width: 980px){
  .page-id-198 .bt-hero__side, .page-id-198 .bt-hero__side .bt-card { width: 100% !important; max-width: none !important; }
}

/* =========================================
   FIX MOBILE PARTNER (Incolla in fondo)
   ========================================= */
@media (max-width: 900px) {
  /* Forza le card una sotto l'altra su mobile */
  .page-id-198 .bt-partners__grid {
    grid-template-columns: 1fr !important;
    display: grid !important;
    width: 100% !important;
    padding: 0 4px !important; /* Piccola sicurezza laterale */
    box-sizing: border-box !important;
  }

  /* Assicura che la singola card non esca dai bordi */
  .page-id-198 .bt-card,
  .page-id-198 .bt-partner-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
}
/* =========================================
   FOOTER STYLES (Aggiungi in fondo)
   ========================================= */
.site-footer {
    display: block !important;
}

/* Stile del nostro footer custom */
.bt-site-footer {
    background-color: var(--bt-blue2); /* Blu scuro istituzionale */
    color: #ffffff;
    padding: 40px 20px;
    text-align: center;
    margin-top: 40px; /* Stacca dal contenuto */
    border-radius: var(--bt-radius-lg) var(--bt-radius-lg) 0 0; /* Arrotonda solo sopra */
}

.bt-footer-content p {
    margin: 4px 0;
    line-height: 1.4;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
}

.bt-company-name {
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1.2rem !important;
    color: #ffffff !important;
    margin-bottom: 2px !important;
    letter-spacing: 0.05em;
}

.bt-legal-name {
    font-size: 0.85rem !important;
    opacity: 0.7;
    margin-bottom: 15px !important;
}

.bt-footer-links {
    margin: 20px 0;
    font-size: 0.9rem;
}

.bt-footer-links a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    transition: opacity 0.2s;
}
.bt-footer-links a:hover { opacity: 0.7; }
.bt-footer-links .sep { margin: 0 8px; opacity: 0.5; }

.bt-copyright {
    margin-top: 20px !important;
    font-size: 0.75rem !important;
    opacity: 0.5;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .bt-site-footer { padding: 30px 15px; border-radius: 18px 18px 0 0; }
}

/* Trasforma la lista articoli in una griglia */
/* ==========================================================================
   BLOG & ARTICOLI - VERSIONE OTTIMIZZATA
   ========================================================================== */

/* --- A) Griglia della pagina Blog (Archivio) --- */
@media (min-width: 768px) {
    .blog .site-main, .archive .site-main {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (min-width: 1024px) {
    .blog .site-main, .archive .site-main {
        grid-template-columns: repeat(3, 1fr);
    }
}

.bt-card--blog {
    background: #fff;
    border: 1px solid var(--bt-line);
    border-radius: var(--bt-radius);
    overflow: hidden;
    height: 100%;
    display: flex;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bt-card--blog:hover {
    transform: translateY(-4px);
    box-shadow: var(--bt-shadow);
}

.bt-article__image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.bt-article__content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.bt-article__meta {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--bt-blue);
    font-weight: 800;
    margin-bottom: 8px;
}

.bt-article__content h2 {
    margin: 0 0 12px 0;
    font-size: 1.25rem;
    line-height: 1.3;
}

.bt-article__content h2 a {
    color: var(--bt-text);
    text-decoration: none;
}

.bt-article__desc {
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--bt-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.bt-article__link {
    font-weight: 800;
    color: var(--bt-blue);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
}

/* --- B) Pagina Articolo Singolo (Effetto Card Bianca) --- */

/* Sfondo neutro per far risaltare la card */
body.single-post {
    background-color: #f2f5f8 !important;
}

/* La card bianca dell'articolo */
.bt-single-post {
    max-width: 940px; 
    margin: 40px auto !important;
    background: #fff;
    border-radius: var(--bt-radius-lg);
    box-shadow: var(--bt-shadow);
    overflow: hidden;
    border: 1px solid var(--bt-line);
}

/* Intestazione (Titolo) */
.bt-single-header {
    padding: 50px 40px 30px;
    text-align: center;
}

.bt-single-header .bt-h1 {
    margin: 15px auto;
    max-width: 800px;
}

/* Immagine Banner */
.bt-single-featured-image {
    margin: 0;
    max-height: 480px;
    overflow: hidden;
}

.bt-single-featured-image img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

/* Testo leggibile */
.bt-single-content {
    max-width: 720px; 
    margin: 0 auto;
    padding: 50px 25px;
    font-size: 1.12rem;
    line-height: 1.8;
    color: var(--bt-text);
}

.bt-single-content h2, .bt-single-content h3 {
    color: var(--bt-blue);
    margin-top: 2.5rem;
}

/* Box Contatto finale (WhatsApp) */
.bt-article-cta-box {
    margin: 40px 0;
    padding: 40px;
    background: #f8fafc;
    border-radius: var(--bt-radius);
    text-align: center;
    border: 1px solid var(--bt-line);
}

.bt-btn--whatsapp {
    display: inline-flex !important;
    background: #25D366 !important;
    color: #fff !important;
    border-color: #128C7E !important;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2) !important;
}

.bt-btn--whatsapp:hover {
    background: #128C7E !important;
    transform: translateY(-2px);
}

/* Nasconde la sezione commenti e il form di risposta */
#comments, .comments-area {
    display: none !important;
}

/* Rimuove lo spazio vuoto che rimarrebbe in fondo */
.single .site-main {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Nasconde i metadati standard di GeneratePress che raddoppierebbero i nostri */
.entry-meta, .cat-links, .tags-links {
    display: none !important;
}

/* --- FOOTER PROFESSIONALE FULL-WIDTH --- */

/* Forza il contenitore originale a sparire per lasciare spazio al nostro */
.site-footer {
    background: transparent !important;
    padding: 0 !important;
}

.bt-site-footer {
    background-color: var(--bt-blue2); /* Blu istituzionale */
    color: #ffffff;
    padding: 60px 20px;
    width: 100vw; /* Occupa tutta la larghezza dello schermo */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    border-radius: var(--bt-radius-lg) var(--bt-radius-lg) 0 0;
    box-sizing: border-box;
}

.bt-footer-content {
    max-width: var(--bt-max); /* Allinea il contenuto al resto del sito */
    margin: 0 auto;
    text-align: center;
}

.bt-company-name {
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1.4rem !important;
    margin-bottom: 5px !important;
    letter-spacing: 0.05em;
}

.bt-legal-name {
    font-size: 0.95rem !important;
    opacity: 0.9;
    margin-bottom: 20px !important;
}

.bt-footer-meta-info {
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    margin: 20px 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.bt-footer-meta-info a {
    color: #fff;
    text-decoration: underline;
}

.bt-footer-links {
    margin: 25px 0;
}

.bt-footer-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

.bt-footer-links .sep {
    margin: 0 10px;
    opacity: 0.4;
}

.bt-copyright {
    font-size: 0.75rem !important;
    opacity: 0.6;
    margin-top: 30px !important;
}
