/* DT Lidea · pagine interne: blog, lavori, Chi sono, Contatti, FAQ. */

/* ---------- testata delle pagine ---------- */
.page-head { text-align: center; padding: 56px 0 34px; }
.page-head h1 { font-size: 42px; margin: 8px 0 12px; }
.page-head .lead { max-width: 640px; }
.page-404 { padding: 90px 0; }

/* ---------- schede degli articoli ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(43,69,110,.13); }
.card-img { aspect-ratio: 16 / 10; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.card-meta { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.card-cat { color: var(--blue); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.card-title { font-size: 19px; margin-bottom: 8px; }
.card-title a { text-decoration: none; }
.card-title a:hover { color: var(--blue); }
.card-excerpt { color: var(--muted); font-size: 15px; flex: 1; }
.card-more { margin-top: 12px; color: var(--blue-dark); font-weight: 600; font-size: 14px; text-decoration: none; }
.card-more:hover { text-decoration: underline; }

/* ---------- numeri di pagina ---------- */
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pagination .page-numbers { min-width: 40px; padding: 8px 12px; text-align: center; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--muted); font-size: 14px; }
.pagination .page-numbers.current { background: var(--blue); border-color: var(--blue); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--blue-light); color: var(--blue-dark); }

.empty { text-align: center; padding: 30px 0 10px; color: var(--muted); }

/* ---------- articolo, lavoro e pagine semplici ---------- */
.entry { max-width: 780px; margin: 0 auto; }
.entry-head { text-align: center; padding: 56px 0 26px; }
.entry-head h1 { font-size: 40px; margin: 8px 0 10px; }
.entry-meta { color: var(--muted); font-size: 14px; }
.entry-cover { margin: 0 0 30px; }
.entry-cover img { width: 100%; border-radius: 10px; }
.entry-content { font-size: 17px; line-height: 1.75; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { text-align: left; font-size: 28px; margin: 1.6em 0 .5em; }
.entry-content h3 { font-size: 22px; margin: 1.4em 0 .4em; }
.entry-content h4 { font-size: 18px; margin: 1.2em 0 .3em; }
.entry-content a { color: var(--blue); }
.entry-content strong { color: var(--ink); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: .35em; }
.entry-content ul li::marker, .entry-content ol li::marker { color: var(--blue-light); }
.entry-content blockquote, .entry-content .wp-block-quote { border-left: 4px solid var(--blue-light); padding: 4px 0 4px 22px; font-family: var(--head); font-size: 21px; color: var(--blue-dark); }
.entry-content blockquote cite { display: block; margin-top: 6px; font-family: var(--body); font-size: 14px; font-style: normal; color: var(--muted); }
.entry-content img { border-radius: 8px; }
.entry-content figcaption, .entry-content .wp-caption-text, .entry-content .wp-element-caption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 6px; }
.entry-content hr { border: 0; height: 1px; background: var(--line); margin: 2em 0; }
.entry-content .wp-caption { max-width: 100%; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-content .alignleft { float: left; margin: 0 20px 12px 0; }
.entry-content .alignright { float: right; margin: 0 0 12px 20px; }
.entry-content iframe { max-width: 100%; }
/* gallerie dell'editor classico */
.entry-content .gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.entry-content .gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.entry-content .gallery-columns-1 { grid-template-columns: 1fr; }
.entry-content .gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.entry-content .gallery-item { margin: 0; }
.entry-content .gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 0 !important; }
.entry-content .gallery br { display: none; }
.entry-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 46px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; }
.entry-nav a { color: var(--blue-dark); text-decoration: none; font-weight: 600; }
.entry-nav a:hover { text-decoration: underline; }
.entry-nav div:last-child { text-align: right; }
.back-link { margin-top: 36px; }
.back-link a { color: var(--blue-dark); font-weight: 600; text-decoration: none; }

/* dettagli del lavoro */
.work-facts { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 36px; margin: 0 0 30px; padding: 16px 20px; background: var(--bg2); border-radius: 10px; }
.work-facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.work-facts dd { font-weight: 600; }
.related { padding: 56px 0 10px; }

/* ---------- riquadro finale "Parliamone" ---------- */
.cta-box { margin: 64px auto 20px; max-width: 900px; text-align: center; background: var(--fold), var(--bg2); border-radius: 14px; padding: 44px 26px; }
.cta-box h2 { margin: 6px 0 10px; font-size: 32px; }
.cta-box > p:not(.kicker) { color: var(--muted); max-width: 560px; margin: 0 auto; }
.cta-box .cta { margin-top: 22px; }

/* ---------- Chi sono ---------- */
.about { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: start; padding-bottom: 20px; }
.about-photo img, .about-photo-empty { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }
.about-photo-empty { display: grid; place-items: center; background: var(--fold), var(--bg2); }
.about-photo-empty img { width: 45%; aspect-ratio: auto; opacity: .6; }
.about-photo figcaption { text-align: center; margin-top: 10px; color: var(--muted); font-size: 14px; }
.about-text > :first-child { margin-top: 0; }

/* ---------- Contatti ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.contact-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 26px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.contact-tile:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(43,69,110,.12); }
.tile-ic { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(54,84,132,.1); color: var(--blue-dark); margin-bottom: 8px; }
.tile-ic svg { width: 24px; height: 24px; }
.tile-wa .tile-ic { background: rgba(31,157,85,.12); color: var(--wa); }
.tile-label { font-family: var(--head); font-weight: 600; font-size: 18px; }
.tile-value { color: var(--muted); font-size: 14px; word-break: break-word; }
.contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; margin-top: 34px; padding: 30px; background: var(--bg2); border-radius: 12px; }
.contact-person { display: flex; align-items: center; gap: 18px; }
.contact-person img { width: 84px; height: 84px; object-fit: contain; flex: none; }
.contact-person img.is-photo { object-fit: cover; border-radius: 50%; }
.contact-person .name { font-family: var(--head); font-weight: 600; font-size: 22px; }
.contact-person .role { color: var(--muted); font-size: 15px; }
.contact-person .place { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 14px; margin-top: 4px; }
.contact-person .place svg { width: 15px; height: 15px; color: var(--blue); }
.contact-facts { list-style: none; display: grid; gap: 8px; font-size: 15px; }
.contact-facts strong { color: var(--blue-dark); }
.faq-link { color: var(--blue-dark); font-weight: 600; }

/* ---------- Domande frequenti ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.faq-item[open] { border-color: var(--blue-light); box-shadow: 0 8px 20px rgba(43,69,110,.07); }
.faq-item summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer; font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(54,84,132,.1); color: var(--blue-dark); font-family: var(--head); font-size: 14px; }
.faq-q { flex: 1; }
.faq-ic { flex: none; width: 12px; height: 12px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); margin-top: -4px; transition: transform .2s; }
.faq-item[open] .faq-ic { transform: rotate(-135deg); margin-top: 4px; }
.faq-a { padding: 0 18px 18px 62px; color: var(--muted); }
.faq-a p + p { margin-top: .8em; }

@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 26px; }
  .about-photo { max-width: 320px; margin: 0 auto; }
  .contact-info { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
  .page-head { padding: 40px 0 26px; }
  .page-head h1, .entry-head h1 { font-size: 30px; }
  .entry-head { padding: 40px 0 20px; }
  .entry-content { font-size: 16px; }
  .entry-content .gallery { grid-template-columns: repeat(2, 1fr); }
  .entry-nav { flex-direction: column; }
  .entry-nav div:last-child { text-align: left; }
  .cta-box { padding: 34px 18px; }
  .cta-box h2 { font-size: 26px; }
  .faq-a { padding-left: 18px; }
  .contact-info { padding: 22px; }
}

/* ---------- foto ingrandita ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 50px 60px; background: rgba(20, 27, 42, .92); cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 100px); object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.entry-content .gallery a { cursor: zoom-in; }
@media (max-width: 600px) { .lightbox { padding: 60px 10px; } .lb-prev, .lb-next { top: auto; bottom: 10px; transform: none; } }
.contact-person .place a { color: inherit; text-decoration: none; }
.contact-person .place a:hover { color: var(--blue); text-decoration: underline; }
