/*
Theme Name:  Uno che riflette
Description: Child theme di BlankSlate per il sito di Gianluca Alberti
Author:      Studio
Template:    blankslate
Version:     1.4.0
Text Domain: unocheriflette
*/

/* ── VARIABILI ── */
:root {
  --bg:           #fdf9f5;
  --bg-alt:       #EED6BE;
  --bg-green:     #1a6b3c;
  --text:         #1a1a1a;
  --text-mid:     #4a4a4a;
  --text-soft:    #8a8a8a;
  --text-on-green: #f5f2ec;
  --text-on-green2: rgba(255,255,255,0.65);
  --accent:       #977e13;
  --accent-yellow:#F6EE64;
  --border:       #ddd0be;
  --nav-h:        95px;
  --container:    1600px;
}

/* ── RESET BLANKSLATE ── */
#wrapper, #container, #content { all: unset; display: block; }
#header, #footer, #branding, #menu, #search, #site-title,
#site-description, #copyright { display: none; }

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#uche-page { flex: 1; }

/* ── CONTAINER ── */
.uche-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 64px;
}

/* ── NAV ── */
#uche-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(253,249,245,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 200;
}

#uche-nav .uche-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.nav-brand-logo {
  height: 75px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.nav-brand-text span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: 'Raleway', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mid);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.25s;
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-links .current-menu-item a { color: var(--accent); }
.nav-links .current-menu-item a::after { width: 100%; background: var(--accent); }

/* ── ADMIN BAR FIX ── */
body.admin-bar #uche-nav { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar #uche-nav { top: 46px; }
}

/* ── BURGER MENU ── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  flex-shrink: 0;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

.nav-burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; width: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Overlay fullscreen */
#uche-nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 199;
  display: flex;
  flex-direction: column;
  padding-top: var(--nav-h);
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

body.admin-bar #uche-nav-overlay { padding-top: calc(var(--nav-h) + 32px); }
@media screen and (max-width: 782px) {
  body.admin-bar #uche-nav-overlay { padding-top: calc(var(--nav-h) + 46px); }
}

#uche-nav-overlay.is-open { transform: translateY(0); }

.overlay-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 48px 32px;
  gap: 0;
}

.overlay-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 320px;
}

.overlay-links li a {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
  text-align: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  width: 100%;
  transition: color 0.2s;
}

.overlay-links li:first-child a { border-top: 1px solid var(--border); }
.overlay-links li a:hover { color: var(--accent); }

/* ── HERO ── */
#hero {
  background: var(--bg-alt);
  height: 100vh;
  min-height: 600px;
  overflow-x: clip;
}

body.admin-bar #hero { height: calc(100vh - 32px); }
@media screen and (max-width: 782px) {
  body.admin-bar #hero { height: calc(100vh - 46px); }
}

#hero .uche-container {
  height: 100%;
  padding-top: var(--nav-h);
}

/* ── HERO — schema testi chiaro (su sfondi scuri/saturi) ── */
#hero.hero--chiaro .hero-name     { color: #fff; }

#hero.hero--chiaro .hero-tag      { color: var(--accent); }

#hero.hero--chiaro .hero-subtitle { color: rgba(255,255,255,0.72); }

#hero.hero--chiaro .hero-cta      { color: #fff; }
#hero.hero--chiaro .cta-arrow     { border-color: var(--accent); color: var(--accent); }
#hero.hero--chiaro .hero-cta:hover .cta-arrow {
  background: var(--accent);
  color: #fff;
}

.hero-row {
  display: flex;
  align-items: center;
  height: 100%;
}

.hero-col-1 {
  flex: 1;
}

.hero-col-2 {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

@media (min-width: 1101px) {
  .hero-col-2 {
    align-self: stretch;
    overflow: hidden;
  }
}

.hero-col-2 img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
}

/* testi */
.hero-name {
  font-family: 'Raleway', sans-serif;
  font-size: 6rem;
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 20px;
}

.hero-name strong {
  font-weight: 700;
  display: block;
}

.hero-tag {
  font-family: 'Raleway', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
}

.hero-subtitle {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--text-mid);
  margin-bottom: 40px;
}

.hero-citazione {
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  line-height: 1.65;
  margin: 0 0 28px;
  padding: 0;
  border: none;
  max-width: 550px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  width: fit-content;
  transition: gap 0.25s;
}

.hero-cta .cta-arrow {
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1rem;
  transition: background 0.25s, color 0.25s;
  flex-shrink: 0;
}

.hero-cta:hover { gap: 20px; }
.hero-cta:hover .cta-arrow { background: var(--accent); color: #fff; }

/* ── ELEMENTI COMUNI SEZIONI ── */
.section-tag {
  font-family: 'Raleway', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-intro {
  font-family: 'Raleway', sans-serif;
  font-size: 2rem;
  font-weight: 300;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 32px;
}

/* ── CHI SONO ── */
#chi-sono {
  background: #fff;
  padding: 120px 0;
}

.chisono-row {
  display: flex;
  gap: 80px;
  align-items: flex-start;
}

.chisono-foto {
  flex: 0 0 400px;
}

.chisono-foto img {
  width: 100%;
  height: auto;
  display: block;
}

.chisono-content {
  flex: 1;
  min-width: 0;
}

.chisono-bio {
  margin-bottom: 48px;
}

.chisono-bio p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-mid);
  margin-bottom: 1rem;
}

.chisono-bio p:last-child { margin-bottom: 0; }
.chisono-bio strong,
.chisono-bio b { font-weight: 700; color: var(--text); }

.chisono-ambiti-wrap {
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.chisono-ambiti-titolo {
  font-family: 'Raleway', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 24px;
}

.chisono-ambiti {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.chisono-ambito {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.chisono-ambito svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
  flex-shrink: 0;
}

.chisono-ambito span {
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

/* ── PUBBLICAZIONI ── */
#pubblicazioni {
  background: var(--bg-alt);
  padding: 120px 0;
}

.section-tag.is-centered {
  text-align: center;
  margin-bottom: 16px;
}

.pubbl-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 72px;
}

.pubbl-intro p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-mid);
}

.pubbl-sub-tag {
  font-family: 'Raleway', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 32px;
}

.pubbl-sub-tag.is-centered {
  text-align: center;
  margin-bottom: 56px;
}

/* Featured — banda verde */
.pubbl-featured-wrap {
  background: var(--bg-green);
  padding: 80px 0;
  margin-bottom: 80px;
}

.pubbl-featured-wrap .pubbl-sub-tag {
  color: var(--text-on-green2);
  text-align: center;
}

.pubbl-featured {
  display: flex;
  gap: 80px;
  align-items: center;
}

.pubbl-featured-cover {
  flex: 0 0 320px;
}

.pubbl-featured-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.pubbl-featured-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.pubbl-meta {
  font-family: 'Raleway', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-on-green2);
  margin-bottom: 16px;
}

.pubbl-featured-title {
  font-family: 'Raleway', sans-serif;
  font-size: 2.4rem;
  font-weight: 300;
  line-height: 1.15;
  color: var(--text-on-green);
  margin: 0 0 24px;
}

.pubbl-featured-desc {
  margin-bottom: 40px;
}

.pubbl-featured-desc p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-on-green2);
}

.pubbl-featured-wrap .hero-cta { color: var(--text-on-green); }
.pubbl-featured-wrap .cta-arrow { border-color: var(--accent-yellow); color: var(--accent-yellow); }
.pubbl-featured-wrap .hero-cta:hover .cta-arrow { background: var(--accent-yellow); color: var(--bg-green); }

/* Grid altri libri */
.pubbl-grid-wrap { padding-bottom: 0; }

.pubbl-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.pubbl-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.pubbl-card-cover {
  max-width: 200px;
  margin: 0 auto 16px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
}

.pubbl-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
}

.pubbl-card:hover .pubbl-card-cover img {
  transform: scale(1.03);
}

.pubbl-card-info {
  text-align: center;
}

.pubbl-card-title {
  font-family: 'Raleway', sans-serif;
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text);
  margin: 0 0 6px;
  padding-top: 5px;
}

.pubbl-card-meta {
  font-family: 'Raleway', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin-bottom: 10px;
}

.pubbl-card-cta {
  font-family: 'Raleway', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--accent);
  transition: opacity 0.2s;
}

.pubbl-card:hover .pubbl-card-cta { opacity: 0.7; }

/* ── SERVIZI ── */
#servizi {
  background: #fff;
  padding: 120px 0;
}

.serv-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 72px;
}

.serv-intro p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-mid);
}

.serv-row {
  display: flex;
  gap: 80px;
  align-items: center;
}

.serv-foto {
  flex: 0 0 520px;
}

.serv-foto img {
  width: 100%;
  height: auto;
  display: block;
}

.serv-content {
  flex: 1;
  min-width: 0;
}

.serv-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 40px 24px;
}

.serv-item {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 8px;
}

.serv-item:nth-child(4) { grid-column: 2 / span 2; }
.serv-item:nth-child(5) { grid-column: 4 / span 2; }

.serv-icon {
  margin-bottom: 20px;
}

.serv-icon svg {
  width: 48px;
  height: 48px;
  color: var(--text);
}

.serv-title {
  font-family: 'Raleway', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 12px;
  line-height: 1.3;
}

.serv-text {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-mid);
}

/* ── POESIE ── */
#poesie {
  background: #3700a0;
  padding: 120px 0;
}

.poesie-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 72px;
}

.poesie-intro p {
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.75);
}

#poesie .section-tag {
    margin-bottom: 3rem;
}

/* slider */
.poesie-slider {
  display: flex;
  align-items: center;
  gap: 32px;
}

.poesie-stage {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 80px;
}

.poesia-item {
  display: none;
  flex: 1;
  min-width: 0;
  text-align: center;
}

.poesia-item.is-visible {
  display: block;
}

.poesia-item.is-entering {
  animation: poesia-in 0.4s ease forwards;
}

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

.poesie-prev,
.poesie-next {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  padding: 0;
  margin-top: 6px;
}

.poesie-prev svg,
.poesie-next svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.poesie-prev:hover,
.poesie-next:hover {
  background: rgba(151,126,19,0.15);
  border-color: var(--accent);
}

.poesie-prev:disabled,
.poesie-next:disabled {
  opacity: 0.25;
  cursor: default;
}

.poesia-titolo {
  font-family: 'Raleway', sans-serif;
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1.2;
  color: var(--accent);
  margin: 0 0 20px;
}

.poesia-content {
  font-size: 1rem;
  line-height: 2;
  color: rgba(255,255,255,0.9);
}

.poesia-content p {
  margin-bottom: 0.4rem;
}

/* ── CONTATTI ── */
#contatti {
  background: var(--bg-alt);
  padding: 120px 0;
}

.contatti-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}

.contact-intro {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 12px;
}

.contact-note {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-mid);
  font-weight: 300;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.contact-list li:first-child {
  border-top: 1px solid var(--border);
}

.contact-label {
  font-family: 'Raleway', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-value {
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s;
}

.contact-value:hover { color: var(--accent); }

.social-links {
  display: flex;
  flex-direction: column;
}

.social-link {
  font-family: 'Raleway', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.social-link-label {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-soft);
  transition: color 0.2s;
}

.social-arrow {
  color: var(--text-soft);
  font-size: 1.1rem;
  transition: transform 0.2s, color 0.2s;
}

.social-link:hover { color: var(--accent); }
.social-link:hover .social-icon,
.social-link:hover .social-arrow { color: var(--accent); }
.social-link:hover .social-arrow { transform: translateX(4px); }

/* ── FOOTER ── */
#uche-footer {
  background: var(--bg-green);
  padding: 36px 0;
}

#uche-footer .uche-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  white-space: nowrap;
}

.footer-brand-logo {
  height: 75px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.footer-brand-text span { color: var(--accent); }

.footer-quote {
  font-size: 0.9rem;
  font-style: italic;
  font-weight: 300;
  color: #fff;
  margin: 8px 0 0;
  line-height: 1.6;
  max-width: 420px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.footer-copy {
  font-size: 0.9rem;
  font-weight: 300;
  color: #fff;
  margin: 0;
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

.footer-nav a {
  font-size: 0.9rem;
  font-weight: 300;
  color: #fff;
  text-decoration: underline;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.footer-nav a:hover { color: rgba(255,255,255,0.75); }

/* ── SCROLL TOP ── */
#scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: #3700a0;
  border: 1px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 190;
}

#scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

#scroll-top:hover {
  transform: translateY(-3px);
}

#scroll-top svg {
  width: 20px;
  height: 20px;
  color: #fff;
}

/* ── SINGLE LIBRO ── */
.libro-single {
  padding: 120px 0;
  background: var(--bg);
}

.libro-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  text-decoration: none;
  margin-bottom: 56px;
  transition: color 0.2s;
}

.libro-back svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.libro-back:hover { color: var(--accent); }
.libro-back:hover svg { transform: translateX(-3px); }

.libro-layout {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 80px;
  align-items: start;
}

.libro-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.libro-main-img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  transition: opacity 0.2s;
}

.libro-thumbs {
  display: flex;
  gap: 8px;
}

.libro-thumb {
  width: 64px;
  flex-shrink: 0;
  padding: 0;
  background: none;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s, opacity 0.2s;
  opacity: 0.55;
}

.libro-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.libro-thumb.is-active {
  border-color: var(--accent);
  opacity: 1;
}

.libro-thumb:hover { opacity: 1; }

.libro-meta {
  font-family: 'Raleway', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}

.libro-title {
  font-family: 'Raleway', sans-serif;
  font-size: 2.6rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.2;
  margin: 0 0 32px;
}

.libro-desc {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 40px;
}

.libro-desc p { margin-bottom: 1em; }
.libro-desc p:last-child { margin-bottom: 0; }

.libro-cta { margin-top: 0; }

/* ── RESPONSIVE ── */

/* 1100px — burger, hero a colonna singola */
@media (max-width: 1100px) {
  :root { --nav-h: 82px; }
  .nav-links  { display: none; }
  .nav-burger { display: flex; }
  .nav-brand-logo,
  .footer-brand-logo { height: 62px; }

  #hero,
  body.admin-bar #hero { height: auto; min-height: 100svh; overflow: hidden; }

  #hero .uche-container { height: auto; padding-bottom: 48px; }

  .hero-row { height: auto; flex-direction: column; align-items: flex-start; }

  .hero-col-1 { flex: 0 0 auto; padding-top: 48px; padding-bottom: 40px; }

  .hero-col-2 { flex: 0 0 auto; width: 100%; justify-content: center; }

  .hero-col-2 img { width: 100%; }
}

@media (min-width: 1101px) {
  #uche-nav-overlay { display: none !important; }

  .footer-brand { font-size: 0.9rem; }
  .footer-quote  { font-size: 0.95rem; }
}

/* 1100px — chi sono + pubblicazioni colonna singola */
@media (max-width: 1100px) {
  .chisono-row { flex-direction: column; gap: 40px; }
  .chisono-foto { flex: none; width: 100%; max-width: 480px; }
  .chisono-ambiti { grid-template-columns: repeat(2, 1fr); }

  .pubbl-featured { flex-direction: column; gap: 40px; align-items: flex-start; }
  .pubbl-featured-cover { flex: none; width: 100%; max-width: 280px; }
  .pubbl-grid { grid-template-columns: repeat(2, 1fr); }

  .serv-row { flex-direction: column; gap: 48px; }
  .serv-foto { flex: none; width: 100%; max-width: 400px; }
  .serv-grid { grid-template-columns: repeat(6, 1fr); }

  .poesie-stage { gap: 40px; }

  .contatti-row { grid-template-columns: 1fr; gap: 56px; }

  .libro-layout { grid-template-columns: 1fr; gap: 40px; }
  .libro-main-img img { max-width: 360px; }
}

/* 768px — font ridotti, container più stretto */
@media (max-width: 768px) {
  .uche-container { padding: 0 32px; }

  .hero-name     { font-size: 4rem; }
  .hero-tag      { font-size: 1.3rem; margin-bottom: 1rem; }
  .hero-subtitle  { margin-bottom: 1rem; }
  .hero-citazione { font-size: 1rem; }
  .hero-subtitle { font-size: 1.05rem; }
}

/* 480px — font ridotti */
@media (max-width: 480px) {
  :root { --nav-h: 70px; }
  .uche-container { padding: 0 20px; }
  .nav-brand-logo,
  .footer-brand-logo { height: 50px; }

  .hero-name     { font-size: 3rem; }
  .hero-tag      { font-size: 1.1rem; }
  .hero-subtitle { font-size: 1rem; }

  #chi-sono { padding: 80px 0; }
  #pubblicazioni { padding: 80px 0; }
  #servizi { padding: 80px 0; }
  #poesie { padding: 80px 0; }
  #contatti { padding: 80px 0; }
  .libro-single { padding: 80px 0; }
  .libro-back { margin-bottom: 40px; }
  .libro-main-img img { max-width: 100%; }
  .libro-title { font-size: 2rem; }
  .chisono-ambiti { grid-template-columns: repeat(2, 1fr); }
  .pubbl-grid { gap: 24px; }
  .serv-grid { grid-template-columns: repeat(4, 1fr); }
  .serv-item { grid-column: span 2; padding: 16px 8px; }
  .serv-item:nth-child(4),
  .serv-item:nth-child(5) { grid-column: span 2; }

  #uche-footer .uche-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-bottom { align-items: flex-start; }

  .footer-quote { max-width: 100%; }
}

/* ── PAGINE STATICHE (page.php) ── */
#uche-page {
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 100px;
  max-width: 1200px;
}

.page-title {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 40px;
}

.page-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}

.page-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2em 0 0.6em;
  color: var(--text);
}

.page-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.6em 0 0.4em;
}

.page-content p { margin-bottom: 1em; }

.page-content a {
  color: var(--accent);
  text-decoration: underline;
}

.page-content ul,
.page-content ol {
  padding-left: 1.4em;
  margin-bottom: 1em;
}

.page-content li { margin-bottom: 0.4em; }

@media (max-width: 480px) {
  #uche-page { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 60px; }
  .page-title { font-size: 1.6rem; }
}
