/* ==========================================================
   Elisabetta Taddei — sito ufficiale
   Ricostruzione fedele del sito Wix originale
   ========================================================== */

/* ---------- Font (ospitati in locale, niente Google Fonts) ---------- */
@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/roboto-latin-100-normal.woff2") format("woff2"); font-weight: 100; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/roboto-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* ---------- Variabili ---------- */
:root {
  --nero: #080808;
  --bianco: #ffffff;
  --grigio-nav: #e0e0e0;
  --header-h: 80px;
  --serif: "Cinzel", Georgia, serif;
  --thin: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --sans: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --max: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.45; color: var(--nero); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }

.container { width: min(var(--max), 100% - 48px); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 100;
  background: var(--nero); color: var(--bianco);
  display: flex; align-items: center; padding: 0 5%;
}
.brand { display: flex; flex-direction: column; align-items: center; text-decoration: none; flex: 0 0 auto; }
.brand-sub { font-family: var(--sans); font-size: 15px; line-height: 1; color: #fff; font-weight: 400; }
.brand img { width: 110px; height: auto; margin-top: 2px; }

.main-nav { flex: 1; display: flex; justify-content: space-around; margin-left: 4%; }
.main-nav a { font-family: var(--thin); font-weight: 100; font-size: 16px; color: #fff; text-decoration: none; letter-spacing: .02em; transition: color .2s; }
.main-nav a:hover, .main-nav a.active { color: #9a9a9a; }

.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: #fff; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 1px; background: #fff; margin: 6px 0; transition: transform .25s, opacity .25s; }

/* ---------- Home / Hero ---------- */
.hero {
  position: relative; min-height: 100vh; padding-top: var(--header-h);
  background: #f3f2ef url("../img/hero.jpg") center / cover no-repeat;
  display: flex; align-items: flex-end; justify-content: center;
}
.hero-box {
  width: min(620px, 92%); margin-bottom: 9vh; text-align: center;
  background: rgba(205, 205, 205, .55); padding: 30px 0 0;
  container-type: inline-size;
}
.hero-line { border: 0; border-top: 1px solid rgba(0,0,0,.35); width: 32%; margin: 0 auto 14px; }
.hero-line.long { width: 82%; margin: 14px auto 28px; }
.hero-discover { font-family: var(--thin); font-weight: 300; font-size: 25px; margin: 0; color: rgba(8,8,8,.75); }
.hero-name {
  font-family: var(--thin); font-weight: 100; color: rgba(8,8,8,.85); white-space: nowrap;
  /* la dimensione segue la larghezza del riquadro, così il nome non esce mai dai bordi */
  font-size: clamp(20px, 5.4vw, 50px); /* riserva per browser molto vecchi */
  font-size: min(60px, 7.6cqi); letter-spacing: .24em; padding-left: .24em;
  margin: 6px 0 0;
}
.btn-opere {
  display: inline-block; font-family: var(--thin); font-weight: 300; font-size: 20px; color: #fff;
  background: rgba(60,60,60,.85); padding: 12px 34px; text-decoration: none; transition: background .2s;
}
.btn-opere:hover { background: rgba(8,8,8,.95); }

/* ---------- Titoli di sezione ---------- */
.section-head { text-align: center; padding: 60px 20px 40px; }
.section-head h2 { font-size: 40px; line-height: 1.4; font-variant: small-caps; text-transform: none; }
.section-head p { margin: 14px 0 0; font-size: 17px; letter-spacing: .05em; }

/* ---------- Opere ---------- */
#opere { background: #fff; }
.poem {
  background: url("../img/opere/poesia-sfondo.jpg") center / cover no-repeat;
  padding: 120px 0;
}
.poem-box { width: min(980px, 92%); margin: 0 auto; background: rgba(8,8,8,.45); color: #fff; padding: 40px 15% 50px; }
.poem-box p { margin: 0; font-size: 16px; line-height: 1.4; }
.poem-sign { text-align: right; margin-top: 30px !important; }
.poem-sign small { display: block; font-size: 10px; margin-top: 6px; }

.works { padding: 40px 0 80px; }
.work { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; width: min(var(--max), 100% - 48px); margin: 0 auto 70px; }
.work figure { margin: 0; }
.work img { width: 100%; height: auto; max-height: 520px; object-fit: contain; object-position: center; cursor: zoom-in; }
.work .info h3 { font-size: 30px; font-variant: small-caps; margin-bottom: 26px; }
.work .info p { margin: 0 0 8px; font-size: 16px; }
.work:nth-child(even) figure { order: 2; }

/* ---------- Biografia ---------- */
#biografia { position: relative; background: url("../img/biografia/sfondo.jpg") center / cover fixed; }
#biografia::before { content: ""; position: absolute; inset: 0; background: rgba(245,245,245,.78); }
#biografia > * { position: relative; }
.bio-intro { display: grid; grid-template-columns: 606fr 520fr; gap: 90px; align-items: start; width: min(1210px, 100% - 48px); margin: 0 auto; padding-bottom: 60px; }
.bio-intro img { width: 100%; aspect-ratio: 606 / 850; object-fit: cover; object-position: 50% 30%; }
.bio-text p { margin: 0; font-size: 16px; line-height: 1.75; letter-spacing: .03em; }
.bio-text p + p { margin-top: 0; }
.bio-text .gap { height: 1.75em; }

.mostre-title { text-align: center; padding: 40px 0 50px; }
.mostre-title h2 { font-size: 40px; letter-spacing: .08em; }
.mostre { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; width: min(1180px, 100% - 48px); margin: 0 auto; padding-bottom: 80px; align-items: center; }
.mostre ul { list-style: none; padding: 0; margin: 0; }
.mostre li { font-size: 16px; padding: 7px 0; line-height: 1.4; }
.mostre li strong { font-weight: 600; }

.bio-video { width: min(790px, 100% - 48px); margin: 0 auto; padding-bottom: 90px; }
.bio-video video { width: 100%; display: block; background: #000; box-shadow: 0 2px 8px rgba(0,0,0,.25); }

.bio-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.bio-gallery img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; cursor: zoom-in; }
.bio-gallery img.wide { grid-column: span 2; aspect-ratio: auto; }

/* ---------- Ufficio stampa ---------- */
#ufficio-stampa { background: #000 url("../img/stampa/sfondo.jpg") center / cover no-repeat; color: #fff; padding: 110px 0 120px; }
.press { width: min(1314px, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); }
.press-list { grid-column: 2; }
.press-item { margin-bottom: 70px; padding-right: 24px; }
.press-item h3 { font-size: 20px; font-variant: small-caps; margin-bottom: 18px; }
.press-item p { margin: 0 0 22px; font-size: 15px; line-height: 1.75; }
.press-item img { width: 100%; height: auto; aspect-ratio: 537 / 252; object-fit: cover; object-position: top left; background: #fff; transition: opacity .2s; }
.press-item h3, .press-item p { text-shadow: 0 1px 4px rgba(0,0,0,.85); }
.press-item a:hover img { opacity: .85; }

/* ---------- Contatti ---------- */
#contatti { position: relative; background: url("../img/contatti-sfondo.jpg") center / cover no-repeat; padding-bottom: 110px; }
#contatti::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.25); }
#contatti > * { position: relative; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; width: min(1000px, 100% - 48px); margin: 40px auto 0; align-items: end; }
.contact-info { text-align: center; padding-bottom: 20px; }
.contact-info a.mail { font-size: 19px; text-decoration: none; }
.contact-info .social { justify-content: center; margin-top: 22px; }
.contact-form { background: rgba(70,70,70,.72); padding: 50px 36px 36px; color: #fff; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-form label { display: block; text-align: center; font-size: 13px; margin-bottom: 26px; }
.contact-form input, .contact-form textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.8);
  color: #fff; font: inherit; font-size: 15px; padding: 8px 2px; margin-top: 6px; outline: none; border-radius: 0;
}
.contact-form textarea { min-height: 90px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-bottom-color: #fff; background: rgba(255,255,255,.05); }
.contact-form button { display: block; margin: 10px 0 0 auto; background: #fff; color: var(--nero); border: 0; font-family: var(--sans); font-size: 15px; letter-spacing: .1em; padding: 12px 38px; cursor: pointer; transition: background .2s, color .2s; }
.contact-form button:hover { background: var(--nero); color: #fff; }
.form-ok { display: none; text-align: center; margin-top: 14px; font-size: 14px; }
.hp { position: absolute; left: -9999px; }

/* ---------- Social ---------- */
.social { display: flex; gap: 10px; }
.social a { width: 36px; height: 36px; border-radius: 50%; background: #fff; display: grid; place-items: center; transition: transform .2s; }
.social a:hover { transform: scale(1.08); }
.social svg { width: 18px; height: 18px; fill: #000; }
.contact-info .social a { background: #000; }
.contact-info .social svg { fill: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--nero); color: #fff; padding: 30px 0 18px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; width: min(1100px, 100% - 48px); margin: 0 auto; }
.footer-brand { text-align: center; font-family: var(--thin); font-weight: 300; font-size: 14px; line-height: 1.8; color: #cfcfcf; }
.footer-brand a { text-decoration: none; }
.footer-grid .social { justify-content: center; }
.footer-nav { display: flex; flex-direction: column; gap: 2px; padding-left: 25%; }
.footer-nav a { font-size: 15px; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.copy { text-align: center; font-size: 12px; margin: 26px 0 0; color: #ddd; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; padding: 40px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button { position: absolute; top: 14px; right: 20px; background: none; border: 0; color: #fff; font-size: 38px; cursor: pointer; line-height: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: center; gap: 22px; padding: 30px 0 40px;
    background: var(--nero); transform: translateY(-120%); transition: transform .3s ease; z-index: -1;
  }
  .main-nav a { font-size: 20px; }
  body.nav-open .main-nav { transform: translateY(0); }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .bio-intro, .mostre, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .press { grid-template-columns: minmax(0, 1fr); padding: 0 24px; }
  .press-list { grid-column: 1; min-width: 0; }
  .press-item { padding: 18px 18px 22px; margin-bottom: 40px; background: rgba(0,0,0,.55); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-nav { padding-left: 0; align-items: center; }
  #biografia { background-attachment: scroll; }
}

@media (max-width: 680px) {
  .work { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-bottom: 56px; }
  .work:nth-child(even) figure { order: 0; }
  .work .info h3 { margin-bottom: 14px; font-size: 26px; }
  .section-head h2, .mostre-title h2 { font-size: 32px; }
  .poem { padding: 60px 0; }
  .poem-box { padding: 30px 26px 36px; }
  .bio-gallery { grid-template-columns: repeat(2, 1fr); }
  .contact-form .row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 36px 22px 28px; }
}
