/* CeraLuna — laboratorio ceramica Deruta */

:root {
  --chalk: #F8F6F2;
  --chalk-dark: #F0EDE8;
  --chalk-muted: #E8E4DE;
  --cobalt: #1E3A8A;
  --cobalt-light: #2A4A9E;
  --cobalt-muted: #4A6BB5;
  --clay: #C4785A;
  --ink: #1A1F2E;
  --ink-soft: #4A5568;
  --shadow: rgba(30, 58, 138, 0.08);
  --shadow-deep: rgba(30, 58, 138, 0.18);
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Manrope', system-ui, sans-serif;
  --max-width: 1120px;
  --header-h: 68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--chalk);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ── Header ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 246, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(30, 58, 138, 0.08);
  height: var(--header-h);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.brand-icon {
  width: 34px;
  height: 34px;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--cobalt);
  display: block;
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
}

.main-nav {
  display: flex;
  gap: 2.25rem;
}

.main-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cobalt);
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--clay);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-trigger {
  position: relative;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.cart-trigger:hover {
  background: var(--chalk-dark);
}

.cart-trigger svg {
  width: 22px;
  height: 22px;
  stroke: var(--cobalt);
  stroke-width: 1.5;
  fill: none;
}

.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--clay);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s, transform 0.2s;
}

.cart-badge.is-visible {
  opacity: 1;
  transform: scale(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  font-size: 1.25rem;
  color: var(--cobalt);
}

/* ── Hero ── */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem 5rem;
  overflow: hidden;
}

.hero-wheel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, 90vw);
  height: min(520px, 90vw);
  pointer-events: none;
}

.wheel-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid var(--cobalt);
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: wheelFade 1.2s ease forwards;
}

.wheel-ring:nth-child(1) {
  width: 100%;
  height: 100%;
  opacity: 0.06;
  animation-delay: 0s;
}

.wheel-ring:nth-child(2) {
  width: 78%;
  height: 78%;
  opacity: 0.1;
  animation-delay: 0.15s;
}

.wheel-ring:nth-child(3) {
  width: 56%;
  height: 56%;
  opacity: 0.15;
  animation-delay: 0.3s;
}

.wheel-ring:nth-child(4) {
  width: 34%;
  height: 34%;
  opacity: 0.22;
  animation-delay: 0.45s;
}

.wheel-ring:nth-child(5) {
  width: 12%;
  height: 12%;
  background: var(--clay);
  border: none;
  opacity: 0.5;
  animation-delay: 0.6s;
}

@keyframes wheelFade {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
  to { opacity: var(--ring-opacity, 0.1); transform: translate(-50%, -50%) scale(1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--cobalt);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 480px;
  margin: 0 auto 2.25rem;
  line-height: 1.75;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  background: var(--cobalt);
  color: var(--chalk);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.25s, transform 0.2s;
}

.btn-primary:hover {
  background: var(--cobalt-light);
  transform: translateY(-1px);
}

.btn-primary svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* ── Sections ── */

.section {
  padding: 5.5rem 1.5rem;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 500;
  color: var(--cobalt);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

/* ── Storia ── */

.storia {
  background: var(--chalk-dark);
  border-top: 1px solid rgba(30, 58, 138, 0.06);
  border-bottom: 1px solid rgba(30, 58, 138, 0.06);
}

.storia-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.storia-text p {
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}

.storia-text p:last-child {
  margin-bottom: 0;
}

.storia-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.storia-wheel-mini {
  position: relative;
  width: 220px;
  height: 220px;
}

.storia-wheel-mini .wheel-ring {
  animation: none;
  opacity: 1;
}

.storia-wheel-mini .wheel-ring:nth-child(1) { opacity: 0.08; }
.storia-wheel-mini .wheel-ring:nth-child(2) { opacity: 0.14; }
.storia-wheel-mini .wheel-ring:nth-child(3) { opacity: 0.2; }
.storia-wheel-mini .wheel-ring:nth-child(4) { opacity: 0.28; }
.storia-wheel-mini .wheel-ring:nth-child(5) { opacity: 0.55; }

.storia-caption {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ── Prodotti ── */

.products {
  padding: 5.5rem 1.5rem 6rem;
}

.products-header {
  max-width: var(--max-width);
  margin: 0 auto 3rem;
  text-align: center;
}

.products-header .section-intro {
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 auto;
}

.product-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.product-card {
  background: var(--chalk);
  border: 1px solid rgba(30, 58, 138, 0.08);
  border-radius: 2px;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}

.product-card:hover {
  box-shadow: 0 12px 40px var(--shadow);
  transform: translateY(-3px);
}

.product-surface {
  position: relative;
  background: var(--chalk-dark);
  padding: 2rem;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(30, 58, 138, 0.06);
}

.product-surface::before {
  content: '';
  position: absolute;
  inset: 1.5rem;
  background: var(--chalk-muted);
  opacity: 0.35;
  border-radius: 1px;
}

.product-surface img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: drop-shadow(0 8px 16px rgba(30, 58, 138, 0.1));
}

.product-body {
  padding: 1.5rem 1.75rem 1.75rem;
}

.product-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--cobalt);
  margin-bottom: 0.5rem;
}

.product-desc {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.product-price {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--cobalt);
}

.product-price span {
  font-size: 0.9rem;
  font-weight: 400;
}

.btn-add {
  padding: 0.65rem 1.25rem;
  background: transparent;
  border: 1.5px solid var(--cobalt);
  color: var(--cobalt);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn-add:hover {
  background: var(--cobalt);
  color: var(--chalk);
}

/* ── Valori ── */

.valori {
  background: var(--cobalt);
  color: var(--chalk);
}

.valori .section-label {
  color: var(--clay);
}

.valori .section-title {
  color: var(--chalk);
}

.valori-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.valore-item {
  text-align: center;
  padding: 0 1rem;
}

.valore-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--clay);
  opacity: 0.7;
  line-height: 1;
  margin-bottom: 1rem;
}

.valore-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.valore-text {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.65;
}

/* ── Contatti ── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-item svg {
  width: 22px;
  height: 22px;
  stroke: var(--clay);
  stroke-width: 1.5;
  fill: none;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 0.25rem;
}

.contact-item a {
  color: var(--cobalt);
  transition: color 0.2s;
}

.contact-item a:hover {
  color: var(--clay);
}

.legal-block {
  background: var(--chalk-dark);
  border: 1px solid rgba(30, 58, 138, 0.08);
  border-radius: 2px;
  padding: 1.75rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.8;
}

.legal-block strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--cobalt);
  margin-bottom: 0.5rem;
}

/* ── Footer ── */

.site-footer {
  border-top: 1px solid rgba(30, 58, 138, 0.08);
  padding: 1.75rem 1.5rem;
  background: var(--chalk);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.footer-links {
  display: flex;
  gap: 1.75rem;
}

.footer-links a {
  color: var(--cobalt);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--clay);
}

/* ── Cart Drawer ── */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 31, 46, 0.4);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.cart-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 100vw);
  height: 100%;
  background: var(--chalk);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 32px var(--shadow-deep);
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(30, 58, 138, 0.08);
}

.cart-header h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--cobalt);
}

.cart-close {
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.cart-close:hover {
  background: var(--chalk-dark);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

.cart-empty {
  text-align: center;
  color: var(--ink-soft);
  padding: 3rem 1rem;
  font-size: 0.9rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(30, 58, 138, 0.06);
  align-items: start;
}

.cart-item-image {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: var(--chalk-dark);
  border-radius: 2px;
  padding: 4px;
}

.cart-item-info h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cobalt);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.cart-item-price {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(30, 58, 138, 0.15);
  border-radius: 2px;
  font-size: 1rem;
  color: var(--cobalt);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.qty-btn:hover {
  background: var(--chalk-dark);
}

.qty-value {
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.cart-item-remove {
  font-size: 0.72rem;
  color: var(--clay);
  margin-top: 0.35rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cart-item-total {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--cobalt);
  white-space: nowrap;
}

.cart-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(30, 58, 138, 0.08);
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.cart-subtotal span:last-child {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--cobalt);
}

.btn-checkout {
  width: 100%;
  padding: 0.9rem;
  background: var(--cobalt);
  color: var(--chalk);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s;
}

.btn-checkout:hover:not(:disabled) {
  background: var(--cobalt-light);
}

.btn-checkout:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── Checkout Modal ── */

.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.checkout-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.checkout-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 31, 46, 0.5);
}

.checkout-panel {
  position: relative;
  background: var(--chalk);
  border-radius: 2px;
  padding: 2.5rem;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 20px 60px var(--shadow-deep);
}

.checkout-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.checkout-close:hover {
  background: var(--chalk-dark);
}

.checkout-form h2,
.success-message h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--cobalt);
  margin-bottom: 0.75rem;
}

.checkout-form p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.checkout-form label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 0.5rem;
}

.checkout-form input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid rgba(30, 58, 138, 0.15);
  border-radius: 2px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--chalk);
  color: var(--ink);
  transition: border-color 0.2s;
}

.checkout-form input:focus {
  outline: none;
  border-color: var(--cobalt);
}

.checkout-actions {
  margin-top: 1.5rem;
}

.checkout-actions .btn-primary {
  width: 100%;
  justify-content: center;
}

.success-message {
  text-align: center;
}

.success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  background: var(--cobalt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--chalk);
  stroke-width: 2.5;
  fill: none;
}

.success-message p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.btn-secondary {
  padding: 0.75rem 1.75rem;
  border: 1.5px solid var(--cobalt);
  color: var(--cobalt);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}

.btn-secondary:hover {
  background: var(--cobalt);
  color: var(--chalk);
}

/* ── Cookie Banner ── */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  background: var(--cobalt);
  color: var(--chalk);
  padding: 1.25rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-text {
  font-size: 0.88rem;
  opacity: 0.9;
  flex: 1;
  min-width: 240px;
}

.cookie-text a {
  color: var(--clay);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-cookie-accept,
.btn-cookie-decline {
  padding: 0.6rem 1.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}

.btn-cookie-accept {
  background: var(--chalk);
  color: var(--cobalt);
}

.btn-cookie-accept:hover {
  background: var(--chalk-dark);
}

.btn-cookie-decline {
  background: transparent;
  border: 1.5px solid rgba(248, 246, 242, 0.4);
  color: var(--chalk);
}

.btn-cookie-decline:hover {
  border-color: var(--chalk);
}

/* ── Legal Pages ── */

.legal-page {
  padding: 3rem 1.5rem 5rem;
  min-height: calc(100vh - var(--header-h) - 80px);
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
}

.legal-content h1 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--cobalt);
  margin-bottom: 0.5rem;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--cobalt);
  margin: 2rem 0 0.75rem;
}

.legal-content p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.legal-content ul {
  margin: 0 0 1rem 1.5rem;
  color: var(--ink-soft);
}

.legal-content li {
  margin-bottom: 0.4rem;
}

.legal-content a {
  color: var(--cobalt);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--cobalt);
  margin-bottom: 2rem;
  letter-spacing: 0.04em;
}

.legal-back:hover {
  color: var(--clay);
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .storia-layout,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .storia-visual {
    order: -1;
  }

  .valori-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--chalk);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid rgba(30, 58, 138, 0.08);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
    z-index: 99;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    min-height: auto;
    padding: 3.5rem 1.5rem 4rem;
  }

  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cookie-actions {
    justify-content: center;
  }
}
