/* ===== La Villa dei Tartufi — design system (parte sotto la piega) =====
   Caricato in modo NON bloccante (media="print" + onload) dal layout.
   Gli stili critici per il primo paint stanno in critical.css, inlinato nel <head>. */

/* Stati interattivi: non servono al primo paint */
.btn { transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary:hover { background: #16351f; box-shadow: 0 8px 22px rgba(35, 74, 50, 0.34); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.2); }
.btn-wa:hover { background: #1fbc59; box-shadow: 0 8px 22px rgba(37, 211, 102, 0.4); }
.header-cta .btn { box-shadow: 0 6px 18px rgba(35, 74, 50, 0.3); }
.top-banner { transition: min-height 0.25s ease, padding 0.25s ease; }
.site-header { transition: background 0.25s ease, border-color 0.25s ease; }
.wa-float:hover { background: #1fbc59; text-decoration: none; transform: scale(1.05); }
.lb-stage { transition: transform 0.25s ease; }
.lightbox-close:hover { background: rgba(255, 255, 255, 0.28); }

/* Link dentro un blocco di testo: distinguibili anche senza colore */
p a:not(.btn), li a:not(.btn), .footer-about a, .contact-fine a, .table-note a,
.note-box a, .rating-summary .caption a, .footer-note a {
  text-decoration: underline; text-underline-offset: 0.18em;
}

/* ===== Intestazione delle pagine interne ===== */
.page-head { padding-bottom: 0; }
.crumbs { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 1.2rem; }
.crumbs a { text-decoration: underline; text-underline-offset: 0.18em; }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3rem); margin-bottom: 0.35em; }
.lead { max-width: 62ch; color: var(--ink-soft); font-size: 1.06rem; }
.rooms-section, .contact-section, .zones-section, .gallery-section { padding-top: clamp(2rem, 4vw, 3rem); }
.room-name { font-size: 1.5rem; margin: 0; }
.zone-name { font-size: 1.32rem; margin: 0 0 0.35rem; }
.gallery-full { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .gallery-full { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cta-final-inner { text-align: center; }
.cta-final .cta-lead { max-width: 44em; margin-inline: auto; }

/* ===== Due colonne ===== */
.two-col { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.two-col > * { min-width: 0; }
.col-media { position: relative; }
.media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; min-width: 0; }
.media-grid a { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.media-grid img { min-width: 0; width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 0.35s ease; }
.media-grid a:hover img { transform: scale(1.03); }
#il-bnb .eyebrow { margin-bottom: 0.5rem; }
#il-bnb h2 { margin-bottom: 1.1rem; line-height: 1.18; }
#il-bnb p { margin-bottom: 1.1rem; line-height: 1.72; }
#il-bnb .list-check { margin-bottom: 0; }
.list-check { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.7rem; }
.list-check li { display: flex; gap: 0.6rem; align-items: flex-start; }
.list-check svg { flex: 0 0 auto; margin-top: 0.22em; color: var(--accent); }
.note-box {
  margin-top: 1.6rem; padding: 1rem 1.2rem; border-radius: 14px;
  background: var(--gold-soft); border: 1px solid #e7d3ab; color: #53380a; font-size: 0.98rem;
}
.note-box strong { color: #3d2907; }
.note-box a { color: #3d2907; text-decoration: underline; }

/* ===== Card e griglie ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.room-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; }
.grid-2 > *, .grid-3 > *, .room-grid > *, .contact-grid > *, .gallery > *, .two-col > * { min-width: 0; }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .room-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
}
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 18px rgba(35, 74, 50, 0.06); display: flex; flex-direction: column; }
.card-media { display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-media img { transform: scale(1.045); }
.card-body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.card-body h3 { font-size: 1.5rem; margin: 0; }
.card-body p { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }
.card-price { display: flex; align-items: baseline; gap: 0.4rem; margin: 0.3rem 0 0.2rem; line-height: 1.05; }
.price-amount { font-family: var(--font-body); font-weight: 600; font-size: clamp(1.6rem, 2vw, 1.85rem); line-height: 1; color: var(--accent-deep); }
.price-per { font-size: 0.98rem; font-weight: 600; color: var(--ink-soft); }
.card-sleeps { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; color: var(--accent-deep); font-size: 0.98rem; }
.card-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: auto; padding-top: 1rem; }
.card-cta { width: 100%; margin-top: 1rem; }
.tag { font-family: var(--font-accent); font-size: 0.8rem; letter-spacing: 0.02em; color: var(--accent-deep); background: var(--accent-soft); border-radius: 999px; padding: 0.3em 0.85em; }
.service-card { align-items: center; text-align: center; padding: 2rem 1.4rem; }
.service-card .icon-wrap { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-deep); margin-bottom: 1rem; }
.service-card h3 { font-size: 1.26rem; }
.service-card p { font-size: 0.97rem; }
.zone-card .card-body h3 { font-size: 1.32rem; }
.zone-card .dist { font-family: var(--font-accent); color: var(--accent); font-size: 0.95rem; letter-spacing: 0.04em; line-height: 1.3; margin-bottom: 0.35rem; }
.step-card { display: flex; gap: 1rem; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.5rem 1.4rem; box-shadow: 0 6px 18px rgba(35, 74, 50, 0.05); }
.step-card .icon-wrap { width: 52px; height: 52px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-deep); }
.step-card h3 { font-size: 1.3rem; margin-bottom: 0.2rem; }
.step-card p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* ===== Recensioni ===== */
.review-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.6rem; box-shadow: 0 6px 18px rgba(35, 74, 50, 0.05); display: flex; flex-direction: column; gap: 0.7rem; }
.review-card blockquote { margin: 0; color: var(--ink); font-size: 0.98rem; }
.review-meta { margin-top: auto; display: flex; flex-direction: column; gap: 0.1rem; }
.review-meta .who { font-weight: 600; font-size: 0.96rem; }
.review-meta .src { font-size: 0.84rem; color: var(--ink-soft); }
.rating-summary {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.8rem 1.6rem;
  margin: 0 auto 2.5rem; padding: 1.3rem 1.6rem; max-width: 860px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.rating-summary .score { font-family: var(--font-display); font-size: 2.1rem; font-weight: 600; color: var(--accent-deep); line-height: 1; }
.rating-summary .stars { color: var(--gold); display: inline-flex; }
.rating-summary .caption { color: var(--ink-soft); font-size: 0.98rem; }

/* ===== Galleria ===== */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9rem; }
.gallery .gallery-item { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 0.35s ease; }
.gallery .gallery-item:hover img { transform: scale(1.05); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; } }

/* ===== FAQ ===== */
.faq-list { max-width: 840px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.9rem; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.4rem; }
.faq-item h3 { font-size: 1.17rem; margin: 0 0 0.3rem; font-family: var(--font-body); font-weight: 600; }
.faq-item p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* ===== Contatti / posizione ===== */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-list .icon-wrap { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-deep); }
.contact-list b { display: block; }
.contact-list span { color: var(--ink-soft); }
.contact-list a { word-break: break-word; }
.contact-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }
.contact-fine { margin-top: 1.2rem; font-size: 0.92rem; color: var(--ink-soft); }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--card); }
.map-embed iframe { width: 100%; height: 380px; border: 0; display: block; }
/* Placeholder della mappa: l'iframe di Google si carica solo su richiesta */
.map-placeholder {
  width: 100%; height: 380px; border: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.35rem;
  background: var(--accent-soft); color: var(--accent-deep);
  font-family: var(--font-body); text-align: center; padding: 1.5rem;
}
.map-placeholder:hover { background: #d7e5d6; }
.map-pin-icon { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: #fff; margin-bottom: 0.4rem; }
.map-placeholder-title { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.1; }
.map-placeholder-text { font-size: 0.98rem; color: var(--ink-soft); }
.map-placeholder-cta { margin-top: 0.5rem; font-weight: 600; text-decoration: underline; text-underline-offset: 0.18em; }
@media (max-width: 800px) {
  .contact-grid, .two-col { grid-template-columns: minmax(0, 1fr); }
  .two-col .col-media { order: 2; }
}
@media (max-width: 600px) {
  .contact-cta { display: grid; grid-template-columns: minmax(0, 1fr); }
  .contact-cta .btn { width: 100%; }
  .hero-actions { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
  .hero-actions .btn { width: 100%; }
  .card-cta { width: 100%; }
  .map-embed iframe, .map-placeholder { height: 320px; }
}

/* ===== CTA finale ===== */
.cta-final { background-color: var(--cta-bg); color: #fff; }
.cta-final .eyebrow { color: #f2dcae; }
.cta-final h2 { color: #fff; font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
.cta-final p { color: #eaf3ec; }
.cta-final .hero-actions { justify-content: center; }
.cta-final .cta-note { margin-top: 1.6rem; color: #eaf3ec; font-size: 0.95rem; }

/* ===== Footer ===== */
.site-footer { background-color: var(--cta-bg); color: #d9e8db; padding: 3.2rem 0 1.6rem; }
.site-footer .grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; }
.site-footer h3 { color: #fff; font-size: 1.15rem; margin-bottom: 0.8rem; }
.site-footer a { color: #d9e8db; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; font-size: 0.95rem; }
.site-footer ul li { display: flex; gap: 0.4rem; align-items: flex-start; flex-wrap: wrap; }
/* Link del footer: area di tocco >= 24px e spazio sufficiente tra i vicini */
.site-footer ul li a {
  display: inline-flex; align-items: center; gap: 0.35rem;
  min-height: 24px; padding: 0.15rem 0;
}
.footer-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; }
.footer-brand span { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: #fff; }
.footer-about { font-size: 0.95rem; max-width: 36em; }
.footer-note { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,0.16); font-size: 0.85rem; color: #c6d9c9; display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; justify-content: space-between; }
.footer-note a { color: #c6d9c9; }
@media (max-width: 800px) { .site-footer .grid { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; } }
