
:root {
  --ink: #171a1c;
  --ink-soft: #24282b;
  --paper: #f5f2ec;
  --white: #ffffff;
  --wood: #b47a35;
  --wood-dark: #8b5c28;
  --wood-light: #d6ac78;
  --muted: #696e70;
  --line: rgba(23, 26, 28, .13);
  --radius: 22px;
  --shadow: 0 24px 70px rgba(22, 24, 25, .14);
  --container: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.container { width: var(--container); margin-inline: auto; }

.skip-link {
  position: fixed; z-index: 9999; left: 16px; top: -60px;
  background: var(--wood); color: #fff; padding: 10px 14px; border-radius: 8px;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245, 242, 236, .92);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 10px 35px rgba(0,0,0,.06); }
.nav-wrap { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; width: 270px; text-decoration: none; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { text-decoration: none; font-size: .93rem; font-weight: 700; }
.main-nav a:not(.nav-cta) { position: relative; }
.main-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px;
  background: var(--wood); transition: right .2s ease;
}
.main-nav a:hover::after { right: 0; }
.nav-cta { color: #fff; background: var(--ink); padding: 12px 19px; border-radius: 999px; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--ink); padding: 12px; }
.menu-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; transition: .2s ease; }

.hero { overflow: hidden; padding: 80px 0 95px; background:
  radial-gradient(circle at 77% 20%, rgba(180,122,53,.18), transparent 30%),
  linear-gradient(180deg, #f8f6f1 0%, var(--paper) 100%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr); align-items: center; gap: 80px; }
.eyebrow { margin: 0 0 20px; text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; font-weight: 800; color: var(--wood-dark); display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 32px; height: 2px; background: currentColor; }
.eyebrow-light { color: var(--wood-light); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 24px; font-size: clamp(3rem, 6vw, 5.7rem); line-height: .97; letter-spacing: -.055em; max-width: 760px; }
h2 { margin-bottom: 24px; font-size: clamp(2.25rem, 4vw, 4rem); line-height: 1.02; letter-spacing: -.045em; }
h3 { line-height: 1.12; }
.hero-lead { max-width: 680px; font-size: 1.16rem; color: #525759; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 44px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 52px; padding: 0 23px; border-radius: 999px; text-decoration: none; font-weight: 800; border: 1px solid transparent; cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--wood); }
.button-primary:hover { background: var(--wood-dark); }
.button-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.button-secondary:hover { border-color: var(--wood); }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; gap: 34px; }
.hero-points li { display: flex; flex-direction: column; padding-left: 16px; border-left: 2px solid var(--wood); }
.hero-points strong { font-size: 1.05rem; }
.hero-points span { color: var(--muted); font-size: .84rem; }
.hero-visual { position: relative; }
.visual-frame { position: relative; z-index: 2; border-radius: 34px; overflow: hidden; box-shadow: var(--shadow); transform: rotate(1.5deg); background: #ddd; }
.visual-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.48)); pointer-events: none; }
.visual-frame img { width: 100%; aspect-ratio: 1 / 1.03; object-fit: cover; filter: saturate(.86) contrast(1.05); }
.visual-label { position: absolute; z-index: 3; left: 25px; right: 25px; bottom: 22px; color: #fff; display: flex; align-items: center; gap: 13px; }
.visual-label small, .visual-label strong { display: block; }
.visual-label small { opacity: .78; }
.label-mark { width: 12px; height: 46px; background: var(--wood); border-radius: 4px; }
.pallet-lines { position: absolute; z-index: 1; width: 180px; height: 130px; right: -45px; top: -36px; opacity: .28; background: repeating-linear-gradient(0deg, var(--wood) 0 9px, transparent 9px 19px); transform: rotate(12deg); }

.trust-strip { background: var(--wood); color: #fff; }
.trust-grid { min-height: 82px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; gap: 20px; }
.trust-grid > div { display: flex; align-items: center; gap: 12px; font-size: .92rem; font-weight: 700; }
.trust-icon { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.17); }

.section { padding: 120px 0; }
.section-light { background: #fff; }
.section-dark { background: var(--ink); color: #fff; }
.split-layout { display: grid; grid-template-columns: .86fr 1.14fr; gap: 110px; align-items: start; }
.section-heading h2 { max-width: 700px; }
.section-heading-center { text-align: center; max-width: 780px; margin: 0 auto 60px; }
.section-heading-center .eyebrow { justify-content: center; }
.section-heading-center > p:last-child { color: #aeb2b3; }
.about-copy { border-top: 1px solid var(--line); padding-top: 30px; }
.large-copy { font-size: clamp(1.35rem, 2vw, 1.9rem); line-height: 1.35; color: var(--ink); }
.about-copy > p:not(.large-copy) { color: var(--muted); max-width: 720px; }
.about-signature { margin-top: 34px; display: flex; align-items: center; gap: 18px; }
.about-signature img { width: 62px; }
.about-signature strong, .about-signature span { display: block; }
.about-signature strong { font-size: 1.1rem; }
.about-signature span { color: var(--muted); }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { min-height: 330px; position: relative; overflow: hidden; padding: 30px; border-radius: var(--radius); background: var(--ink-soft); border: 1px solid rgba(255,255,255,.08); }
.service-number { position: absolute; right: 24px; top: 22px; color: #7f8486; font-weight: 800; font-size: .8rem; }
.service-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: rgba(180,122,53,.16); color: var(--wood-light); font-size: 1.7rem; margin-bottom: 76px; }
.service-card h3 { font-size: 1.55rem; margin-bottom: 13px; }
.service-card p { margin-bottom: 0; color: #b8bcbd; }
.service-card-photo { padding: 0; }
.service-card-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) contrast(1.05); }
.service-card-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(10,12,13,.85)); }
.service-photo-overlay { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 25px; display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.service-photo-overlay span { color: var(--wood-light); font-size: .8rem; font-weight: 800; }
.service-photo-overlay h3 { margin: 0; }

.quality-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.image-stack { position: relative; padding: 0 68px 68px 0; }
.image-main { width: 100%; border-radius: 28px; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: var(--shadow); filter: saturate(.8); }
.image-small { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; object-fit: cover; border: 10px solid #fff; border-radius: 26px; box-shadow: 0 18px 45px rgba(0,0,0,.18); }
.quality-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.feature-list { margin-top: 38px; border-top: 1px solid var(--line); }
.feature-list > div { display: grid; grid-template-columns: 44px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.feature-list > div > span { color: var(--wood); font-weight: 800; font-size: .82rem; }
.feature-list strong { display: block; margin-bottom: 4px; }
.feature-list p { margin: 0; color: var(--muted); font-size: .93rem; }

.product-band { display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); }
.product-panel { min-height: 520px; position: relative; overflow: hidden; }
.product-panel img { width: 100%; height: 100%; object-fit: cover; }
.product-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.78)); }
.product-panel > div { position: absolute; z-index: 2; left: 8%; bottom: 8%; color: #fff; }
.product-panel p { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; margin-bottom: 8px; }
.product-panel h3 { font-size: clamp(2rem, 4vw, 3.7rem); margin-bottom: 18px; }
.product-panel a { text-decoration: none; font-weight: 800; }
.product-panel a:hover { color: var(--wood-light); }
.product-panel-pellet img { object-position: center 44%; }

.contact-section { background: var(--ink); color: #fff; }
.contact-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 90px; align-items: start; }
.contact-copy > p:not(.eyebrow) { color: #b7bbbd; max-width: 580px; }
.contact-list { margin: 40px 0 32px; border-top: 1px solid rgba(255,255,255,.13); }
.contact-list a { display: flex; justify-content: space-between; gap: 20px; padding: 17px 0; border-bottom: 1px solid rgba(255,255,255,.13); text-decoration: none; }
.contact-list a:hover strong { color: var(--wood-light); }
.contact-list span { color: #909597; font-size: .84rem; }
.contact-list strong { text-align: right; }
.contact-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 30px 0; }
.contact-meta span, .contact-meta strong { display: block; }
.contact-meta span { color: #8e9395; font-size: .82rem; margin-bottom: 6px; }
.map-link { color: var(--wood-light); text-decoration: none; font-weight: 800; }

.contact-form { background: #fff; color: var(--ink); padding: clamp(26px, 4vw, 48px); border-radius: 28px; box-shadow: 0 32px 90px rgba(0,0,0,.22); }
.form-heading { margin-bottom: 28px; }
.form-heading span { color: var(--wood-dark); font-size: .75rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.form-heading h3 { font-size: 2rem; margin: 7px 0 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: block; font-size: .82rem; font-weight: 800; margin-bottom: 16px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; margin-top: 7px; border: 1px solid #d7d9da; border-radius: 12px; background: #fbfbfa; color: var(--ink); padding: 13px 14px; outline: none; transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--wood); box-shadow: 0 0 0 4px rgba(180,122,53,.12); }
.checkbox-label { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 500 !important; color: #5d6264; line-height: 1.45; }
.checkbox-label input { flex: 0 0 auto; width: 17px; height: 17px; margin: 3px 0 0; }
.checkbox-label a { color: var(--wood-dark); }
.hidden-field { position: absolute !important; left: -9999px !important; }
.form-button { width: 100%; border: 0; }
.form-status { margin: 14px 0 0; min-height: 24px; text-align: center; font-size: .9rem; }
.form-status.success { color: #167847; }
.form-status.error { color: #b42626; }

.site-footer { background: #0f1112; color: #b1b5b6; padding: 46px 0 24px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { width: 250px; filter: brightness(0) invert(1); opacity: .95; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 24px; }
.footer-nav a { text-decoration: none; font-weight: 700; font-size: .9rem; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; font-size: .78rem; }

.legal-page { background: #fff; }
.legal-hero { padding: 90px 0 50px; background: var(--paper); }
.legal-hero h1 { font-size: clamp(2.6rem, 5vw, 4.7rem); max-width: 900px; }
.legal-content { max-width: 850px; padding: 70px 0 100px; }
.legal-content h2 { font-size: 1.75rem; margin-top: 46px; margin-bottom: 14px; }
.legal-content h3 { margin-top: 30px; }
.legal-content p, .legal-content li { color: #505557; }
.legal-content ul { padding-left: 22px; }
.legal-card { padding: 24px; border-radius: 16px; background: var(--paper); border-left: 4px solid var(--wood); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .main-nav { position: fixed; left: 20px; right: 20px; top: 78px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 18px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px; }
  .nav-cta { text-align: center; margin-top: 6px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-copy { max-width: 780px; }
  .hero-visual { max-width: 620px; }
  .split-layout, .quality-grid, .contact-grid { grid-template-columns: 1fr; gap: 60px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr; padding: 18px 0; }
  .product-panel { min-height: 430px; }
}

@media (max-width: 680px) {
  :root { --container: min(100% - 28px, 1180px); --radius: 18px; }
  .nav-wrap { min-height: 72px; }
  .brand { width: 218px; }
  .hero { padding: 54px 0 70px; }
  h1 { font-size: clamp(2.75rem, 14vw, 4.4rem); }
  h2 { font-size: clamp(2.2rem, 10vw, 3.1rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-points { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .hero-points li:last-child { grid-column: 1 / -1; }
  .section { padding: 82px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 295px; }
  .product-band { grid-template-columns: 1fr; }
  .product-panel { min-height: 400px; }
  .image-stack { padding: 0 35px 45px 0; }
  .contact-meta, .form-grid { grid-template-columns: 1fr; }
  .contact-list a { flex-direction: column; gap: 4px; }
  .contact-list strong { text-align: left; }
  .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-nav { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
.form-status a { font-weight: 800; text-decoration: underline; }


.privacy-embedded { background: #f3f0eb; }
.privacy-wrap { max-width: 980px; }
.privacy-box { background: #fff; border: 1px solid rgba(23,26,28,.10); border-radius: 28px; padding: clamp(28px,5vw,62px); box-shadow: 0 24px 70px rgba(23,26,28,.07); }
.privacy-box details { border-top: 1px solid rgba(23,26,28,.12); padding: 20px 0; }
.privacy-box details:last-child { border-bottom: 1px solid rgba(23,26,28,.12); }
.privacy-box summary { cursor: pointer; font-weight: 850; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.privacy-box summary::-webkit-details-marker { display:none; }
.privacy-box summary::after { content:'+'; color: var(--wood); font-size:1.35rem; line-height:1; }
.privacy-box details[open] summary::after { content:'−'; }
.privacy-box details p { color: var(--muted); margin: 14px 0 0; }
.privacy-owner { background: #171a1c; color: #fff; border-radius: 18px; padding: 22px; margin: 24px 0 8px; line-height: 1.65; }
.privacy-owner a { color: var(--wood-light); }



/* Aggiornamento servizi: ogni servizio ha una fotografia dedicata. */
.service-card {
  min-height: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  background: #24282b;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(214,172,120,.45);
  box-shadow: 0 20px 48px rgba(0,0,0,.22);
}
.service-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: #151819; }
.service-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgba(0,0,0,.48)); pointer-events: none; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.service-card:hover .service-media img { transform: scale(1.035); }
.service-media .service-number {
  z-index: 2; top: 18px; right: 18px; width: 38px; height: 38px;
  display: grid; place-items: center; border-radius: 50%;
  color: #fff; background: rgba(23,26,28,.82); backdrop-filter: blur(8px);
}
.service-body { display: flex; flex-direction: column; flex: 1; padding: 26px 28px 28px; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.service-card p { flex: 1; margin-bottom: 22px; color: #b8bcbd; }
.service-link { width: fit-content; color: var(--wood-light); text-decoration: none; font-weight: 800; font-size: .9rem; }
.service-link:hover { color: #fff; }
.form-button:disabled { opacity: .65; cursor: wait; transform: none; }



/* Certificazioni */
.footer-certifications {
  padding: 32px 0 34px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-cert-heading {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: end;
  gap: 36px;
  margin-bottom: 22px;
}
.footer-cert-heading h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
  line-height: 1.1;
}
.footer-cert-heading p:last-child {
  margin: 0;
  color: #c9cecf;
}
.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.cert-card {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  min-height: 154px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
}
.cert-logo-box {
  min-height: 104px;
  padding: 13px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: #fff;
}
.cert-logo-box img {
  width: 100%;
  max-height: 86px;
  object-fit: contain;
}
.cert-copy strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 7px;
}
.cert-copy p {
  margin: 0;
  color: #c9cecf;
  font-size: .92rem;
  line-height: 1.55;
}
.footer-contact-line {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: #c9cecf;
  font-size: .88rem;
}
.footer-contact-line a { text-decoration: none; }
.footer-contact-line a:hover { color: #fff; }

@media (max-width: 820px) {
  .footer-cert-heading { grid-template-columns: 1fr; gap: 12px; }
  .cert-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .cert-card { grid-template-columns: 105px minmax(0, 1fr); gap: 15px; padding: 16px; }
  .cert-logo-box { min-height: 82px; }
}
