:root {
  --forest: #092d18;
  --forest-2: #124326;
  --leaf: #86b946;
  --cream: #fff7e8;
  --paper: #fffdf7;
  --sand: #e8d0a3;
  --gold: #c99b48;
  --brown: #6b3f27;
  --wine: #5a181d;
  --meat: #9e2f2f;
  --ink: #142116;
  --muted: #657066;
  --white: #ffffff;
  --shadow: 0 28px 80px rgba(0, 0, 0, .22);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(134, 185, 70, .20), transparent 26rem),
    radial-gradient(circle at 90% 10%, rgba(201, 155, 72, .16), transparent 24rem),
    linear-gradient(180deg, #fffdf7 0%, #f7eddc 48%, #fffdf7 100%);
}
body.portal-page { overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.portal-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 18px clamp(14px, 3vw, 46px);
  pointer-events: none;
}
.portal-nav {
  pointer-events: all;
  max-width: 1320px;
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(9, 45, 24, .82);
  backdrop-filter: blur(18px);
  color: var(--white);
  box-shadow: 0 16px 45px rgba(0, 0, 0, .20);
}
.brand-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 900;
  letter-spacing: .01em;
}
.brand-pill img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.72);
}
.brand-pill span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 12px 14px;
  border-radius: 999px;
  color: rgba(255,255,255,.84);
  font-weight: 800;
  font-size: 14px;
}
.nav-links a:hover,
.nav-links a.active { background: rgba(255,255,255,.13); color: white; }
.nav-links .cta { background: var(--cream); color: var(--forest); margin-left: 6px; }
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 16px;
  background: rgba(255,255,255,.14);
  color: white;
  font-size: 22px;
  cursor: pointer;
}

.portal-kicker,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(232, 208, 163, .48);
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  color: var(--sand);
  text-transform: uppercase;
  letter-spacing: .10em;
  font-size: 12px;
  font-weight: 900;
}

.hero-portal {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 144px clamp(18px, 4vw, 70px) 80px;
  color: white;
  overflow: hidden;
  isolation: isolate;
}
.hero-portal::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 20%, rgba(134,185,70,.24), transparent 24rem),
    radial-gradient(circle at 82% 14%, rgba(201,155,72,.18), transparent 22rem),
    linear-gradient(135deg, rgba(5,22,11,.98) 0%, rgba(10,35,18,.94) 42%, rgba(41,16,17,.92) 100%);
}
.hero-portal::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
}
.portal-shell { width: min(1320px, 100%); margin: 0 auto; }
.portal-intro {
  max-width: 920px;
  margin: 0 auto 36px;
  text-align: center;
}
.portal-intro h1,
.page-hero h1,
.section-title h2,
.split-copy h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -.055em;
  line-height: .94;
}
.portal-intro h1 {
  margin: 22px 0 20px;
  font-size: clamp(54px, 8vw, 100px);
  text-shadow: 0 16px 40px rgba(0,0,0,.28);
}
.portal-intro p {
  margin: 0 auto;
  max-width: 900px;
  color: rgba(255,255,255,.82);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.7;
}
.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}
.portal-card {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,.08);
  isolation: isolate;
  transform: translateZ(0);
}
.portal-card-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.portal-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5,16,9,.10), rgba(6, 16, 10, .34) 36%, rgba(6,16,10,.88) 100%);
}
.portal-card:hover .portal-card-bg { transform: scale(1.06); }
.large-card { min-height: 600px; }
.portal-card-content {
  min-height: inherit;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.portal-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.card-tag {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--sand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.card-arrow {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.20);
  font-size: 24px;
}
.portal-card-body {
  margin-top: auto;
}
.portal-card h2 {
  margin: 0 0 12px;
  font-family: Georgia, serif;
  font-size: clamp(36px, 4vw, 56px);
  line-height: .95;
  letter-spacing: -.04em;
}
.portal-card p {
  margin: 0;
  color: rgba(255,255,255,.82);
  line-height: 1.6;
  font-size: 16px;
  max-width: 420px;
}
.portal-card-footer { padding-top: 8px; }
.card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.22);
  color: white;
  font-weight: 900;
  backdrop-filter: blur(8px);
}
.portal-logo-mark {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 18px;
  border: 4px solid rgba(255,255,255,.86);
  box-shadow: 0 16px 30px rgba(0,0,0,.22);
}
.macelleria-card::after {
  background: linear-gradient(180deg, rgba(25,8,8,.16), rgba(45,10,10,.46) 38%, rgba(34,8,8,.90) 100%);
}

.portal-section,
.page-section {
  padding: clamp(72px, 7vw, 118px) clamp(18px, 4vw, 70px);
  max-width: 1320px;
  margin: 0 auto;
}
.compact-top { padding-top: 36px; }
.section-title {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(290px, 1.1fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 38px;
}
.section-title.center {
  display: block;
  text-align: center;
  max-width: 920px;
}
.section-title h2 {
  margin: 16px 0 0;
  font-size: clamp(42px, 6vw, 82px);
  color: var(--forest);
}
.section-title p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 17px;
}
.process-grid,
.feature-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}
.info-card,
.feature-card,
.product-card {
  border: 1px solid rgba(9,45,24,.10);
  border-radius: 28px;
  padding: 26px;
  background: rgba(255,255,255,.74);
  box-shadow: 0 18px 50px rgba(0,0,0,.07);
}
.info-card strong {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: var(--forest);
  color: white;
  margin-bottom: 18px;
}
.info-card h3,
.feature-card h3,
.product-card h3 {
  margin: 0 0 10px;
  font-size: 23px;
  color: var(--forest);
}
.info-card p,
.feature-card p,
.product-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  font-weight: 950;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--leaf), #f0f7a6);
  color: #092511;
  box-shadow: 0 16px 36px rgba(134,185,70,.30);
}
.btn-secondary {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.23);
  color: white;
}
.btn-dark { background: var(--forest); color: white; }
.btn-light { background: var(--cream); color: var(--forest); }
.portal-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.page-hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: center;
  padding: 142px clamp(18px,4vw,70px) 82px;
  overflow: hidden;
  color: white;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background: var(--hero-img) center/cover no-repeat;
  transform: scale(1.04);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--hero-overlay, linear-gradient(90deg, rgba(8,45,24,.86), rgba(8,45,24,.42)), linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.45)));
}
.page-hero-inner {
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, .86fr) minmax(300px, .54fr);
  gap: 42px;
  align-items: end;
}
.page-hero h1 {
  max-width: 840px;
  margin: 22px 0 18px;
  font-size: clamp(56px, 8vw, 112px);
  text-shadow: 0 15px 42px rgba(0,0,0,.35);
}
.page-hero p {
  max-width: 660px;
  margin: 0;
  color: rgba(255,255,255,.84);
  line-height: 1.7;
  font-size: clamp(17px, 1.35vw, 21px);
}
.hero-box {
  border-radius: 34px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.23);
  background: rgba(255,255,255,.13);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.hero-box h2 {
  margin: 0 0 12px;
  font-family: Georgia, serif;
  font-size: 34px;
  line-height: 1;
}
.hero-box ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.hero-box li {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.84);
  font-weight: 750;
}

.agriturismo {
  --hero-img: url('assets/agriturismo-sala.jpg');
  --hero-overlay:
    radial-gradient(circle at 18% 34%, rgba(201,155,72,.34), transparent 26rem),
    linear-gradient(90deg, rgba(54,30,14,.88), rgba(15,34,18,.50)),
    linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.45));
}
.macelleria {
  --hero-img: url('assets/macelleria-placeholder.jpg');
  --hero-overlay:
    radial-gradient(circle at 18% 34%, rgba(158,47,47,.38), transparent 25rem),
    linear-gradient(90deg, rgba(42,13,13,.92), rgba(86,29,24,.56)),
    linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.48));
}

.split-section {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(300px, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.split-image {
  position: relative;
  min-height: 520px;
  border-radius: 42px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.split-copy h2 {
  margin: 18px 0;
  font-size: clamp(42px, 6vw, 80px);
  color: var(--forest);
}
.split-copy p { color: var(--muted); line-height: 1.75; font-size: 17px; }
.check-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.check-list li {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(9,45,24,.06);
  color: var(--forest);
  font-weight: 850;
}

.band {
  margin: 0 clamp(18px, 4vw, 70px) clamp(72px,7vw,118px);
  border-radius: 42px;
  background: var(--forest);
  color: white;
  overflow: hidden;
  position: relative;
}
.band-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(42px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}
.band h2 {
  margin: 0 0 12px;
  font-family: Georgia, serif;
  font-size: clamp(34px, 5vw, 64px);
  letter-spacing: -.04em;
  line-height: 1;
}
.band p { margin: 0; color: rgba(255,255,255,.75); line-height: 1.65; max-width: 720px; }

.contact-mini {
  border-radius: 34px;
  padding: 30px;
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(9,45,24,.10);
  box-shadow: 0 18px 48px rgba(0,0,0,.08);
}
.contact-mini form { display: grid; gap: 12px; margin-top: 18px; }
.contact-mini input,
.contact-mini textarea,
.contact-mini select {
  width: 100%;
  border: 1px solid rgba(9,45,24,.14);
  border-radius: 16px;
  padding: 14px 16px;
  background: white;
  outline: 0;
}
.contact-mini textarea { min-height: 118px; resize: vertical; }
.placeholder-box {
  background: linear-gradient(135deg, rgba(94,25,25,.94), rgba(53,16,16,.94));
  color: white;
  border: 1px solid rgba(255,255,255,.12);
}
.placeholder-logo {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,.90);
  margin-bottom: 18px;
}
.placeholder-box p { color: rgba(255,255,255,.84); line-height: 1.65; }

.footer-portal {
  background: var(--forest);
  color: rgba(255,255,255,.72);
  padding: 32px clamp(18px,4vw,70px);
}
.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 54px; height: 54px; border-radius: 18px; object-fit: cover; }
.footer-portal p { margin: 0; line-height: 1.55; }

@media (max-width: 1180px) {
  .portal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-grid .portal-card:last-child { grid-column: 1 / -1; min-height: 420px; }
  .page-hero-inner,
  .section-title,
  .split-section { grid-template-columns: 1fr; }
  .process-grid,
  .feature-grid,
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .band-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .portal-header { padding: 12px; }
  .portal-nav { border-radius: 24px; align-items: flex-start; flex-wrap: wrap; }
  .brand-pill span { max-width: 180px; }
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 0 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { text-align: center; }
  .nav-links .cta { margin-left: 0; }

  .hero-portal,
  .page-hero {
    padding-top: 122px;
    min-height: auto;
  }
  .portal-intro h1,
  .page-hero h1 { font-size: clamp(48px, 14vw, 74px); }
  .portal-grid,
  .process-grid,
  .feature-grid,
  .product-grid { grid-template-columns: 1fr; }
  .portal-grid .portal-card:last-child { grid-column: auto; }
  .large-card { min-height: 430px; }
  .split-image { min-height: 340px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}


/* Video drone come sfondo della schermata iniziale */
.portal-video-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .74;
}
.hero-portal::before {
  z-index: -2;
  background:
    radial-gradient(circle at 18% 22%, rgba(134,185,70,.20), transparent 24rem),
    radial-gradient(circle at 82% 18%, rgba(201,155,72,.14), transparent 22rem),
    linear-gradient(90deg, rgba(5,22,11,.80) 0%, rgba(8,35,18,.58) 45%, rgba(41,16,17,.66) 100%),
    linear-gradient(180deg, rgba(0,0,0,.34), rgba(0,0,0,.58));
}
.hero-portal::after {
  z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.18));
}
.clean-intro h1,
.clean-intro p {
  text-shadow: 0 14px 38px rgba(0,0,0,.55);
}
.portal-card {
  backdrop-filter: blur(2px);
}
@media (prefers-reduced-motion: reduce) {
  .portal-video-bg { display: none; }
}


/* Fix mobile generale per portale, agriturismo e shop */
@media (max-width: 760px) {
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .portal-header {
    position: static !important;
    padding: max(10px, env(safe-area-inset-top)) 12px 8px !important;
    background: rgba(255,253,247,.96);
    backdrop-filter: blur(14px);
  }

  .portal-nav {
    min-height: 62px;
    border-radius: 22px;
    padding: 8px 10px;
  }

  .brand-pill {
    min-width: 0;
    gap: 9px;
    font-size: 15px;
  }

  .brand-pill img {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }

  .brand-pill span {
    max-width: 180px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .hero-portal,
  .page-hero {
    padding: 34px 18px 54px !important;
    min-height: auto !important;
  }

  .portal-intro {
    margin-bottom: 24px;
  }

  .portal-intro h1,
  .page-hero h1 {
    font-size: clamp(42px, 15vw, 66px) !important;
    line-height: .94;
    letter-spacing: -.05em;
  }

  .portal-intro p,
  .page-hero p {
    font-size: 16px;
    line-height: 1.65;
  }

  .portal-grid {
    gap: 16px;
  }

  .large-card,
  .portal-grid .portal-card:last-child {
    min-height: 380px;
  }

  .portal-card-content {
    padding: 20px;
  }

  .portal-card h2 {
    font-size: clamp(32px, 12vw, 46px);
  }

  .page-hero-inner {
    gap: 22px;
  }

  .hero-box,
  .info-card,
  .feature-card,
  .product-card,
  .contact-mini {
    border-radius: 24px;
    padding: 22px;
  }

  .section-title h2,
  .split-copy h2,
  .band h2 {
    font-size: clamp(34px, 12vw, 50px) !important;
    line-height: 1;
  }

  .portal-section,
  .page-section {
    padding: 54px 18px;
  }

  .band {
    margin: 0 18px 54px;
    border-radius: 28px;
  }

  .band-inner {
    padding: 32px 22px;
  }

  .footer-portal {
    padding: 28px 18px 70px;
  }
}

@media (max-width: 390px) {
  .brand-pill span {
    max-width: 145px;
  }
}


/* Privacy checkbox per richieste e ordini */
.privacy-consent {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  margin: 10px 0 2px !important;
  padding: 13px 14px !important;
  border-radius: 16px !important;
  background: rgba(9,45,24,.055) !important;
  color: var(--muted) !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  line-height: 1.45 !important;
}
.privacy-consent input[type="checkbox"] {
  width: 19px !important;
  min-width: 19px !important;
  height: 19px !important;
  min-height: 19px !important;
  margin: 1px 0 0 !important;
  padding: 0 !important;
  accent-color: var(--leaf) !important;
  box-shadow: none !important;
}
.privacy-consent span { display: block; color: inherit; }
