/* ============================================================
   girovagabondo.com — shared site styles
   ============================================================
   Extracted from the inline <style> block in index.html so the
   Palazzo front page and the Rituale sub-page share one system.

   Page-specific styling lives alongside this file:
     - /assets/rituale.css  (the Humidor sub-page)

   Anything in here is used by BOTH pages. If a rule only serves
   one page, it belongs in that page's own stylesheet.
   ============================================================ */

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

:root {
  --midnight: #0b0d14;
  --deep: #111421;
  --panel: #161926;
  --panel-warm: #1a1c28;
  --border: rgba(180, 145, 70, 0.18);
  --border-strong: rgba(201, 168, 76, 0.4);
  --gold: #c9a84c;
  --gold-light: #e8cc82;
  --gold-dim: rgba(201, 168, 76, 0.35);
  --cream: #f0e8d5;
  --muted: rgba(240, 232, 213, 0.55);
  --faint: rgba(240, 232, 213, 0.35);
  --torn-accent: #c0392b;
  --yoink-accent: #3a8c6e;
  --rituale-accent: #c2653c;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--midnight);
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Subtle film-grain overlay across the whole page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* Keyboard focus — visible without disturbing mouse users */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
}

.hero picture, .hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Bottom-left vignette so the headline reads against any image */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(11,13,20,0.92) 0%, rgba(11,13,20,0.55) 30%, rgba(11,13,20,0.15) 55%, transparent 75%),
    linear-gradient(to right, rgba(11,13,20,0.7) 0%, rgba(11,13,20,0.25) 35%, transparent 60%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4rem 5rem 5rem;
  z-index: 2;
  max-width: 900px;
}

.hero-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
  margin-bottom: 1.4rem;
  animation: fadeUp 1s 0.2s ease both;
}

.hero-headline {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--gold-light);
  text-shadow: 0 4px 30px rgba(0,0,0,0.6), 0 0 80px rgba(201,168,76,0.18);
  margin-bottom: 0.6rem;
  animation: fadeUp 1s 0.4s ease both;
}

.hero-subhead {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
  color: var(--cream);
  letter-spacing: 0.01em;
  margin-bottom: 1.6rem;
  animation: fadeUp 1s 0.6s ease both;
}

.hero-divider {
  width: 64px;
  height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
  margin: 0 0 1.4rem;
  animation: fadeUp 1s 0.7s ease both;
}

.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--muted);
  letter-spacing: 0.02em;
  animation: fadeUp 1s 0.85s ease both;
}

/* ============ SECTIONS ============ */
.section {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 2rem 5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--cream);
  letter-spacing: 0.01em;
  margin-bottom: 0.8rem;
}

.section-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  max-width: 540px;
  margin: 0 auto;
}

.section-referral {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.65;
  text-decoration: none;
  margin-top: 1.4rem;
  transition: opacity 0.25s ease, letter-spacing 0.25s ease;
}
.section-referral:hover {
  opacity: 1;
  letter-spacing: 0.34em;
}

/* ============ OFFERINGS GRID ============ */
.offerings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.offerings-grid-single {
  grid-template-columns: 1fr;
  max-width: 560px;
  margin: 0 auto;
}

.offering {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--panel-warm) 0%, var(--panel) 100%);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.4rem 1.4rem 2rem;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
  animation: fadeUp 0.8s ease both;
}

.offering:hover {
  border-color: var(--border-strong);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 0 1px rgba(201,168,76,0.15);
}

.offering::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--card-accent, var(--gold)), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.offering:hover::before { opacity: 1; }

.offering-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 1.6rem;
  background: var(--midnight);
}

.offering-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s ease;
}

.offering:hover .offering-image img {
  transform: scale(1.04);
}

/* Soft inner shadow on the image — sits on the marble-bar surface */
.offering-image::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 60px rgba(0,0,0,0.35);
  pointer-events: none;
}

.offering-badge {
  font-family: 'Cinzel', serif;
  font-size: 0.55rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--card-accent, var(--gold));
  opacity: 0.7;
  margin-bottom: 0.7rem;
}

.offering-name {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}

.offering-note {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 1.6rem;
}

.offering-cta {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--card-accent, var(--gold));
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  transition: gap 0.25s ease;
}
.offering:hover .offering-cta { gap: 0.85rem; }
.offering-cta::after { content: '→'; font-size: 0.75rem; }

.offering-torn { --card-accent: #e05545; }
.offering-yoink { --card-accent: #4db88e; }
.offering-rituale { --card-accent: var(--rituale-accent); }

/* ============ LOUNGE BAND (section divider) ============ */
.lounge-band {
  position: relative;
  width: 100%;
  min-height: 380px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
}

.lounge-band picture, .lounge-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.lounge-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(11,13,20,0.45) 0%, rgba(11,13,20,0.85) 100%),
    linear-gradient(to bottom, rgba(11,13,20,0.6) 0%, rgba(11,13,20,0.6) 100%);
}

/* The Humidor band is an SVG that is already dark by design — the
   photo-strength vignette above crushes it flat. Lighter treatment. */
.lounge-band-humidor::after {
  background:
    radial-gradient(ellipse 70% 80% at 50% 45%, rgba(11,13,20,0.10) 0%, rgba(11,13,20,0.55) 60%, rgba(11,13,20,0.80) 100%);
}

.lounge-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 4rem 2rem;
  max-width: 700px;
}

.lounge-overlay .section-title {
  color: var(--gold-light);
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

/* ============ FOOTER ============ */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 2rem 5rem;
}

.footer-monogram {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto 1.4rem;
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.footer-monogram:hover { opacity: 1; transform: scale(1.04); }
.footer-monogram img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.footer-line {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.6;
  margin-bottom: 1.8rem;
}

.footer-flag {
  display: flex;
  width: 56px;
  height: 3px;
  margin: 0 auto 1.4rem;
  border-radius: 2px;
  overflow: hidden;
  opacity: 0.55;
  transition: opacity 0.3s ease, width 0.3s ease;
}
.footer-flag span { flex: 1; }
.footer-flag .it-green { background: #009246; }
.footer-flag .it-white { background: #f4f1e8; }
.footer-flag .it-red { background: #ce2b37; }
footer:hover .footer-flag { opacity: 0.85; width: 72px; }

.footer-avatar {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--gold-dim);
  opacity: 0.8;
  transition: opacity 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.footer-avatar:hover {
  opacity: 1;
  border-color: var(--gold);
  transform: scale(1.05);
}
.footer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.footer-note {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  color: var(--faint);
  letter-spacing: 0.08em;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.offering:nth-child(1) { animation-delay: 0.05s; }
.offering:nth-child(2) { animation-delay: 0.15s; }
.offering:nth-child(3) { animation-delay: 0.25s; }
.offering:nth-child(4) { animation-delay: 0.35s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .offerings-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero-overlay { padding: 3rem 2rem 3.5rem; }
}

@media (max-width: 600px) {
  .hero { min-height: 520px; }
  .hero-overlay { padding: 2.5rem 1.5rem 3rem; }
  .section { padding: 4rem 1.25rem 3rem; }
  .lounge-band { min-height: 300px; margin: 1rem 0; }
  .offering { padding: 1.1rem 1.1rem 1.6rem; }
  .offering-name { font-size: 1.4rem; }
  .offering-note { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
