:root {
  --bg: #ece8dc;
  --surface: rgba(248,245,238,0.88);
  --ink: #14003c;
  --muted: #4c4660;
  --accent: #ff2b38;
  --line: rgba(20,0,60,0.10);
  --shadow: 0 18px 50px rgba(20,0,60,0.10);
  --radius: 24px;
  --container: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: linear-gradient(180deg, #f6f2e9 0%, var(--bg) 100%);
  color: var(--ink);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: .2s ease; }
.container { width: min(calc(100% - 32px), var(--container)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(236,232,220,0.82);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand-text, h1, h2, h3 { font-family: "Cormorant Garamond", serif; line-height: .98; letter-spacing: -0.02em; }
.brand-text { font-size: 2rem; font-weight: 700; }
.custom-logo { max-height: 84px; width: auto; }
.menu { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; color: var(--muted); font-weight: 600; }
.menu a:hover { color: var(--ink); }

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border-radius: 999px; background: var(--ink); color: white; font-weight: 700; box-shadow: var(--shadow);
}
.button-secondary { background: transparent; color: white; border: 1px solid rgba(255,255,255,.45); box-shadow: none; }
.button-small { min-height: 42px; }

.hero-cover {
  position: relative;
  min-height: 88svh;
  background:
    linear-gradient(90deg, rgba(20,0,60,.72) 0%, rgba(20,0,60,.38) 40%, rgba(20,0,60,.18) 100%),
    url('../img/esterno-1.jpeg') center/cover no-repeat;
  color: white;
  display: flex; align-items: center;
}
.hero-stage {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; align-items: end;
  padding: 80px 0;
}
.hero-copy { max-width: 760px; }
.hero-panel, .card, .media-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero-panel {
  padding: 28px; color: var(--ink); backdrop-filter: blur(8px);
}
.eyebrow {
  margin: 0 0 12px; text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; font-weight: 700; color: var(--accent);
}
.hero-cover .eyebrow { color: #ffd0d4; }
.hero-panel .eyebrow, .section .eyebrow, .cta-band .eyebrow { color: var(--accent); }
h1 { margin: 0 0 18px; font-size: clamp(3.1rem, 8vw, 6.2rem); }
h2 { margin: 0 0 18px; font-size: clamp(2.1rem, 5vw, 3.8rem); }
h3 { margin: 0 0 12px; font-size: clamp(1.6rem, 3vw, 2rem); }
.lead { max-width: 62ch; color: rgba(255,255,255,.92); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.feature-list, .contact-list { margin: 18px 0 0; padding-left: 18px; }

.section { padding: 68px 0; }
.alt { background: rgba(20,0,60,.04); }
.section-intro { max-width: 860px; margin-bottom: 28px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { padding: 28px; }

.split-showcase { display: grid; grid-template-columns: 1.05fr .95fr; gap: 22px; align-items: stretch; }
.stack { display: grid; gap: 22px; }
.media-card { overflow: hidden; }
.media-card img { width: 100%; height: 100%; object-fit: cover; }
.media-card.tall { min-height: 620px; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.gallery-grid .wide { grid-column: 1 / -1; }
.gallery-grid .media-card { min-height: 340px; }

.cta-band { background: linear-gradient(135deg, rgba(20,0,60,.95), rgba(55,27,95,.96)); color: white; }
.cta-band-inner { display: flex; justify-content: space-between; gap: 24px; align-items: center; }

.site-footer { margin-top: 0; padding: 56px 0 18px; border-top: 1px solid var(--line); background: #e9e4d7; }
.footer-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
.footer-bottom { padding-top: 18px; margin-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }

@media (max-width: 960px) {
  .main-nav, .header-cta { display: none; }
  .header-inner { min-height: 74px; }
  .hero-stage, .split-showcase, .cards-3, .gallery-grid, .footer-grid, .cta-band-inner { grid-template-columns: 1fr; display: grid; }
  .hero-cover { min-height: auto; }
  .section { padding: 52px 0; }
  .media-card.tall, .gallery-grid .media-card { min-height: 260px; }
}


/* Hard fix logo */
.header-inner{
  min-height: 86px;
  display: grid;
  grid-template-columns: 170px 1fr auto;
  align-items: center;
  gap: 24px;
}
.brand{
  display: inline-flex;
  align-items: center;
  max-width: 170px;
  overflow: hidden;
}
.brand-logo-img{
  display: block;
  height: 90px !important;
  max-height: 90px !important;
  width: auto !important;
  max-width: 160px !important;
  object-fit: contain;
}
.custom-logo,
.hero-logo,
.hero-logo .custom-logo,
.hero-logo img{
  display: none !important;
}
.main-nav{
  justify-self: center;
}
.menu{
  display: flex;
  align-items: center;
  gap: 26px;
  white-space: nowrap;
}
.header-cta{
  justify-self: end;
}
@media (max-width: 1200px){
  .header-inner{
    grid-template-columns: 170px 1fr;
  }
  .header-cta{
    display: none;
  }
}
@media (max-width: 960px){
  .header-inner{
    min-height: 72px;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .main-nav{
    display: none;
  }
  .brand-logo-img{
    height: 64px !important;
    max-height: 64px !important;
    max-width: 140px !important;
  }
}
