/* ============================================================
   Play Online — style.css
   CSS comune: variabili, font, reset, nav, footer, classi condivise
   ============================================================ */

/* ── FONT FACE ── */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/outfit-v15-latin-300.woff2') format('woff2');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/outfit-v15-latin-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/outfit-v15-latin-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/outfit-v15-latin-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/outfit-v15-latin-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/lora-v37-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/lora-v37-latin-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/lora-v37-latin-600.woff2') format('woff2');
}

/* ── VARIABILI ── */
:root {
  --blu:       #1a3d6b;
  --blu-mid:   #2860a8;
  --verde:     #3d8c2f;
  --rosso:     #c0392b;
  --grigio-bg: #f4f6f9;
  --grigio-ln: #e2e8f0;
  --testo:     #1a1a2e;
  --testo-soft:#4a5568;
  --bianco:    #ffffff;
  --nav-h:     72px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  color: var(--testo);
  background: var(--bianco);
  line-height: 1.7;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--bianco);
  border-bottom: 2px solid var(--grigio-ln);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}

.nav-logo img { height: 48px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--testo-soft);
  font-size: 15px;
  font-weight: 500;
  transition: color .2s;
}

.nav-links a:hover { color: var(--blu); }
.nav-links a.active { color: var(--blu); font-weight: 600; }

.nav-cta {
  background: var(--blu);
  color: var(--bianco) !important;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background .2s !important;
}

.nav-cta:hover { background: var(--blu-mid) !important; color: var(--bianco) !important; }

/* ── PAGE HEADER (pagine interne) ── */
.page-header {
  margin-top: var(--nav-h);
  background: linear-gradient(135deg, var(--blu) 0%, #0f2544 100%);
  padding: 56px 40px;
  text-align: center;
}

.page-header .label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 12px;
}

.page-header h1 {
  font-family: 'Lora', serif;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 600;
  color: var(--bianco);
  line-height: 1.3;
  margin-bottom: 16px;
}

.page-header p {
  font-size: 17px;
  color: rgba(255,255,255,.75);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── CLASSI COMUNI ── */
.container { max-width: 1100px; margin: 0 auto; }

section { padding: 80px 40px; }

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--verde);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Lora', serif;
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 600;
  color: var(--blu);
  line-height: 1.3;
  margin-bottom: 20px;
}

.section-text {
  font-size: 16px;
  color: var(--testo-soft);
  line-height: 1.85;
  margin-bottom: 20px;
}

.accent-line {
  width: 48px;
  height: 4px;
  background: var(--verde);
  border-radius: 2px;
  margin-bottom: 28px;
}

/* ── BOTTONI ── */
.btn-primary {
  background: var(--verde);
  color: var(--bianco);
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  transition: background .2s, transform .15s;
  display: inline-block;
}

.btn-primary:hover { background: #2d6d22; transform: translateY(-1px); }

.btn-secondary {
  border: 2px solid rgba(255,255,255,.4);
  color: var(--bianco);
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  transition: border-color .2s, background .2s;
  display: inline-block;
}

.btn-secondary:hover { border-color: rgba(255,255,255,.8); background: rgba(255,255,255,.08); }

.btn-verde {
  background: var(--verde);
  color: var(--bianco);
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  display: inline-block;
  transition: background .2s, transform .15s;
}

.btn-verde:hover { background: #2d6d22; transform: translateY(-1px); }

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blu);
  color: var(--bianco);
  text-decoration: none;
  padding: 16px 36px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  transition: background .2s, transform .15s;
}

.cta-btn:hover { background: var(--blu-mid); transform: translateY(-1px); }

.link-scopri {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blu);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  margin-top: 28px;
  transition: gap .2s;
}

.link-scopri:hover { gap: 12px; }
.link-scopri::after { content: '→'; }

/* ── PILLS ── */
.zone-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pill {
  background: var(--grigio-bg);
  border: 1px solid var(--grigio-ln);
  color: var(--blu);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 20px;
}

/* ── FOOTER ── */
footer {
  background: #0d1f3c;
  color: rgba(255,255,255,.6);
  padding: 40px;
  text-align: center;
}

footer .footer-logo img {
  height: 36px;
  width: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
  opacity: .7;
}

footer p { font-size: 14px; line-height: 1.8; }
footer a { color: rgba(255,255,255,.5); text-decoration: none; }
footer a:hover { color: rgba(255,255,255,.9); }

/* ── COOKIE BANNER ── */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #0d1f3c;
  border-top: 2px solid var(--blu-mid);
  z-index: 9999;
  padding: 20px 40px;
  display: none;
}

#cookie-banner.visible { display: block; }

#cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

#cookie-inner p {
  font-size: 14px;
  color: rgba(255,255,255,.75);
  line-height: 1.6;
  flex: 1;
}

#cookie-inner a { color: rgba(255,255,255,.9); text-decoration: underline; }

#cookie-btn { display: flex; gap: 12px; flex-shrink: 0; }

#cookie-accetta {
  background: var(--verde);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}

#cookie-accetta:hover { background: #2d6d22; }

#cookie-rifiuta {
  background: transparent;
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.3);
  padding: 10px 24px;
  border-radius: 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}

#cookie-rifiuta:hover { border-color: rgba(255,255,255,.7); color: #fff; }

/* ── HAMBURGER MENU MOBILE ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blu);
  border-radius: 2px;
  transition: all .3s;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--bianco);
  border-bottom: 2px solid var(--grigio-ln);
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  z-index: 999;
  padding: 16px 0;
}

.nav-mobile.open { display: block; }

.nav-mobile a {
  display: block;
  padding: 14px 40px;
  text-decoration: none;
  color: var(--testo-soft);
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--grigio-ln);
  transition: color .2s, background .2s;
}

.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--blu); background: var(--grigio-bg); }

.nav-mobile a.nav-cta {
  margin: 16px 40px 8px;
  padding: 12px 24px;
  border-radius: 6px;
  text-align: center;
  border-bottom: none;
  background: var(--blu);
  color: var(--bianco) !important;
}

.nav-mobile a.nav-cta:hover { background: var(--blu-mid); }

/* ── RESPONSIVE COMUNE ── */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  section { padding: 56px 20px; }
  .page-header { padding: 48px 20px; }
}
