@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');

@font-face {
  font-family: 'SexPistols';
  src: url('assets/fonts/Sex_Pistols.ttf') format('truetype');
}

:root {
  --pink:   #ff6b9d;
  --yellow: #ffda46;
  --black:  #111111;
  --white:  #ffffff;
  --nav-h:  130px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--black);
  font-family: 'Lato', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── NAV — più alto, logo grande, link grandi ── */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: var(--white);
  border-bottom: 3px solid var(--black);
}

/* Logo a sinistra: +50% rispetto a prima */
.nav-logo img {
  height: 195px;
  width: auto;
  transition: transform 0.2s;
  padding: 8px 0;
}
.nav-logo img:hover { transform: rotate(-1deg) scale(1.03); }

.nav-links { display: flex; gap: 8px; list-style: none; }
.nav-links a {
  display: inline-block;
  color: var(--black);
  text-decoration: none;
  font-family: 'SexPistols', cursive;
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  padding: 8px 18px;
  border: 2px solid transparent;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--yellow);
  border-color: var(--black);
  transform: rotate(-1deg);
}

.hamburger { display: none; flex-direction: column; gap: 6px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 30px; height: 3px; background: var(--black); border-radius: 2px; }

/* ── VIDEO SECTION ── */
.video-section {
  width: 100%;
  max-width: 900px;
  margin: 40px auto 0;
  padding: 0 40px;
}

/* Double stroke: sottile, con spazio bianco tra i due stroke e tra il secondo e il video */
.video-outer {
  border: 2px solid var(--pink);
  padding: 8px;           /* spazio bianco tra stroke rosa e stroke giallo */
  background: var(--white);
}
.video-inner {
  border: 2px solid var(--yellow);
  padding: 10px;          /* spazio bianco tra stroke giallo e il video */
  background: var(--white);
}
.video-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: none;
}
.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f0e8;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: #999;
  text-align: center;
  padding: 20px;
}

/* ── SVG BADGE ── */
.hero-svg {
  display: block;
  width: 100%;
  margin: 40px auto 8px;
  padding: 0 24px;
  animation: popIn 0.4s cubic-bezier(0.34,1.56,0.64,1) both 0.1s;
}
.hero-svg.ai    { max-width: 266px; }
.hero-svg.wide  { max-width: 280px; }
.hero-svg.books { max-width: 224px; }
@keyframes popIn {
  from { opacity: 0; transform: scale(0.75) rotate(-3deg); }
  to   { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* ── PAGE BODY ── */
.page-body {
  flex: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 40px 80px;
  animation: fadeUp 0.5s ease both 0.15s;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page-body p { font-size: 1.05rem; line-height: 1.9; color: #222; margin-bottom: 18px; }
.page-body a { color: var(--black); text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 3px; text-decoration-thickness: 2px; transition: background 0.2s; }
.page-body a:hover { background: var(--yellow); }
.page-body strong { font-weight: 700; }
.page-body em { font-style: italic; }

/* ── BOOKS PAGE ── */
.books-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  margin: 32px auto 0;
  padding: 0 40px;
  max-width: 900px;
}
.book-cover {
  flex: 1 1 300px;
  max-width: 380px;
}
.book-cover a { display: block; }
/* Nessun bordo/stroke sulle foto, nessuna caption */
.book-cover img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.2s;
}
.book-cover img:hover { transform: scale(1.02); }

/* ── REVIEWS ── */
.review-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.review-links li::before { content: '→ '; font-family: 'SexPistols', cursive; }

/* ── FORM ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-family: 'SexPistols', cursive; font-size: 1rem; margin-bottom: 6px; }
input, textarea { width: 100%; background: #fffdf5; border: 2px solid var(--black); color: var(--black); font-family: 'Lato', sans-serif; font-size: 1rem; padding: 12px 14px; outline: none; transition: box-shadow 0.2s; }
input:focus, textarea:focus { box-shadow: 3px 3px 0 var(--yellow); }
textarea { resize: vertical; min-height: 140px; }
.btn-send { margin-top: 28px; display: inline-block; background: var(--yellow); border: 3px solid var(--black); color: var(--black); font-family: 'SexPistols', cursive; font-size: 1.3rem; padding: 12px 48px; cursor: pointer; box-shadow: 4px 4px 0 var(--black); transition: background 0.2s, transform 0.15s, box-shadow 0.15s; }
.btn-send:hover { background: var(--pink); transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--black); }
.btn-send:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--black); }
.form-success { display: none; margin-top: 20px; font-family: 'SexPistols', cursive; font-size: 1.2rem; color: var(--pink); }

/* ── FOOTER ── */
footer { border-top: 3px solid var(--black); padding: 24px 40px; display: flex; align-items: center; justify-content: center; gap: 20px; }
.social-link { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 2px solid var(--black); box-shadow: 3px 3px 0 var(--black); text-decoration: none; background: var(--white); transition: background 0.2s, transform 0.15s, box-shadow 0.15s; }
.social-link:hover { background: var(--yellow); transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--black); }
.social-link img { width: 24px; height: 24px; object-fit: contain; }

/* ── MOBILE ── */
@media (max-width: 800px) {
  nav { padding: 0 20px; height: 90px; --nav-h: 90px; }
  .nav-logo img { height: 120px; }
  .nav-links { display: none; position: absolute; top: 90px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 20px; gap: 8px; border-bottom: 3px solid var(--black); z-index: 200; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .video-section { padding: 0 16px; margin-top: 24px; }
  .hero-svg, .hero-svg.wide { max-width: 100%; padding: 0 16px; }
  .page-body { padding: 24px 20px 60px; }
  .books-grid { padding: 0 16px; gap: 24px; }
  .book-cover { max-width: 100%; }
  .book-cover img { height: 320px; }
  .form-grid { grid-template-columns: 1fr; }
  footer { padding: 20px; gap: 14px; }
}
