/* ============================================================
   BASE — reset, tokens, tipografia condivisa, header, footer
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overscroll-behavior: none; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

/* TrashHand — Special Glue script font (used under the SG logo). */
@font-face {
  font-family: "TrashHand";
  src: url("../fonts/TrashHand.TTF") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

/* GT Super Display — House of Special primary display serif. */
@font-face {
  font-family: "GT Super Display";
  src: url("../fonts/GTSuperDisplay-Light.otf") format("opentype");
  font-weight: 300; font-style: normal; font-display: block;
}
@font-face {
  font-family: "GT Super Display";
  src: url("../fonts/GTSuperDisplay-LightItalic.otf") format("opentype");
  font-weight: 300; font-style: italic; font-display: block;
}
@font-face {
  font-family: "GT Super Display";
  src: url("../fonts/GTSuperDisplay-Regular.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: block;
}
@font-face {
  font-family: "GT Super Display";
  src: url("../fonts/GTSuperDisplay-RegularItalic.otf") format("opentype");
  font-weight: 400; font-style: italic; font-display: block;
}
@font-face {
  font-family: "GT Super Display";
  src: url("../fonts/GTSuperDisplay-Medium.otf") format("opentype");
  font-weight: 500; font-style: normal; font-display: block;
}
@font-face {
  font-family: "GT Super Display";
  src: url("../fonts/GTSuperDisplay-MediumItalic.otf") format("opentype");
  font-weight: 500; font-style: italic; font-display: block;
}
@font-face {
  font-family: "GT Super Display";
  src: url("../fonts/GTSuperDisplay-Bold.otf") format("opentype");
  font-weight: 700; font-style: normal; font-display: block;
}
@font-face {
  font-family: "GT Super Display";
  src: url("../fonts/GTSuperDisplay-BoldItalic.otf") format("opentype");
  font-weight: 700; font-style: italic; font-display: block;
}
@font-face {
  font-family: "GT Super Display";
  src: url("../fonts/GTSuperDisplay-Super.otf") format("opentype");
  font-weight: 900; font-style: normal; font-display: block;
}
@font-face {
  font-family: "GT Super Display";
  src: url("../fonts/GTSuperDisplay-SuperItalic.otf") format("opentype");
  font-weight: 900; font-style: italic; font-display: block;
}

:root {
  --font-sans-cond: "Barlow Condensed", "Oswald", Impact, sans-serif;
  --font-brush:     "TrashHand", "Permanent Marker", "Caveat Brush", cursive;
  --font-marker:    "Caveat Brush", "Permanent Marker", cursive;
  --font-serif:     "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-display:   "GT Super Display", "Cormorant Garamond", Georgia, serif;
  --font-avenir:    "Avenir Next", "Avenir", -apple-system, "Segoe UI", "Roboto", system-ui, sans-serif;
  --font-body:      "Barlow", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Special Glue palette */
  --c-sg-red:    #EB0045;
  --c-sg-cyan:   #00B8FF;
  --c-sg-pink:   #EB0045;
  --c-sg-yellow: #FFD700;
  --c-sg-black:  #000000;

  --header-h: 64px;

  /* House of Special palette */
  --c-hos-petrol: #354958;
  --c-hos-petrol-deep: #1F2D38;
  --c-hos-ivory:  #E4DDD0;
  --c-hos-cream:  #E4DDD0;
  --c-hos-sage:   #7F8A74;
  --c-hos-dark:   #2E2E2E;

  --c-white: #ffffff;
  --c-black: #000000;

  --maxw: 1280px;
  --pad-x: clamp(24px, 5vw, 100px);
}

body {
  font-family: var(--font-body);
  color: var(--c-black);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* -------- Header (struttura comune, varianti in sg.css / hos.css) -------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad-x);
  font-family: var(--font-body);
  font-size: 14px;
}

.site-header .brand {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
  white-space: nowrap;
  font-size: 18px;
}
.site-header .brand .b-sans  { font-family: var(--font-sans-cond); letter-spacing: .02em; }
.site-header .brand .b-sep   { opacity: .6; }
.site-header .brand .b-serif { font-family: var(--font-serif); font-style: italic; }

.nav { display: flex; gap: clamp(14px, 2.4vw, 40px); align-items: center; }
.nav a { font-size: 14px; letter-spacing: .01em; transition: opacity .2s; }
.nav a:hover { opacity: .6; }

/* Social icons inside the nav */
.nav-social {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: clamp(8px, 1.6vw, 20px);
  padding-left: clamp(10px, 1.6vw, 20px);
  border-left: 1px solid currentColor;
  border-left-color: rgba(255,255,255,.35);
}
.site-header .nav .nav-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 14px;
  padding: 0;
  color: #fff;
  opacity: .95;
  transition: opacity .2s ease, transform .2s ease;
  flex: 0 0 auto;
}
.site-header .nav .nav-social a:hover { opacity: 1; transform: translateY(-1px); }
.site-header .nav .nav-social svg {
  width: auto;
  height: 14px;
  display: block;
  fill: #fff;
}
/* YouTube logo is visually heavier — scale it down a touch */
.site-header .nav .nav-social a[aria-label="YouTube"] { height: 11px; }
.site-header .nav .nav-social a[aria-label="YouTube"] svg { height: 11px; }

/* Language switch */
.nav-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: clamp(8px, 1.4vw, 18px);
  padding-left: clamp(10px, 1.6vw, 20px);
  border-left: 1px solid rgba(255,255,255,.35);
  font-size: 13px;
  letter-spacing: .04em;
}
.nav-lang__btn {
  padding: 2px 2px;
  font: inherit;
  color: inherit;
  opacity: .55;
  transition: opacity .2s ease;
  text-transform: uppercase;
}
.nav-lang__btn:hover { opacity: .85; }
.nav-lang__btn.is-active { opacity: 1; font-weight: 700; }
.nav-lang__sep { opacity: .45; }

.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 6px; right: 6px; height: 2px; background: currentColor;
  transition: transform .25s, opacity .25s, top .25s;
}
.nav-toggle span:nth-child(1) { top: 11px; }
.nav-toggle span:nth-child(2) { top: 17px; }
.nav-toggle span:nth-child(3) { top: 23px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 17px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 17px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%; right: 0; left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px var(--pad-x) 14px;
    background: inherit;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; width: 100%; }

  /* Righe social e lingua: stessa altezza, contenuto centrato tra le linee */
  .nav-social,
  .nav-lang {
    width: 100%;
    margin: 0;
    padding: 14px 0;
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.22);
  }
  .nav-social {
    align-items: center;
    gap: 22px;
    margin-top: 14px;
  }
  .nav-lang { justify-content: flex-start; }

  /* Icone un po' più grandi e con area di tap comoda su mobile.
     La larghezza fissa sull'ancora è necessaria: senza, l'<svg> (privo di
     attributo width) si espande al 100% del contenitore e spinge le altre
     icone fuori schermo. */
  .site-header .nav .nav-social a { width: 24px; height: 24px; }
  .site-header .nav .nav-social svg { width: 100%; height: 19px; }
  .site-header .nav .nav-social a[aria-label="YouTube"] { width: 24px; height: 24px; }
  .site-header .nav .nav-social a[aria-label="YouTube"] svg { height: 15px; }
}

/* -------- Footer condiviso -------- */
.site-footer {
  background: var(--c-black);
  color: var(--c-white);
  padding: 22px var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  letter-spacing: normal;
}
.site-footer .footer-mark {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
}
.site-footer .footer-link {
  color: inherit;
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  opacity: .85;
  transition: opacity .18s ease;
}
.site-footer .footer-link:hover { opacity: 1; }
.site-footer .footer-mark .strong { font-style: normal; font-weight: 600; letter-spacing: normal; }
@media (max-width: 600px) {
  .site-footer { flex-direction: column; text-align: center; }
}

/* -------- Privacy policy modal -------- */
html.is-pp-open, html.is-pp-open body { overflow: hidden; }

.pp-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.pp-modal[hidden] { display: none; }

.pp-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, .62);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .25s ease;
}
.pp-modal.is-open .pp-modal__backdrop { opacity: 1; }

.pp-modal__card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(680px, 100%);
  max-height: min(86vh, 820px);
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .42);
  opacity: 0;
  transform: translateY(16px) scale(.98);
  transition: opacity .28s ease, transform .28s cubic-bezier(.2, .8, .3, 1.1);
}
.pp-modal.is-open .pp-modal__card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.pp-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
  padding: 18px 22px;
  background: var(--c-sg-black);
  color: #fff;
}
.pp-modal__title {
  margin: 0;
  font-family: var(--font-sans-cond);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1;
}
.pp-modal__close {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .25s ease;
}
.pp-modal__close svg {
  display: block;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}
.pp-modal__close:hover {
  background: var(--c-sg-red);
  border-color: var(--c-sg-red);
  transform: rotate(90deg);
}
.pp-modal__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.pp-modal__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 26px 30px 32px;
  font-family: var(--font-body);
  color: #1c1c1c;
}
.pp-modal__body:focus { outline: none; }
.pp-modal__body p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.65;
}
.pp-modal__body h3 {
  margin: 30px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--c-sg-yellow);
  font-family: var(--font-sans-cond);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: 19px;
  line-height: 1.15;
  color: var(--c-sg-black);
}
.pp-modal__body h4 {
  margin: 22px 0 8px;
  font-family: var(--font-sans-cond);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .035em;
  font-size: 15px;
  color: var(--c-sg-red);
}
.pp-modal__body ol {
  margin: 0 0 14px;
  padding-left: 22px;
  list-style: decimal;
}
.pp-modal__body ol[type="a"] { list-style: lower-alpha; }
.pp-modal__body li {
  margin: 0 0 7px;
  padding-left: 4px;
  font-size: 15px;
  line-height: 1.6;
}
.pp-modal__body a {
  color: var(--c-sg-red);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pp-modal__sub { color: #5a5a5a; }
.pp-modal__updated {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid #e4e4e4;
  color: #777;
  font-size: 13px;
}

@media (max-width: 600px) {
  .pp-modal { padding: 0; }
  .pp-modal__card {
    width: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
  }
  .pp-modal__head { padding: 16px 18px; }
  .pp-modal__body { padding: 20px 18px 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .pp-modal__backdrop,
  .pp-modal__card,
  .pp-modal__close { transition: none; }
}

/* -------- Section utilities -------- */
.section {
  position: relative;
  padding: clamp(28px, 3vw, 50px) var(--pad-x) clamp(60px, 8vw, 130px);
  min-height: min(100vh, 1080px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.section--tall { min-height: 100vh; }
.section__label {
  display: block;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0;
  margin: 0 0 clamp(36px, 5vw, 64px);
}

/* -------- Container -------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* -------- Selection -------- */
::selection { background: var(--c-sg-red); color: #fff; }

/* -------- Scroll-reveal utility -------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1),
              transform .7s cubic-bezier(.2, .7, .2, 1);
  will-change: opacity, transform;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
