:root {
  --bg: #FAF9F6;          /* Bianco gesso / pietra chiara */
  --bg-alt: #F2F0EB;      /* Pietra calda */
  --surface: #FFFFFF;
  --slot-bg: #EBE8E1;     /* Fondo segnaposto immagine */
  --ink: #141413;         /* Grafite */
  --muted: #5A5954;       /* Pietra scura */
  --accent: #2F3E34;      /* Verde alloro scuro */
  --accent-dark: #1F2A23; /* Alloro profondo */
  --accent-soft: #E6ECE8; /* Alloro tenue */
  --border: #E2DFD7;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

/* Barra Ecosistema */
.ecosystem-bar {
  background: var(--ink);
  color: #D7D5CE;
  font-size: 0.78rem;
  border-bottom: 1px solid #282826;
}

.ecosystem-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 1.2rem;
  padding: 0.55rem 0;
}

.ecosystem-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  color: #9A9890;
  font-weight: 500;
}

.ecosystem-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.4rem;
}

.ecosystem-links a {
  color: #E6E4DD;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ecosystem-links a:hover,
.ecosystem-links a.active {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Header & Logotipo */
.site-header {
  background: rgba(250, 249, 246, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1.2rem;
}

.brand {
  text-decoration: none;
  color: var(--ink);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  border: 1px solid var(--accent);
  flex-shrink: 0;
}

.brand-mark-inv {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
}

.brand-rule {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--accent);
  opacity: 0.45;
  margin: 0.26rem 0 0.22rem;
}

.brand-sub {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.main-nav a:hover {
  color: var(--accent);
}

/* Tipografia & Bottoni */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.1rem);
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 2.85rem);
  margin-bottom: 0.75rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.55rem;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.btn-outline:hover {
  background: var(--ink);
  color: #FFFFFF;
}

/* Spazi Fotografici / Segnaposto Puliti */
.media-slot {
  position: relative;
  overflow: hidden;
  background-color: var(--slot-bg);
  background-image: linear-gradient(135deg, rgba(47, 62, 52, 0.04) 0%, rgba(20, 20, 19, 0.02) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 2;
  transition: transform 0.45s ease;
}

.slot-hint {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.slot-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 600;
}

.slot-spec {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* Hero */
.hero {
  padding: 4.5rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

.hero-content {
  max-width: 780px;
  margin-bottom: 3rem;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 660px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.media-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 540px;
  border: 1px solid var(--border);
}

/* Sezioni */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  max-width: 700px;
  margin-bottom: 3rem;
}

.section-desc {
  color: var(--muted);
  font-size: 1.02rem;
}

/* 4 Realtà (Card Fotografiche) */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(20, 20, 19, 0.06);
}

.pillar-card:hover .media-card img {
  transform: scale(1.03);
}

.media-card {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--border);
}

.pillar-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pillar-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.9rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border);
}

.pillar-num {
  font-weight: 600;
  color: var(--accent);
}

.pillar-card h3 {
  font-size: 1.9rem;
  margin-bottom: 0.4rem;
}

.pillar-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.18rem;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.pillar-text {
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 1.3rem;
}

.pillar-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.pillar-tags li {
  font-size: 0.76rem;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.25rem 0.65rem;
  color: var(--ink);
}

.pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.pillar-link:hover {
  color: var(--ink);
}

/* Filosofia */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2.5rem;
  align-items: start;
}

.philosophy-text p {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 1.03rem;
}

/* Bottega & Griglia Prodotti E-Commerce */
.badge-soon {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.73rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.35rem 0.8rem;
  margin-bottom: 1rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.media-product {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-bottom: 1px solid var(--border);
}

.product-info {
  padding: 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.product-cat {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.product-info h3 {
  font-size: 1.35rem;
}

.product-status {
  margin-top: 0.35rem;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--accent);
}

/* Box Avviso Lancio */
.shop-notify-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 2.25rem;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2rem;
  align-items: center;
}

.shop-notify-text h3 {
  font-size: 1.7rem;
  margin-bottom: 0.45rem;
}

.shop-notify-text p {
  font-size: 0.93rem;
  color: var(--muted);
}

.notify-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.notify-input-row {
  display: flex;
  gap: 0.65rem;
}

.notify-input-row input {
  flex: 1;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.92rem;
  color: var(--ink);
}

.notify-input-row input:focus {
  outline: 1px solid var(--accent);
  background: #FFFFFF;
}

.hp-field {
  display: none !important;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
}

.checkbox-row input {
  margin-top: 0.2rem;
  accent-color: var(--accent);
}

.checkbox-row a {
  color: var(--ink);
  text-decoration: underline;
}

.form-feedback {
  display: none;
  padding: 0.75rem 0.95rem;
  font-size: 0.86rem;
  margin-bottom: 0.85rem;
  border-radius: 2px;
}

.form-feedback.success {
  display: block;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border: 1px solid #C2D2C7;
}

.form-feedback.error {
  display: block;
  background: #FDF0EE;
  color: #8C2318;
  border: 1px solid #ECC0BB;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #D7D5CE;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #282826;
}

.footer-brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.footer-brand {
  color: #FFFFFF;
}

.site-footer h4 {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: #FFFFFF;
  margin-bottom: 0.8rem;
}

.footer-note {
  font-size: 0.87rem;
  color: #A5A39B;
}

.footer-note strong {
  color: #E6E4DD;
}

.footer-note a {
  color: #E6E4DD;
  text-decoration: none;
}

.footer-note a:hover {
  text-decoration: underline;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #D7D5CE;
  text-decoration: none;
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.79rem;
  color: #8D8B83;
}

.legal-links a {
  color: #B4B2AA;
  text-decoration: none;
}

.legal-links a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 980px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .shop-notify-banner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .pillars-grid,
  .philosophy-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .notify-input-row {
    flex-direction: column;
  }
}