/* Giovanni Trapattoni – stile del sito (ricostruito a mano, senza OceanWP/Elementor) */
@font-face { font-family: "Quattrocento"; src: url(/assets/fonts/quattrocento-400.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Quattrocento"; src: url(/assets/fonts/quattrocento-700.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url(/assets/fonts/lora.woff2) format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url(/assets/fonts/lora-italic.woff2) format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --black: #000;
  --ink: #1a1a1a;
  --white: #fff;
  --yellow: #ffdf00;        /* hover di menu e link */
  --footer: #111;
  --cream: #f7f6f1;         /* sfondo degli articoli */
  --overlay: rgba(0, 0, 0, .9);
  --width: 1140px;
  --serif: "Quattrocento", Georgia, "Times New Roman", serif;
  --text: "Lora", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 16px/1.8 var(--text); color: var(--ink); background: var(--white); }
body.page-post { background: var(--cream); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.2; margin: 0; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 40px, var(--width)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 8px 14px; }
.skip:focus { left: 8px; }

/* intestazione trasparente con menu a tutto schermo */
.site-header { position: absolute; top: 0; right: 0; z-index: 30; padding: 22px 28px; }
.menu-toggle { position: relative; z-index: 2; display: block; width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer; color: var(--white); }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: currentColor; transition: transform .25s, opacity .25s; }
.menu-toggle:hover { color: var(--yellow); }
.page-plain .menu-toggle { color: var(--black); }
.menu-open .menu-toggle { color: var(--white); }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-menu { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--overlay); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.menu-open .site-menu { opacity: 1; visibility: visible; }
.menu-open { overflow: hidden; }
.menu-open .site-header { position: fixed; }
.site-menu ul { list-style: none; margin: 0; padding: 0; text-align: center; }
.site-menu li { margin: 14px 0; }
.site-menu a { font: 400 20px/1.4 var(--serif); letter-spacing: 2px; text-transform: uppercase; color: var(--white); text-decoration: none; }
.site-menu a:hover, .site-menu a:focus-visible { color: var(--yellow); }
.site-menu .lang a { display: inline-flex; align-items: center; gap: 10px; }
.site-menu .lang img { width: 16px; height: 11px; }
.site-menu .lang span { font-size: 14px; }

/* home: solo la foto a tutto schermo (la firma è dentro l'immagine) */
.home-hero { min-height: 100vh; min-height: 100svh; background: #2a201a url(/assets/img/home-occhio.jpg) center left / cover no-repeat; }
@media (max-width: 1024px) { .home-hero { background-image: url(/assets/img/home-occhio-tablet.jpg); } }
@media (max-width: 767px) { .home-hero { background-image: url(/assets/img/home-occhio-mobile.jpg); background-position: bottom left; } }

/* testata delle pagine interne: foto grande e titolo in basso a sinistra */
.hero { display: flex; align-items: flex-end; min-height: 640px; padding: 140px 0 70px; background: #111 center / cover no-repeat; }
.hero-tall { min-height: 100vh; min-height: 100svh; }
.hero h1 { color: var(--white); font-size: clamp(30px, 5.5vw, 70px); text-shadow: 2px 2px 10px #000; }

/* carriera */
.logos { padding: 70px 0 40px; }
.logo-row { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 20px; align-items: center; justify-items: center; }
.logo-row + .logo-row { grid-template-columns: repeat(6, 1fr); width: 86%; margin-inline: auto; }
.logo-row img { max-height: 130px; width: auto; opacity: .5; filter: saturate(0); transition: opacity 1s, filter 1s; }
.logo-row img:hover { opacity: 1; filter: none; }
.section-title { font-size: 35px; color: var(--black); padding: 60px 0 20px; }
.stats-band { padding: 10px; background: center / cover no-repeat; position: relative; }
.stats { list-style: none; margin: 40px 0 40px auto; padding: 30px 20px; width: min(100%, 520px); display: grid; grid-template-columns: 1fr 1fr; gap: 30px 20px; text-align: center; }
.stats-light { background: rgba(255, 255, 255, .72); color: var(--black); }
.stats-dark { background: rgba(0, 0, 0, .62); color: var(--white); }
.stats img { height: 56px; width: auto; margin: 0 auto 10px; }
.stats strong { display: block; font-size: 22px; font-weight: 400; line-height: 1.3; }
.stats span { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; }
.dates { padding: 20px 0 60px; }
.date-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; width: min(100% - 40px, var(--width)); margin: 0 auto; }
.date-row img { width: 100%; box-shadow: 0 0 10px rgba(0, 0, 0, .5); }
.date-row p { margin: 0; padding: 30px 5%; font-size: 17px; line-height: 1.8; color: var(--black); }
.date-row.flip img { order: 2; }

/* racconti: griglia filtrabile */
.tales { padding: 60px 0 80px; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 30px; }
.filters button { font: 400 15px/1 var(--text); padding: 10px 18px; border: 1px solid #ccc; border-radius: 3px; background: #fff; color: var(--ink); cursor: pointer; }
.filters button:hover, .filters .is-active { background: var(--black); border-color: var(--black); color: var(--white); }
.tile-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile[hidden] { display: none; }
.tile a { position: relative; display: block; overflow: hidden; color: var(--white); text-decoration: none; aspect-ratio: 4 / 3; background: #000; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.caption { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 20px 24px; background: rgba(0, 0, 0, .7); opacity: 0; transform: translateY(12px); transition: opacity .35s, transform .35s; }
.caption strong { font: 400 24px/1.2 var(--serif); margin-bottom: 8px; }
.caption span { font-size: 15px; line-height: 1.5; }
.tile a:hover .caption, .tile a:focus-visible .caption { opacity: 1; transform: none; }
.play { position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; background: rgba(0, 0, 0, .55); border: 2px solid #fff; }
.play::after { content: ""; position: absolute; left: 24px; top: 18px; border: solid transparent; border-width: 12px 0 12px 19px; border-left-color: #fff; }
@media (hover: none) {
  .caption { opacity: 1; transform: none; top: auto; background: linear-gradient(0deg, rgba(0, 0, 0, .8), rgba(0, 0, 0, 0)); padding-top: 40px; }
  .caption span { display: none; }
}

/* articolo */
.post { padding: 60px 0 30px; }
.post .text { width: min(100% - 40px, 800px); margin: 0 auto; padding: 25px 80px 0; font-size: 18px; text-align: justify; color: var(--black); }
.post .quote { text-align: center; }
.video { width: min(100% - 40px, 592px); margin: 25px auto; aspect-ratio: 16 / 9; }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
.post figure { margin: 25px auto 30px; width: min(100% - 40px, 1140px); }
.post figure img { width: 50%; margin: 0 auto; box-shadow: 3px 3px 7px rgba(0, 0, 0, .5); }

/* 404 */
.notfound { padding: 140px 0 120px; text-align: center; }
.notfound h1 { font-size: 40px; margin-bottom: 20px; }
.btn { display: inline-block; margin: 6px; padding: 10px 22px; background: var(--black); color: var(--white); text-decoration: none; font-family: var(--serif); letter-spacing: 1px; text-transform: uppercase; }
.btn:hover { color: var(--yellow); }

/* piè di pagina */
.site-footer { position: relative; background: var(--footer); color: var(--white); text-align: center; padding: 34px 20px 26px; }
.social { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 30px; }
.social a { display: block; color: var(--white); transition: transform .2s, color .2s; }
.social a:hover { color: var(--yellow); transform: scale(1.1); }
.social svg { width: 35px; height: 35px; fill: currentColor; display: block; }
.site-footer hr { width: 37%; margin: 20px auto 15px; border: 0; border-top: 1px solid var(--white); }
.site-footer p { margin: 0; font-size: 12px; line-height: 1.8; }
.site-footer p a { color: var(--white); text-decoration: none; }
.site-footer p a:hover { color: var(--yellow); }
.to-top { position: absolute; right: 20px; bottom: 20px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 3px; background: rgba(255, 255, 255, .12); color: var(--white); }
.to-top:hover { color: var(--yellow); }

/* tablet */
@media (max-width: 1024px) {
  .site-footer hr { width: 54%; }
  .hero h1 { font-size: 45px; }
  .stats { margin-right: auto; }
  .post .text { padding: 25px 40px 0; }
  .post figure img { width: 88%; }
}
/* telefono */
@media (max-width: 767px) {
  .site-header { padding: 12px 14px; }
  .hero { min-height: 520px; padding-bottom: 50px; }
  .hero h1 { font-size: 34px; }
  .logos { padding: 40px 0 10px; }
  .logo-row, .logo-row + .logo-row { grid-template-columns: repeat(4, 1fr); width: 100%; gap: 24px 16px; margin-bottom: 24px; }
  .logo-row img { max-height: 80px; }
  .section-title { font-size: 28px; padding: 40px 0 16px; }
  .stats { padding: 24px 12px; gap: 24px 10px; }
  .stats span { font-size: 14px; }
  .date-row { grid-template-columns: 1fr; width: 100%; }
  .date-row.flip img { order: 0; }
  .date-row p { font-size: 14px; padding: 24px 20px 36px; }
  .tile-grid { grid-template-columns: 1fr; }
  .post .text { width: 100%; padding: 20px 20px 0; font-size: 16px; text-align: start; }
  .post figure img { width: 100%; }
  .social { gap: 18px; }
  .site-footer hr { width: 99%; }
  .site-footer { padding-bottom: 70px; }
}
@media (min-width: 768px) and (max-width: 1024px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
