/* ═══════════════════════════════════════════════════════════════
   Gianluca Pierannunzi — Personal Website
   © 2026 — v2 (Multi-pagina, repositioning)
   ═══════════════════════════════════════════════════════════════ */

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

/* ── VARIABLES ─────────────────────────────────────────────── */
:root {
  --black:        #0d0d0d;
  --bg:           #faf8f6;
  --bg-alt:       #f2efe9;
  --gold:         #c49b3c;
  --gold-light:   #dbb86a;
  --gold-dim:     rgba(196, 155, 60, 0.08);
  --white:        #ffffff;
  --text:         #2a2824;
  --text-light:   #6e6860;
  --text-dim:     #9e9890;
  --font:         'Sora', 'Inter', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Archivo', 'Sora', 'Inter', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --max-width:    1120px;
  --nav-h:        64px;
  --radius:       12px;
  --shadow:       0 2px 20px rgba(0,0,0,0.04);
}

/* ── BASE ──────────────────────────────────────────────────── */
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--gold); color: #fff; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: inherit; text-decoration: none; transition: all 0.25s ease; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── COOKIE BANNER ─────────────────────────────────────────── */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--white);
  color: var(--text);
  padding: 14px 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.875rem;
  border-top: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 -2px 20px rgba(0,0,0,0.04);
}
#cookie-banner a { color: var(--gold); text-decoration: underline; }
#cookie-banner button {
  background: var(--gold);
  color: var(--black);
  border: none;
  padding: 8px 22px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.2s;
}
#cookie-banner button:hover { background: var(--gold-light); }

/* ── NAVIGATION ────────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(250, 248, 246, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo a {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--black);
}
.nav-logo a span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  border-radius: 6px;
  transition: all 0.2s;
}

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

/* Hamburger */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 32px; height: 24px;
  position: relative;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  position: absolute;
  height: 2px;
  width: 24px;
  background: var(--black);
  left: 4px;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle span:nth-child(1) { top: 4px; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 18px; }

/* Hamburger → X */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--gold);
}
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--gold);
}

/* ── HERO ──────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(196,155,60,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 20%, rgba(196,155,60,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
  padding: 0 24px;
}

.hero-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--gold);
  margin-bottom: 24px;
  font-weight: 600;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 9vw, 5.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 20px;
  letter-spacing: 3px;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-light);
  margin-bottom: 40px;
  line-height: 1.5;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 50px;
  transition: all 0.3s;
  background: transparent;
  cursor: pointer;
  font-family: var(--font);
}
.btn:hover {
  background: var(--gold);
  color: var(--black);
}

.btn--ghost {
  border-color: rgba(0,0,0,0.15);
  color: var(--text-light);
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: transparent;
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-dim);
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.35;
  animation: float 2.5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── HOME PILLARS ──────────────────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 0;
}

.pillar {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

.pillar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.3s;
}

.pillar:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.06);
}
.pillar:hover::before { opacity: 1; }

.pillar-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--black);
  margin-bottom: 10px;
  font-weight: 600;
}

.pillar p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 16px;
}

.pillar-link {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pillar-link:hover { color: var(--gold-light); }

/* ── SECTIONS (general) ────────────────────────────────────── */
.page {
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 80px;
  min-height: 60vh;
}

.section {
  padding: 80px 0;
}

.section--alt { background: var(--bg-alt); }
.section--white { background: var(--white); }

/* Thin separator between sections */
.section-divider {
  width: 40px;
  height: 1px;
  background: rgba(0,0,0,0.08);
  margin: 0 auto;
}

.section-header {
  margin-bottom: 48px;
}

.section-header--center {
  text-align: center;
}

.section-header::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
  margin-top: 16px;
  opacity: 0.4;
}

.section-header--center::after {
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: 400;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--black);
  line-height: 1.15;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-top: 12px;
  max-width: 600px;
}

.section-header--center .section-sub { margin-left: auto; margin-right: auto; }

/* ── BIO / SPLIT LAYOUT ────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split-text p {
  margin-bottom: 18px;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.75;
}

.split-text strong { color: var(--black); }

.split-text blockquote {
  border-left: 2px solid var(--gold);
  padding-left: 24px;
  margin: 24px 0;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ── IMAGES ────────────────────────────────────────────────── */
.img-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.5s;
}

.img-frame--tone {
  filter: saturate(0.85) contrast(1.05) brightness(0.98);
}

.img-frame--warm {
  filter: sepia(0.12) saturate(1.1) brightness(1.02);
}

.img-frame--dramatic {
  filter: contrast(1.08) brightness(0.95) saturate(0.9);
}

.img-frame--square {
  aspect-ratio: 1/1;
}

.img-frame--portrait {
  aspect-ratio: 3/4;
}

.img-frame--landscape {
  aspect-ratio: 16/10;
}

.img-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--bg-alt);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.9rem;
  border: 1px dashed rgba(0,0,0,0.1);
}
.img-placeholder span { font-size: 2.5rem; }

/* ── PAGE HEADER ───────────────────────────────────────────── */
.page-header {
  padding: 60px 0 40px;
  text-align: center;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--black);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.page-header p {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
}

/* ── CONTENT GRID ──────────────────────────────────────────── */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.content-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}
.content-card:hover { transform: translateY(-2px); }

.content-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--black);
  margin-bottom: 12px;
  font-weight: 600;
}

.content-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.55;
}

.content-card .card-media {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}

.content-card .card-media img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

/* ── FULL WIDTH TEXT ────────────────────────────────────────── */
.text-block {
  max-width: 720px;
  margin: 0 auto 40px;
}

.text-block p {
  margin-bottom: 18px;
  font-size: 1.02rem;
  color: var(--text);
  line-height: 1.75;
}

.text-block h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--black);
  margin: 40px 0 16px;
  font-weight: 700;
}

.text-block h2:first-child { margin-top: 0; }

/* ── CONTACT PAGE ──────────────────────────────────────────── */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.contact-item:hover { transform: translateX(4px); }

.contact-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.contact-item .label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  margin-bottom: 2px;
}

.contact-item .value {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

.contact-item a.value { color: var(--gold); cursor: pointer; }
.contact-item a.value:hover { color: var(--gold-light); }

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-side .note {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.contact-side .note h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--black);
  margin-bottom: 12px;
}

.contact-side .note p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ── SOCIAL GRID ───────────────────────────────────────────── */
.social-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.social-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text);
  transition: all 0.2s;
}

.social-links a:hover {
  background: var(--gold-dim);
  color: var(--gold);
}

.social-links .emoji { font-size: 1.2rem; }

/* ── FOOTER ────────────────────────────────────────────────── */
footer {
  padding: 40px 0 80px;
  border-top: 1px solid rgba(0,0,0,0.05);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

footer a { color: var(--gold); text-decoration: underline; }
footer .footer-links { display: flex; gap: 16px; }
footer .footer-links a { text-decoration: none; }
footer .footer-links a:hover { color: var(--gold-light); }

/* ── BREADCRUMB ────────────────────────────────────────────── */
.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.breadcrumb a {
  color: var(--text-dim);
  text-decoration: underline;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { margin: 0 6px; }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-image { order: -1; max-width: 400px; margin: 0 auto; }

  .pillars { grid-template-columns: 1fr; max-width: 450px; margin: 0 auto; }

  .content-grid { grid-template-columns: 1fr; }

  .contact-wrapper { grid-template-columns: 1fr; }

  .social-links { grid-template-columns: 1fr; }

  .page-header { padding: 40px 0 32px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(250, 248, 246, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 12px 24px;
    gap: 2px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 12px 16px;
    font-size: 1rem;
  }

  .section { padding: 48px 0; }

  .hero-content h1 { font-size: clamp(2rem, 10vw, 2.8rem); }
  .hero-tagline { font-size: 1rem; }

  .btn { padding: 10px 24px; font-size: 0.8rem; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.8rem; }
  .hero-label { font-size: 0.65rem; letter-spacing: 3px; }
}