:root {
  color-scheme: light;
  --paper: #faf8f0;
  --ink: #17352a;
  --muted: #46584d;
  --line: #d7d9ca;
  --green: #18372c;
  --yellow: #f4cb63;
  --pale-green: #edf0e5;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: inherit; }
img { display: block; width: 100%; }
figure, p, h1, h2, h3 { margin: 0; }

:focus-visible { outline: 3px solid #aa5a0e; outline-offset: 5px; }
.frame { width: min(100% - 6rem, 82rem); margin-inline: auto; }
main section[id] { scroll-margin-top: 2rem; }

.skip {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 3;
  transform: translateY(-160%);
  padding: 0.5rem 1rem;
  background: var(--green);
  color: white;
}
.skip:focus { transform: none; }

.header-wrap { border-bottom: 1px solid var(--line); background: #fffdf6; }
.site-header {
  min-height: 5.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  flex: 0 0 auto;
  font: 1.38rem/1.05 var(--serif);
  text-decoration: none;
}
.brand small {
  display: block;
  margin-top: 0.35rem;
  font: 0.78rem/1.2 var(--sans);
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand-mark {
  width: 1.8rem;
  height: 1.8rem;
  flex: none;
  position: relative;
  background: var(--yellow);
  border: 1px solid #c89b34;
  border-radius: 58% 46% 55% 48%;
  transform: rotate(-21deg);
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 0.9rem;
  height: 0.5rem;
  right: -0.46rem;
  top: -0.2rem;
  border-radius: 100% 0 100% 0;
  background: var(--green);
  transform: rotate(14deg);
}

.site-header nav {
  display: flex;
  gap: clamp(1.05rem, 3.2vw, 3.25rem);
  align-items: center;
  justify-content: center;
}
.site-header nav a, .header-contact {
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}
.site-header nav a:hover { text-decoration: underline; text-underline-offset: 0.35em; }
.site-header nav a[aria-current] { text-decoration: underline; text-underline-offset: 0.38em; text-decoration-color: #94701f; text-decoration-thickness: 2px; }
.header-contact { border: 1px solid var(--ink); padding: 0.5rem 1.05rem; border-radius: 0.35rem; }
.header-contact:hover, .header-contact[aria-current] { color: var(--paper); background: var(--green); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1fr);
  align-items: stretch;
  min-height: min(34rem, 64vw);
  margin-block: clamp(1.2rem, 3vw, 2.6rem) 0;
  border-radius: 0.8rem;
  overflow: hidden;
  background: var(--green);
  color: var(--paper);
}

.hero-copy { align-self: center; padding: clamp(1.6rem, 4vw, 4rem); }
.eyebrow {
  font-size: 0.875rem;
  font-weight: 710;
  line-height: 1.4;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.hero-location { color: #ffda7a; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }

h1 {
  font-size: clamp(3.1rem, 5.7vw, 5.9rem);
  line-height: 0.96;
  letter-spacing: -0.075em;
  margin-block: 1.35rem 1.55rem;
}
h1 em { font-weight: inherit; display: block; color: #ffda7a; }
.hero-intro { max-width: 26rem; color: #e4eee6; }
.hero :focus-visible { outline-color: #ffda7a; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.35rem;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.65rem 1.18rem;
  min-height: 3rem;
  border: 0;
  border-radius: 0.35rem;
  font-family: var(--sans);
  cursor: pointer;
  font-weight: 680;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 140ms ease, color 140ms ease;
}
.button-dark { background: var(--green); color: var(--paper); }
.button-dark:hover { background: #375748; }
.button-gold { background: var(--yellow); color: var(--ink); }
.button-gold:hover { background: #ffdf8d; }
.text-link {
  display: inline-block;
  max-width: 100%;
  font-weight: 680;
  text-underline-offset: 0.29em;
  text-decoration-thickness: 1px;
}
.text-link:hover { text-decoration-thickness: 2px; }

.hero-photo, .product-photo, .about-photo, .subpage-photo {
  overflow: hidden;
  position: relative;
  border-radius: 0.65rem;
  background: #b7bda0;
}
.hero-photo { min-height: 29rem; border-radius: 0; }
.hero-photo img {
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: 65% 50%;
}
.photo-credit {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  padding: 0.22rem 0.48rem;
  border-radius: 0.15rem;
  background: #17241de8;
  color: white;
  font-size: 0.77rem;
  line-height: 1.4;
}
.home-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-block: 1rem clamp(2.5rem, 5vw, 4.5rem);
  background: #fffdf6;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
}
.home-shortcuts a { display: grid; gap: 0.25rem; padding: 1.05rem 1.35rem; text-decoration: none; }
.home-shortcuts a + a { border-left: 1px solid var(--line); }
.home-shortcuts a:hover { background: var(--pale-green); }
.home-shortcuts a:hover strong { text-decoration: underline; text-underline-offset: 0.24em; }
.home-shortcuts strong { font-size: 1rem; line-height: 1.3; }
.home-shortcuts span { color: var(--muted); font-size: 0.93rem; line-height: 1.35; }
.product-section {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 8vw, 9.5rem);
  align-items: center;
  padding-block: clamp(3.5rem, 7vw, 7rem);
}
.product-photo img { height: auto; aspect-ratio: 1.43; object-fit: cover; }
.product-copy { max-width: 26rem; }
h2 { font-size: clamp(2.8rem, 5vw, 5rem); letter-spacing: -0.067em; line-height: 1; }
.product-copy h2, .services-intro h2, .business-copy h2, .about-section h2 {
  margin-block: 0.8rem 1.15rem;
}
.product-copy p:not(.eyebrow), .about-section p:not(.eyebrow) { color: var(--muted); }
.services-section { background: var(--pale-green); }
.services-layout {
  display: grid;
  grid-template-columns: 1fr 0.84fr;
  gap: clamp(2.3rem, 9vw, 11rem);
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
.services-intro .eyebrow { color: #4e5735; }
.services-intro > p:not(.eyebrow) { max-width: 24rem; }
.section-link { margin-top: 1.2rem; }
.service-list { align-self: center; }
.service-list article { border-top: 1px solid #aeb8a9; padding-block: 1.25rem 1.6rem; }
.service-list article:last-child { padding-bottom: 0; }
.service-list h3 { font-size: 2rem; line-height: 1.15; margin-bottom: 0.55rem; }
.service-list p { max-width: 28rem; color: var(--muted); }

.crop-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.crop-list li {
  border: 1px solid #aeb8a9;
  padding: 0.35rem 0.72rem;
  font-size: 0.9rem;
  border-radius: 0.22rem;
}

.business-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(2.1rem, 8vw, 8rem);
  align-items: center;
  padding-block: clamp(3.2rem, 6vw, 5.5rem);
  border-bottom: 1px solid var(--line);
}
.business-copy h2 { max-width: 14ch; }
.business-copy p:not(.eyebrow) { max-width: 30rem; color: var(--muted); }
.quote-panel {
  padding: clamp(1.3rem, 3vw, 2.2rem);
  background: #fffdf6;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  scroll-margin-top: 2rem;
}
.panel-title { font-size: clamp(1.85rem, 2.8vw, 2.45rem); line-height: 1.08; letter-spacing: -0.035em; margin-bottom: 0.75rem; }
.panel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem 1.1rem; }
.panel-note { color: var(--muted); margin: 0 0 1.1rem; }
.email-form:not([hidden]) { display: grid; gap: 1rem; margin-block: 1.25rem; }
.email-form label { display: grid; gap: 0.3rem; min-width: 0; font-size: 0.95rem; font-weight: 650; }
.email-form input, .email-form select, .email-form textarea {
  width: 100%;
  min-height: 2.8rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid #8a9a90;
  border-radius: 0.3rem;
  background: #fff;
  color: var(--ink);
  font: 400 1rem/1.4 var(--sans);
}
.email-form textarea { resize: vertical; }
.email-form .button { justify-self: start; }
.form-note { color: var(--muted); font-size: 0.94rem; }

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
  border-top: 1px solid var(--line);
  padding-block: clamp(3.2rem, 6vw, 5.5rem);
}
.about-section h2 { max-width: 15ch; }
.about-section div > p { max-width: 35rem; }
.about-photo img { height: auto; aspect-ratio: 1.58; object-fit: cover; }

.contact-section { background: #f4e8c4; }
.contact-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.35rem 2.1rem;
  padding-block: clamp(2.9rem, 6vw, 5rem);
}
.contact-strip h2 { font-size: clamp(2.3rem, 4.2vw, 4rem); margin-bottom: 0.6rem; }
.contact-strip p { max-width: 32rem; }
.contact-strip .button { flex: 0 0 auto; align-self: center; }
.email { overflow-wrap: anywhere; }
.contact-methods {
  display: grid;
  gap: 0.48rem;
  min-width: 0;
  max-width: 100%;
  margin: 0.3rem 0 0;
}
.contact-methods dt { color: var(--muted); font-size: 0.875rem; font-weight: 650; }
.contact-methods dd { margin: 0; }

.footer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.84fr) minmax(0, 0.55fr);
  gap: 1.4rem 2.5rem;
  padding-block: 2rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-name { font: 1.45rem/1.1 var(--serif); color: var(--ink); margin-bottom: 0.48rem; }
.footer-contact, .footer-layout nav { display: grid; align-content: start; justify-items: start; gap: 0.4rem; }
.footer-layout nav a { text-underline-offset: 0.22em; }

.home-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.6rem, 5vw, 4.5rem);
  padding-block: clamp(3rem, 6vw, 5.2rem);
  border-bottom: 1px solid var(--line);
}
.home-link-card {
  display: flex;
  flex-direction: column;
  align-items: start;
  border-top: 2px solid #b58931;
  padding-top: 1.3rem;
}
.home-link-card h2 {
  font-size: clamp(2.25rem, 3.55vw, 3.75rem);
  letter-spacing: -0.06em;
  margin-block: 0.65rem 0.75rem;
}
.home-link-card p:not(.eyebrow) { color: var(--muted); margin-bottom: 1.05rem; max-width: 31rem; }
.home-link-card .text-link { margin-top: auto; }

.page-intro {
  border-bottom: 1px solid var(--line);
  padding-block: clamp(3rem, 7vw, 6rem);
}
.page-intro-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.9rem, 6vw, 6rem);
}
.page-intro h1 {
  max-width: 15ch;
  font-size: clamp(3.1rem, 6vw, 6rem);
  letter-spacing: -0.068em;
  margin-block: 0.7rem 1rem;
}
.page-lede { max-width: 37rem; color: var(--muted); }
.subpage-photo img {
  height: auto;
  aspect-ratio: 1.32;
  object-fit: cover;
  object-position: 64% center;
}
.details-grid, .contact-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.6rem, 5vw, 4.5rem);
  padding-block: clamp(2.75rem, 5.8vw, 4.9rem);
}
.detail-block {
  padding: clamp(1.2rem, 3vw, 2.1rem);
  background: #f0eee3;
  border-top: 2px solid #b58931;
  border-radius: 0 0 0.25rem 0.25rem;
}
.detail-block h2 {
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  letter-spacing: -0.052em;
  margin-block: 0.55rem 0.72rem;
}
.detail-block p:not(.eyebrow), .plain-steps { color: var(--muted); }
.contact-page-grid { border-bottom: 1px solid var(--line); }
.plain-address { font-style: normal; margin-bottom: 0.78rem; }
.detail-block .panel-actions { margin-top: 1.1rem; }
.subpage-section { align-items: start; }
.plain-steps { margin: 0; padding-left: 1.3rem; }
.plain-steps li + li { padding-top: 0.55rem; }
.role-list article + article { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; }
.role-list h3 { font-size: 1.65rem; line-height: 1.12; margin-bottom: 0.35rem; }

@media (max-width: 60rem) {
  .frame { width: calc(100% - 4rem); }
  .site-header, .site-header nav { gap: 1rem; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero-photo { min-height: 26rem; }
}

@media (max-width: 48rem) {
  .frame { width: calc(100% - 2.5rem); }
  .site-header { min-height: initial; flex-wrap: wrap; gap: 0.75rem; padding-block: 1rem; }
  .site-header nav { order: 2; width: 100%; justify-content: flex-start; gap: 0.45rem 0.82rem; flex-wrap: wrap; }
  .site-header nav a, .header-contact { font-size: 0.9rem; }
  .site-header nav a { padding-block: 0.4rem; }
  .brand { font-size: 1.13rem; }
  .brand small { font-size: 0.69rem; }
  .header-contact { padding: 0.36rem 0.65rem; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: auto; }
  .hero-copy { padding: 1.65rem clamp(1.1rem, 5vw, 2.4rem); }
  h1 { font-size: clamp(2.35rem, 10vw, 4.65rem); margin-block: 0.75rem 1.05rem; }
  .hero-actions { margin-top: 1.05rem; }
  .hero-photo { min-height: auto; aspect-ratio: 1.55; }
  .home-shortcuts { grid-template-columns: minmax(0, 1fr); }
  .home-shortcuts a { padding: 0.8rem 1.05rem; }
  .home-shortcuts a + a { border-left: 0; border-top: 1px solid var(--line); }
  .product-section { grid-template-columns: 1fr; gap: 1.35rem; padding-block: 2.7rem; }
  .product-copy { grid-row: 1; }
  .services-layout, .business-section, .about-section, .home-links, .page-intro-split, .details-grid, .contact-page-grid, .footer-layout { grid-template-columns: minmax(0, 1fr); }
  .services-layout { gap: 2.35rem; }
  .about-section { gap: 1.35rem; }
  .contact-strip { flex-direction: column; align-items: start; }
  .contact-strip .button { align-self: start; }
  .page-intro h1 { font-size: clamp(2.4rem, 9.5vw, 4.2rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}

/* --- Negozio online --- */
.shop-section { padding-block: clamp(2.75rem, 5.8vw, 4.9rem) 0; }
.shop-section > h2 { font-size: clamp(2.3rem, 4.2vw, 4rem); letter-spacing: -0.06em; margin-block: 0.55rem 1.8rem; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.4rem; }
.product-grid .button { text-align: center; }
.product-card {
  display: flex; flex-direction: column; align-items: start; gap: 0.5rem;
  padding: 1.5rem; background: #f0eee3; border-top: 2px solid #b58931; border-radius: 0 0 0.25rem 0.25rem;
}
.product-card h3 { font-size: 1.85rem; line-height: 1.1; letter-spacing: -0.04em; }
.product-card p:not(.eyebrow):not(.product-price) { color: var(--muted); }
.product-price { font: 1.6rem/1.2 var(--serif); margin-top: auto; padding-top: 0.6rem; }
.product-card .button { margin-top: 0.4rem; }
.fruit-mark { width: 2.4rem; height: 2.4rem; border-radius: 58% 46% 55% 48%; transform: rotate(-21deg); margin-bottom: 0.4rem; }
.fruit-limone { background: var(--yellow); border: 1px solid #c89b34; }
.fruit-arancia { background: #ec8a2e; border: 1px solid #b8641a; border-radius: 50%; }
.shop-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.4rem, 4vw, 3.5rem); padding-block: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.shop-info h3 { font-size: 1.65rem; margin-bottom: 0.4rem; }
.shop-info p { color: var(--muted); }
.shop-legal { padding-block: 1.6rem 3rem; color: var(--muted); font-size: 0.95rem; }
.legal-text { max-width: 48rem; padding-block: clamp(2.5rem, 5vw, 4rem); }
.legal-text h2 { font-size: 1.75rem; margin: 2rem 0 0.5rem; }
.legal-text h2:first-child { margin-top: 0; }
.legal-text p, .legal-text li { color: var(--muted); }
.legal-text ul { padding-left: 1.3rem; margin: 0; }
.legal-text li + li { margin-top: 0.4rem; }
@media (max-width: 48rem) { .shop-info { grid-template-columns: minmax(0, 1fr); } }

/* --- Moduli Netlify, ordine, WhatsApp --- */
.email-form .optional { font-weight: 400; color: var(--muted); }
.email-form .hidden-field { position: absolute; left: -9999px; }
.email-form .form-note { font-size: 0.85rem; color: var(--muted); margin: 0; }
.email-form .form-note a { color: inherit; }
.email-form button { border: 0; cursor: pointer; font-family: inherit; }
.email-form input[type="file"] { padding: 0.45rem; }
.order-section { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr); gap: clamp(1.6rem, 5vw, 4.5rem); padding-block: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); scroll-margin-top: 1rem; }
.order-intro h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); letter-spacing: -0.05em; margin-block: 0.55rem 0.8rem; }
.order-intro p:not(.eyebrow) { color: var(--muted); margin-bottom: 0.8rem; }
.order-section .email-form { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.order-section .email-form .wide, .order-section .email-form .form-note, .order-section .email-form .button { grid-column: 1 / -1; }
.qty-group { border: 1px solid var(--line); border-radius: 0.25rem; padding: 0.9rem 1rem 1rem; margin: 0; background: #f0eee3; }
.qty-group legend { font-weight: 700; padding: 0 0.3rem; }
.qty-group.needs-qty { border-color: #aa5a0e; }
.qty-group.needs-qty legend::after { content: " Scegli almeno una cassetta."; color: #9a4c07; font-weight: 600; }
.qty-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem 1rem; }
.whatsapp { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 5; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1rem; border-radius: 2rem; background: #1f7a4a; color: white; font-weight: 700; font-size: 0.95rem; text-decoration: none; box-shadow: 0 6px 18px #0003; }
.whatsapp:hover { background: #17643b; }
.whatsapp svg { width: 1.4rem; height: 1.4rem; }
@media (max-width: 48rem) {
  .order-section, .order-section .email-form, .qty-grid { grid-template-columns: minmax(0, 1fr); }
  .whatsapp span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .whatsapp { padding: 0.8rem; }
}
