/* ==========================================================================
   HOTEL VILLA DANIELA · Blog (guide del territorio)
   Si carica DOPO styles.css solo sulle pagine del blog e nelle sezioni
   "Dal blog" di home e dintorni. Usa i token di styles.css.
   ========================================================================== */

/* ---------- Briciole ---------- */
.briciole { font-size: var(--t-xs); color: var(--slate); padding-top: 1.4rem; letter-spacing: 0.02em; }
.briciole ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.2rem 0.5rem; }
.briciole li + li::before { content: "›"; margin-right: 0.5rem; color: var(--corallo-testo); }
.briciole a { color: var(--slate); text-decoration: none; border-bottom: 1px solid var(--cobalto-riga); }
.briciole a:hover { color: var(--notte); border-bottom-color: var(--corallo); }
.briciole [aria-current] { color: var(--notte); }

/* ---------- Hero articolo ---------- */
.hero.articolo-hero { min-height: clamp(420px, 62vh, 620px); min-height: clamp(420px, 62svh, 620px); }
.hero.articolo-hero h1 { font-size: var(--t-xl); max-width: 22ch; }
.hero .targa-riga { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 1.2rem; }
.hero .targa-riga .targa { margin: 0; }

/* ---------- Corpo articolo: colonna di lettura + lato ---------- */
.articolo { background: var(--bianco); padding-block: clamp(2.2rem, 5vw, 3.6rem) var(--sez-s); }
.articolo-griglia {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  align-items: start;
}
.articolo-corpo { max-width: 70ch; min-width: 0; }
.articolo-corpo > * + * { margin-top: 1.05rem; }
.articolo-corpo p, .articolo-corpo li { color: var(--notte); font-size: 1.0625rem; line-height: 1.72; }
.articolo-corpo h2 {
  font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; line-height: 1.18;
  font-size: var(--t-lg); margin-top: 2.6rem;
}
.articolo-corpo h3 { font-size: var(--t-md); font-weight: 600; line-height: 1.3; margin-top: 1.9rem; }
.articolo-corpo ul, .articolo-corpo ol { padding-left: 1.3rem; }
.articolo-corpo li + li { margin-top: 0.45rem; }
.articolo-corpo li::marker { color: var(--corallo-testo); }
.articolo-corpo a { color: var(--corallo-testo); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.articolo-corpo a:hover { color: var(--notte); text-decoration-color: var(--corallo); }
.articolo-corpo strong { font-weight: 600; }
.articolo-corpo blockquote {
  margin-inline: 0; padding: 0.4rem 0 0.4rem 1.2rem;
  border-left: 3px solid var(--corallo);
  font-family: var(--serif); font-size: var(--t-md); line-height: 1.45; color: var(--notte);
}
.articolo-corpo figure { margin-inline: 0; }
.articolo-corpo figure img { width: 100%; height: auto; border-radius: var(--raggio); }
.articolo-corpo figcaption { font-size: var(--t-sm); color: var(--slate); margin-top: 0.7rem; line-height: 1.5; }
.tabella-scorre { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--cobalto-riga); border-radius: 12px; }
.articolo-corpo table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); min-width: 520px; }
.articolo-corpo th, .articolo-corpo td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--cobalto-riga); vertical-align: top; }
.articolo-corpo th { background: var(--cielo); font-weight: 600; }
.articolo-corpo tr:last-child td { border-bottom: 0; }

/* "In breve": la risposta subito (answer-first) */
.in-breve {
  background: var(--cielo); border: 1px solid var(--cobalto-riga); border-left: 4px solid var(--corallo);
  border-radius: 14px; padding: 1.2rem 1.4rem;
}
.in-breve .targa { color: var(--corallo-testo); display: block; margin-bottom: 0.45rem; }
.in-breve p { margin: 0; font-size: var(--t-base); line-height: 1.65; }
.articolo-corpo .articolo-meta { font-size: var(--t-sm); color: var(--slate); line-height: 1.5; }

/* FAQ */
.faq-blog { margin-top: 3rem; }
.faq-blog details { border-bottom: 1px solid var(--cobalto-riga); padding-block: 1rem; }
.faq-blog details:first-of-type { border-top: 1px solid var(--cobalto-riga); }
.faq-blog summary {
  cursor: pointer; font-weight: 600; font-size: var(--t-base); line-height: 1.45;
  list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: start;
}
.faq-blog summary::-webkit-details-marker { display: none; }
.faq-blog summary::after { content: "+"; font-family: var(--serif); font-size: 1.5rem; line-height: 1; color: var(--corallo-testo); flex: none; }
.faq-blog details[open] summary::after { content: "−"; }
.faq-blog details p { margin-top: 0.7rem; color: var(--slate); line-height: 1.65; }

/* Fonti + crediti */
.fonti-blog { margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--cobalto-riga); }
.fonti-blog h2 { font-size: var(--t-md) !important; margin-top: 0 !important; }
.fonti-blog li, .fonti-blog p { font-size: var(--t-sm) !important; color: var(--slate) !important; line-height: 1.55 !important; }
.fonti-blog a { color: var(--slate) !important; word-break: break-word; }

/* ---------- Lato: distanza, indice, prenota ---------- */
.articolo-lato { position: sticky; top: 104px; display: grid; gap: 1.2rem; }
.scheda-lato { background: var(--cielo); border: 1px solid var(--cobalto-riga); border-radius: var(--raggio); padding: 1.3rem 1.35rem; }
.scheda-lato .targa { color: var(--corallo-testo); display: block; margin-bottom: 0.6rem; }
.scheda-lato .grande { font-family: var(--serif); font-weight: 600; font-size: var(--t-lg); line-height: 1.1; display: block; }
.scheda-lato p { font-size: var(--t-sm); color: var(--slate); line-height: 1.55; margin-top: 0.5rem; }
.scheda-lato.scura { background: var(--cobalto-fondo); border-color: var(--cobalto-fondo); color: var(--bianco); }
.scheda-lato.scura .targa { color: var(--sole); }
.scheda-lato.scura p { color: var(--cielo-su-blu); }
.scheda-lato.scura .bottone { margin-top: 1rem; width: 100%; justify-content: center; }
.indice ol { list-style: none; margin: 0; padding: 0; counter-reset: indice; }
.indice li { counter-increment: indice; font-size: var(--t-sm); line-height: 1.4; }
.indice li + li { margin-top: 0.55rem; }
.indice a { color: var(--notte); text-decoration: none; display: grid; grid-template-columns: 1.6rem 1fr; }
.indice a::before { content: counter(indice, decimal-leading-zero); color: var(--corallo-testo); font-family: var(--serif); font-weight: 600; }
.indice a:hover { color: var(--corallo-testo); }

/* ---------- Card articolo (hub, correlati, "Dal blog") ---------- */
.blog-griglia {
  display: grid; gap: clamp(1.2rem, 2.5vw, 1.8rem);
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
}
.blog-card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--notte);
  background: var(--bianco); border: 1px solid var(--cobalto-riga); border-radius: var(--raggio);
  overflow: hidden; transition: transform 0.4s var(--curva), box-shadow 0.4s var(--curva);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(33, 30, 27, 0.45); }
.blog-card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.blog-card-testo { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.blog-card-testo .targa { color: var(--corallo-testo); font-size: 0.72rem; }
.blog-card-testo strong { font-family: var(--serif); font-weight: 600; font-size: 1.28rem; line-height: 1.22; letter-spacing: -0.005em; }
.blog-card-testo span { color: var(--slate); font-size: var(--t-sm); line-height: 1.55; }
.blog-card-testo small { color: var(--slate); font-size: var(--t-xs); margin-top: auto; padding-top: 0.4rem; }

/* Hub: indice per categoria */
.blog-filtri { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.blog-filtri a {
  text-decoration: none; color: var(--notte); font-size: var(--t-sm); font-weight: 500;
  border: 1px solid var(--cobalto-riga); border-radius: 999px; padding: 0.45rem 1rem; background: var(--bianco);
}
.blog-filtri a:hover { border-color: var(--corallo); }
.blog-categoria + .blog-categoria { margin-top: clamp(2.8rem, 6vw, 4.2rem); }
.blog-categoria > h2 { font-family: var(--serif); font-weight: 600; font-size: var(--t-lg); margin-bottom: 1.3rem; text-align: center; }
.blog-intro { max-width: 70ch; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; color: var(--slate); font-size: var(--t-md); line-height: 1.55; }

/* sezione "Dal blog" su home e dintorni */
.dal-blog { background: var(--cielo); }
.dal-blog .azioni-centro { text-align: center; margin-top: clamp(1.8rem, 4vw, 2.6rem); }

/* link nel piede (crediti immagini): sottolineato, non solo colorato */
.piede-coda a { color: inherit; text-decoration: underline; text-underline-offset: 0.18em; }

/* crediti immagini */
.crediti-lista { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); }
.credito { display: grid; grid-template-columns: 96px 1fr; gap: 1rem; align-items: start; font-size: var(--t-sm); color: var(--slate); line-height: 1.5; }
.credito img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; }
.credito strong { color: var(--notte); display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .articolo-griglia { grid-template-columns: 1fr; }
  .articolo-lato { position: static; }
  .articolo-lato .indice { display: none; }
}
@media (max-width: 620px) {
  .articolo-corpo p, .articolo-corpo li { font-size: 1rem; }
  .hero.articolo-hero h1 { font-size: clamp(2rem, 1.4rem + 3vw, 2.6rem); }
}
@media print {
  .articolo-lato, .blog-filtri { display: none; }
}
