/* ════════════════════════════════════════════════════
   E-MIKE ANTINFORTUNISTICA — Shared Stylesheet
   Light theme · Green accent · Industrial clean
   ════════════════════════════════════════════════════ */

@font-face {
  font-family: "Bebas Neue";
  src: url("fonts/BebasNeue-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/DMSans-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/DMSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/DMSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inversionz";
  src: url("fonts/Inversionz.ttf") format("truetype");
  font-display: swap;
}

/* ── Variables ── */
:root {
  --bg:        #f8f7f5;
  --bg-2:      #f0eeea;
  --surface:   #ffffff;
  --border:    rgba(0,0,0,0.08);
  --border-2:  rgba(0,0,0,0.14);
  --accent:    #16a34a;
  --accent-dark: #15803d;
  --accent-dim: rgba(22,163,74,0.1);
  --text:      #1a1a1a;
  --muted:     #6b7280;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --max-w:     1600px;
  --shadow:    0 2px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ── Topbar ── */
#topbar {
  background: var(--text);
  color: rgba(255,255,255,0.65);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 7px 6vw;
}

#topbar a {
  color: rgba(255,255,255,0.65);
  transition: color .2s;
}

#topbar a:hover { color: var(--accent); }

#topbar strong {
  color: #fff;
  font-weight: 600;
}

/* ── Navigation ── */
#nav {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 2rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav-logo span { color: var(--accent); }


.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: color .2s;
  position: relative;
  padding-bottom: 2px;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .3s var(--ease);
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Hamburger mobile */
#nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
}
#nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  transition: transform .3s, opacity .3s;
}

/* ── Page header ── */
.page-header {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 6vw 48px;
  border-bottom: 1px solid var(--border);
}

.page-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--text);
}

.page-subtitle {
  margin-top: 16px;
  font-size: 1rem;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.7;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  padding: 12px 24px;
  border-radius: 6px;
  transition: background .25s, transform .25s, box-shadow .25s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(22,163,74,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* ── Section header ── */
.section-header {
  max-width: var(--max-w);
  margin: 0 auto 40px;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: var(--text);
}

.section-desc {
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted);
  max-width: 640px;
  line-height: 1.7;
}

/* ── Divider ── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ── Footer ── */
#footer {
  margin-top: auto;
  background: #1a1a1a;
  color: #a0a0a0;
  padding: 40px 6vw;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 8px;
}

.footer-brand span { color: var(--accent); }

.footer-info {
  font-size: 13px;
  line-height: 1.8;
}

.footer-info a {
  color: #a0a0a0;
  transition: color .2s;
}
.footer-info a:hover { color: var(--accent); }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
}

.footer-links a {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: #a0a0a0;
  transition: color .2s;
}
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 24px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #666;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom a {
  color: #666;
  transition: color .2s;
}
.footer-bottom a:hover { color: var(--accent); }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim { opacity: 0; }
.anim.visible { animation: fadeUp 1.1s var(--ease) forwards; }

.scroll-scale {
  opacity: 0;
  transform: scale(0.97) translateY(24px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.scroll-scale.scaled-in {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.stagger-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.stagger-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  #nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    padding: 8px 0;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 14px 6vw;
    width: 100%;
    font-size: 1.2rem;
  }

  .nav-links a::after { display: none; }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    text-align: left;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }
}

@media (min-width: 2000px) {
  .page-title { font-size: clamp(6rem, 5vw, 8rem); }
  .section-title { font-size: clamp(3.5rem, 3vw, 5rem); }
  .section-header { padding: 0 20px; }
}

/* ── Placeholder immagini mancanti ── */
.foto-placeholder {
  width: 100%;
  height: 100%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9ca3af;
}

/* ── Cookie banner ── */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--text);
  color: #fff;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.18);
}

#cookie-banner.visible { transform: translateY(0); }

.cookie-banner-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 6vw;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.cookie-banner-text { flex: 1; min-width: 240px; }

.cookie-banner-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.cookie-banner-text p {
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
  margin: 0;
}

.cookie-banner-text a { color: var(--accent); text-decoration: none; }
.cookie-banner-text a:hover { text-decoration: underline; }

.cookie-banner-btns { display: flex; gap: 10px; flex-shrink: 0; }

.cookie-btn-accept,
.cookie-btn-reject {
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}

.cookie-btn-accept {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.cookie-btn-accept:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.cookie-btn-reject {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.35);
}
.cookie-btn-reject:hover { border-color: rgba(255,255,255,0.7); color: #fff; }

/* ── Cookie wall (placeholder per iframe bloccati) ── */
.cookie-wall {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px 24px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.cookie-wall p { margin-bottom: 16px; }

.cookie-wall-btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.cookie-wall-btn:hover { background: var(--accent-dark); }
