@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Crimson+Pro:ital,wght@0,400;0,600;1,400;1,600&family=Space+Mono:wght@400;700&display=swap');

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

:root {
  --bg:      #09090b;
  --bg2:     #111215;
  --bg3:     #1a1c20;
  --gold:    #FEE90D;
  --gold2:   #e0cc00;
  --rust:    #a83d22;
  --text:    #ddd8cf;
  --muted:   #6b6560;
  --line:    #222018;
  --white:   #f4efe6;
  --font-display: 'Bebas Neue', Impact, sans-serif;
  --font-body:    'Crimson Pro', Georgia, serif;
  --font-mono:    'Space Mono', monospace;
}

html { scroll-behavior: smooth; overflow-x: clip; }
body { padding-top: 0; overflow-x: hidden; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--white); }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ─── GRAIN OVERLAY ─── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 9998;
}

/* ─── NAV SPACER ─── */
#safe-area-spacer {
  background: #09090b;
  width: 100%;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 0.8rem 12px;
  gap: 12px;
}
#safe-area-spacer img { height: 90px; width: auto; object-fit: contain; }
#safe-area-spacer ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 0; padding: 0; }
#safe-area-spacer ul a {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  text-decoration: none;
  padding: 0.3rem 0.42rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid transparent;
  border-radius: 4px;
  position: relative;
  transition: background 0.2s, border-color 0.2s;
  display: inline-block;
}
#safe-area-spacer ul a:hover,
#safe-area-spacer ul a.active {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.1);
  color: var(--white);
}
#safe-area-spacer ul a.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0.55rem; right: 0.55rem;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}
body { padding-top: 168px; }

@media (min-width: 768px) {
  #safe-area-spacer {
    flex-direction: row;
    justify-content: space-between;
    padding: 0 2rem;
    height: 80px;
    gap: 0;
  }
  #safe-area-spacer img { height: 60px; }
  #safe-area-spacer ul { flex-wrap: nowrap; gap: 0.5rem; }
  #safe-area-spacer ul a { font-size: 0.95rem; padding: 0.65rem 1rem; letter-spacing: 0.08em; }
  body { padding-top: 80px; }
}

@media (max-width: 767px) and (orientation: landscape) {
  #safe-area-spacer {
    flex-direction: row;
    justify-content: space-between;
    padding: 0 1rem;
    height: 56px;
    gap: 0;
  }
  #safe-area-spacer img { height: 42px; }
  #safe-area-spacer ul { flex-wrap: nowrap; gap: 0.2rem; }
  #safe-area-spacer ul a { font-size: 0.65rem; padding: 0.25rem 0.4rem; }
  body { padding-top: 56px; }
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg);
}

.hero-bg {
  display: none;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(9,9,11,0.3) 40%,
    rgba(9,9,11,0.85) 70%,
    var(--bg) 100%
  );
}

.hero-logo-deco {
  position: absolute;
  right: 12%;
  top: 43%;
  transform: translateY(-50%);
  width: clamp(180px, 18vw, 270px);
  height: auto;
  opacity: 1;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 0 40px rgba(255,255,255,0.15));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2.5rem 6rem;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-eyebrow::before { display: none; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 12vw, 11rem);
  line-height: 0.88;
  letter-spacing: 0.01em;
  color: var(--white);
  margin-bottom: 2rem;
}

.hero-title span {
  display: block;
  color: var(--gold);
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  border: 1px solid var(--gold);
  padding: 0.85rem 2rem;
  transition: background 0.3s, color 0.3s;
}

.hero-cta:hover {
  background: var(--gold);
  color: var(--bg);
}

/* ─── SECTION BASE ─── */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 2.5rem;
}

.section-rule {
  width: 100%;
  height: 1px;
  background: var(--line);
  border: none;
}

.section-header {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.section-num {
  font-family: var(--font-display);
  font-size: 7rem;
  line-height: 1;
  color: #3a3830;
  letter-spacing: 0;
  user-select: none;
  flex-shrink: 0;
  margin-top: -1rem;
}

.section-title-wrap {}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--white);
  line-height: 0.95;
  letter-spacing: 0.02em;
}

/* ─── FILOSOFIA / CONTENT ─── */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.content-left {
  display: flex;
  flex-direction: column;
}

.content-img {
  position: relative;
}

.content-img img {
  width: 100%;
  max-width: 170px;
  height: auto;
  display: block;
}

.cr-logo {
  width: 93%;
  max-width: none;
  height: auto;
  display: block;
  margin-top: 0.75rem;
  margin-left: auto;
  margin-right: auto;
}

.content-img::after {
  content: '';
  position: absolute;
  inset: -12px -12px 12px 12px;
  border: 1px solid var(--gold2);
  opacity: 0.4;
  z-index: -1;
}

.content-body p {
  color: var(--text);
  margin-bottom: 1.25rem;
}


.content-body p:last-child { margin-bottom: 0; }

.pull-quote {
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold);
  border-left: 2px solid var(--gold);
  padding: 1rem 0 1rem 1.5rem;
  margin: 2rem 0;
  line-height: 1.5;
}

/* ─── SILURO INFO ─── */
.siluro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--bg);
  margin-top: 3rem;
}

.siluro-stat {
  background: var(--bg2);
  padding: 2rem 1.75rem;
}

.siluro-stat-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.siluro-stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--white);
  letter-spacing: 0.02em;
}

.siluro-body {
  column-count: 2;
  column-gap: 4rem;
  column-rule: 1px solid var(--line);
  margin-top: 3rem;
}

.siluro-body p { margin-bottom: 1.2rem; break-inside: avoid; }
.siluro-intro {
  column-span: all;
  font-size: 1.05rem;
  color: var(--text-muted, #aaa);
  font-style: italic;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.siluro-section-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
  break-after: avoid;
}

/* ─── TEAM ─── */
.team-intro {
  max-width: 640px;
  font-style: italic;
  color: var(--muted);
  font-size: 1.2rem;
  margin-bottom: 3rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5px;
  background: var(--bg);
}

.team-card {
  background: var(--bg2);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
  transition: background 0.25s;
}

.team-card:hover { background: var(--bg3); }

.team-card-photo {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--bg3);
  border-radius: 2px;
}

.team-card-photo img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(20%);
  transition: filter 0.3s;
}

.team-card:hover .team-card-photo img {
  filter: grayscale(0%);
}

.team-card-photo-placeholder {
  width: 72px;
  height: 72px;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--bg3);
}

.team-card-photo-placeholder span {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold2);
  opacity: 0.5;
}

.team-card-info { flex: 1; }

.team-card-nick {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--white);
  letter-spacing: 0.03em;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.team-card-name {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.team-card-role {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--gold);
}

/* ─── GALLERY ─── */
.gallery-intro {
  max-width: 540px;
  font-style: italic;
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.gallery {
  columns: 4 220px;
  column-gap: 4px;
  gap: 4px;
}

.gallery-item {
  break-inside: avoid;
  display: block;
  position: relative;
  overflow: hidden;
  margin-bottom: 4px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease, filter 0.3s;
  filter: brightness(0.88);
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9,9,11,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay-icon {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
}

/* ─── LIGHTBOX ─── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(9,9,11,0.97);
  align-items: center;
  justify-content: center;
}

.lightbox.active { display: flex; }

.lightbox-content {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 92vh;
  object-fit: contain;
  display: block;
}

.lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  font-size: 1.5rem;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font-mono);
  transition: color 0.2s;
  line-height: 1;
}

.lightbox-close:hover { color: var(--white); }

.lightbox-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(9,9,11,0.7);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 1.2rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  font-family: var(--font-mono);
  line-height: 1;
  user-select: none;
}

.lightbox-btn:hover { color: var(--white); border-color: var(--gold); }

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* ─── VIDEO ─── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  background: var(--bg);
}

.video-item {
  background: var(--bg2);
  display: flex;
  flex-direction: column;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-title {
  padding: 0.9rem 1.25rem;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* ─── HERO SECTION (sub-pages) ─── */
.page-hero {
  padding: 5rem 2.5rem 3rem;
  max-width: 1280px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  color: var(--white);
  line-height: 0.9;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.page-hero-sub {
  font-style: italic;
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 500px;
}

/* ─── COOKIE BANNER ─── */
#cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: var(--bg2);
  border: 1px solid rgba(245,216,0,0.3);
  border-radius: 4px;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 680px;
  width: calc(100% - 3rem);
  box-shadow: 0 4px 32px rgba(0,0,0,0.6);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

#cookie-banner a {
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
}

#cookie-banner a:hover { color: var(--white); }

#cookie-accept {
  flex-shrink: 0;
  background: var(--gold);
  color: var(--bg);
  border: none;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity 0.2s;
}

#cookie-accept:hover { opacity: 0.8; }

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--line);
  margin-top: 6rem;
  padding: 3rem 2.5rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-center {
  text-align: center;
}

.footer-side-logo {
  width: 100px;
  height: auto;
  opacity: 0.55;
}

.footer-logo {
  width: 160px;
  height: auto;
  display: block;
  margin: 0 auto -2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: 0.05em;
}

.footer-tagline {
  font-style: italic;
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.footer-contact {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-decoration: none;
  text-transform: uppercase;
}

.footer-contact:hover { color: var(--white); }

.footer-cr {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  max-width: 1280px;
  margin: 2rem auto 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-cr span { color: var(--muted); }

/* ─── RESPONSIVE ─── */
/* ── TABLET (768–1024px) ── */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero { min-height: 65dvh; }
  .hero-logo-deco { display: none; }
.content-grid { grid-template-columns: 1fr; gap: 3rem; }
  .siluro-body { column-count: 1; }
  .siluro-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery { columns: 3 160px; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── MOBILE (≤767px) ── */
@media (max-width: 767px) {
.hero { min-height: auto; align-items: flex-start; padding-top: 2rem; }
  .hero-logo-deco { display: none; }
.hero-content { padding: 0 1.25rem 3.5rem; text-align: center; }
  .hero-eyebrow { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-title { font-size: clamp(3rem, 15vw, 6rem); }
  .section { padding: 3.5rem 1.25rem; }
  .section-header { flex-direction: column; align-items: center; text-align: center; gap: 0.5rem; }
  .section-num { font-size: 4rem; }
  .section-title-wrap { text-align: center; }
  .content-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .content-img { text-align: center; }
  .content-img img { margin: 0 auto; }
  .content-img::after { display: none; }
  .cr-logo { margin-left: auto; margin-right: auto; }
  .siluro-body { column-count: 1; }
  .siluro-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { columns: 2 140px; }
  .video-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 2rem 1.25rem 2rem; }
  .footer-inner { flex-direction: column; align-items: center; gap: 1rem; }
  .footer-center { text-align: center; }
  .footer-side-logo { display: none; }
  .footer-cr { flex-direction: column; align-items: center; gap: 0.5rem; }
}

/* ── MOBILE PICCOLO (≤390px — iPhone SE, mini) ── */
@media (max-width: 390px) {
  .hero { padding-top: 2rem; }
.siluro-grid { grid-template-columns: 1fr; }
}
