:root {
  --wood-950: #1c120b;
  --wood-900: #28190f;
  --wood-800: #3a2416;
  --wood-700: #5b371e;
  --wood-500: #9a6335;
  --gold: #c89752;
  --cream: #f7efe4;
  --sand: #ead9c3;
  --paper: #fffaf3;
  --white: #ffffff;
  --muted: #7c6b5b;
  --text: #302418;
  --border: rgba(90, 55, 30, 0.14);
  --shadow: 0 24px 70px rgba(45, 26, 12, 0.14);
  --radius: 28px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 14px 0;
  transition: 0.3s ease;
}

.site-header.scrolled {
  background: rgba(28, 18, 11, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-wrapper {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  width: 108px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 250, 243, 0.92);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--cream);
  font-size: 0.94rem;
  font-weight: 700;
}

.main-nav a {
  opacity: 0.92;
  transition: 0.25s ease;
}

.main-nav a:hover {
  color: var(--gold);
  opacity: 1;
}

.nav-cta {
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 250, 243, 0.95);
  cursor: pointer;
  padding: 12px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--wood-900);
  margin: 5px 0;
  border-radius: 2px;
}

.hero {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  padding: 140px 0 80px;
  display: flex;
  align-items: center;
  color: var(--cream);
  background: var(--wood-950);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(105deg, rgba(28, 18, 11, 0.96) 0%, rgba(40, 25, 15, 0.88) 42%, rgba(40, 25, 15, 0.48) 100%),
    radial-gradient(circle at 78% 22%, rgba(200, 151, 82, 0.25), transparent 30%),
    url("assets/img/legno.svg") center/cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 170px;
  background: linear-gradient(to bottom, transparent, var(--paper));
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: end;
  gap: 54px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 42px;
  height: 1px;
  background: currentColor;
}

.section-kicker.light {
  color: var(--sand);
}

.hero h1,
.section-heading h2,
.section-copy h2,
.quote-copy h2,
.contact-info h2 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hero h1 {
  font-size: clamp(3rem, 6.6vw, 6.9rem);
  max-width: 900px;
  margin-bottom: 26px;
}

.hero p {
  max-width: 690px;
  color: rgba(247, 239, 228, 0.82);
  font-size: 1.08rem;
  margin-bottom: 34px;
}

.hero-actions,
.filters,
.form-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: var(--gold);
  color: var(--wood-950);
  box-shadow: 0 18px 40px rgba(200, 151, 82, 0.25);
}

.btn-ghost {
  color: var(--cream);
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.05);
}

.btn-dark {
  color: var(--cream);
  background: var(--wood-900);
}

.btn.full {
  width: 100%;
}

.hero-card {
  max-width: 430px;
  justify-self: end;
  padding: 34px;
  border-radius: var(--radius);
  background: rgba(255, 250, 243, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.hero-card-label {
  color: var(--gold) !important;
  margin-bottom: 10px !important;
  font-size: 0.82rem !important;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
}

.hero-card h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.1rem;
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero-stats {
  display: grid;
  gap: 14px;
}

.hero-stats div {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 14px;
  padding: 15px;
  border-radius: 18px;
  background: rgba(255, 250, 243, 0.08);
}

.hero-stats strong {
  color: var(--gold);
  font-size: 1.2rem;
}

.hero-stats span {
  color: rgba(247, 239, 228, 0.88);
  font-weight: 700;
}

.trust-bar {
  margin-top: -34px;
  position: relative;
  z-index: 3;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.trust-grid div {
  padding: 24px 18px;
  text-align: center;
  border-right: 1px solid var(--border);
  font-weight: 800;
  color: var(--wood-800);
}

.trust-grid div:last-child {
  border-right: 0;
}

.section {
  padding: 110px 0;
}

.split-grid,
.workmanship-grid,
.quote-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.media-frame {
  position: relative;
  border-radius: 34px;
  padding: 16px;
  background: linear-gradient(145deg, var(--white), var(--cream));
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 20px auto auto 20px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(200, 151, 82, 0.35);
  border-radius: 50%;
}

.media-frame img {
  position: relative;
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center;
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px rgba(90, 55, 30, 0.1);
}

.section-copy h2,
.section-heading h2,
.quote-copy h2,
.contact-info h2 {
  color: var(--wood-950);
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  margin-bottom: 22px;
}

.section-copy p,
.section-heading p,
.quote-copy p,
.contact-info p {
  color: var(--muted);
  font-size: 1.02rem;
  margin-bottom: 18px;
}

.signature-card {
  margin-top: 28px;
  padding: 22px;
  border-left: 4px solid var(--gold);
  border-radius: 18px;
  background: var(--cream);
}

.signature-card span {
  display: block;
  font-family: "Playfair Display", serif;
  color: var(--wood-900);
  font-size: 1.7rem;
  line-height: 1;
}

.signature-card p {
  margin: 6px 0 0;
  font-weight: 700;
  color: var(--wood-700);
}

.services,
.products {
  background:
    radial-gradient(circle at 15% 10%, rgba(200, 151, 82, 0.14), transparent 32%),
    linear-gradient(180deg, var(--cream) 0%, #f5eadc 100%);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  min-height: 275px;
  padding: 28px;
  border-radius: 26px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 18px 45px rgba(45, 26, 12, 0.08);
  transition: 0.25s ease;
}

.service-card:hover,
.product-card:hover,
.contact-panel:hover {
  transform: translateY(-7px);
}

.card-number {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--wood-950);
  color: var(--gold);
  font-weight: 900;
  margin-bottom: 34px;
}

.service-card h3,
.product-info h3,
.work-card h3,
.contact-panel h3 {
  color: var(--wood-950);
  font-size: 1.25rem;
  line-height: 1.2;
  margin-bottom: 12px;
}

.service-card p,
.product-info p,
.contact-panel p,
.contact-panel li {
  color: var(--muted);
  font-size: 0.96rem;
}

.filters {
  margin-bottom: 30px;
}

.filter-btn {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--wood-800);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--wood-950);
  color: var(--gold);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: stretch;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: rgba(255, 250, 243, 0.92);
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(90, 55, 30, 0.16);
  box-shadow: 0 20px 55px rgba(45, 26, 12, 0.11);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
  box-shadow: 0 28px 72px rgba(45, 26, 12, 0.17);
  border-color: rgba(200, 151, 82, 0.38);
}

.product-image {
  position: relative;
  height: 310px;
  margin: 14px 14px 0;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(28, 18, 11, 0.06), rgba(200, 151, 82, 0.18)),
    #efe0ce;
  box-shadow: inset 0 0 0 1px rgba(90, 55, 30, 0.1);
}

.product-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(28, 18, 11, 0.32), transparent 42%),
    radial-gradient(circle at 18% 12%, rgba(255, 250, 243, 0.24), transparent 34%);
  pointer-events: none;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.045);
}

.product-image.image-wide img {
  object-fit: cover;
  object-position: center;
}

.product-image.image-portrait img {
  object-fit: cover;
  object-position: center;
}

.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px 26px 28px;
}

.product-info span {
  display: inline-block;
  color: var(--gold);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 900;
  margin-bottom: 12px;
}

.product-info a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 12px 16px;
  color: var(--wood-950);
  background: rgba(200, 151, 82, 0.18);
  border: 1px solid rgba(200, 151, 82, 0.32);
  border-radius: 999px;
  font-weight: 900;
  transition: 0.22s ease;
}

.product-info a:hover {
  background: var(--wood-950);
  color: var(--gold);
}

.workmanship {
  background: var(--paper);
}

.check-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.check-list li {
  position: relative;
  padding-left: 34px;
  font-weight: 800;
  color: var(--wood-800);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--wood-950);
  font-size: 0.8rem;
}

.work-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.work-card {
  position: relative;
  min-height: 180px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 28px;
  color: var(--cream);
  background: var(--wood-950);
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
}

.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(28, 18, 11, 0.08), rgba(28, 18, 11, 0.92));
  z-index: -1;
}

.work-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
  transform: scale(1.03);
}

.work-card.large {
  grid-column: span 2;
  min-height: 280px;
}

.work-card.accent {
  background: var(--wood-950);
}

.work-card.accent .work-card-img {
  object-position: center;
}

.work-card span {
  position: relative;
  z-index: 1;
  color: rgba(255, 250, 243, 0.76);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.work-card h3 {
  position: relative;
  z-index: 1;
  color: var(--cream);
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  margin-bottom: 0;
}


.certifications {
  background:
    radial-gradient(circle at 12% 18%, rgba(200, 151, 82, 0.16), transparent 34%),
    linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
}


.pefc-official-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: center;
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 32px;
  background: linear-gradient(135deg, var(--wood-950), var(--wood-800));
  color: var(--cream);
  box-shadow: 0 24px 65px rgba(45, 26, 12, 0.18);
  border: 1px solid rgba(200, 151, 82, 0.32);
}

.pefc-logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 210px;
  padding: 22px;
  border-radius: 26px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(90, 55, 30, 0.08), 0 18px 45px rgba(0, 0, 0, 0.18);
}

.pefc-logo-box img {
  max-width: 100%;
  max-height: 170px;
  object-fit: contain;
  display: block;
}

.pefc-card-content h3 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.08;
  margin: 12px 0 10px;
  color: var(--cream);
}

.pefc-card-content p {
  color: rgba(247, 239, 228, 0.82);
  margin-bottom: 22px;
}

.pefc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-ghost-dark {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 250, 243, 0.22);
}

.btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(200, 151, 82, 0.44);
  transform: translateY(-2px);
}

.pefc-video-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  margin-bottom: 30px;
  border-radius: 32px;
  background: rgba(255, 250, 243, 0.94);
  border: 1px solid rgba(90, 55, 30, 0.14);
  box-shadow: 0 22px 58px rgba(45, 26, 12, 0.1);
}

.pefc-video-copy h3 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.6rem, 2.6vw, 2.35rem);
  line-height: 1.1;
  color: var(--wood-950);
  margin: 14px 0 12px;
}

.pefc-video-copy p {
  color: var(--muted);
  margin-bottom: 18px;
}

.pefc-video-copy a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(200, 151, 82, 0.18);
  color: var(--wood-950);
  font-weight: 900;
  transition: 0.25s ease;
}

.pefc-video-copy a:hover {
  background: var(--gold);
  transform: translateY(-2px);
}

.pefc-video-visual {
  min-height: 250px;
  border-radius: 26px;
  padding: 28px;
  color: #fff8ee;
  background:
    linear-gradient(135deg, rgba(45, 26, 12, 0.92), rgba(92, 53, 26, 0.76)),
    url("assets/certificazioni/pefc-logo-sito.jpg") center / contain no-repeat,
    var(--wood-950);
  box-shadow: 0 20px 50px rgba(45, 26, 12, 0.18);
  border: 1px solid rgba(200, 151, 82, 0.28);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 18px;
  transition: 0.25s ease;
}

.pefc-video-visual:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 65px rgba(45, 26, 12, 0.24);
}

.pefc-play-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--wood-950);
  font-size: 1.35rem;
  padding-left: 4px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.pefc-video-visual strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 1.55rem;
  margin-bottom: 6px;
}

.pefc-video-visual span {
  color: rgba(255, 248, 238, 0.76);
}

.certification-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.certification-highlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  margin-bottom: 28px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--wood-950), var(--wood-800));
  color: var(--cream);
  box-shadow: 0 24px 65px rgba(45, 26, 12, 0.18);
  border: 1px solid rgba(200, 151, 82, 0.32);
}

.certification-highlight h3 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.08;
  margin: 10px 0 8px;
}

.certification-highlight p {
  color: rgba(247, 239, 228, 0.78);
  margin: 0;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(200, 151, 82, 0.16);
  color: var(--gold);
  border: 1px solid rgba(200, 151, 82, 0.36);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.certification-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.certification-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255, 250, 243, 0.94);
  border: 1px solid rgba(90, 55, 30, 0.16);
  box-shadow: 0 20px 55px rgba(45, 26, 12, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.certification-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 30px 74px rgba(45, 26, 12, 0.16);
  border-color: rgba(200, 151, 82, 0.38);
}

.certification-preview {
  height: 360px;
  margin: 14px 14px 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid rgba(90, 55, 30, 0.1);
}

.certification-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.45s ease;
}

.certification-card:hover .certification-preview img {
  transform: scale(1.035);
}

.certification-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px 26px 28px;
}

.certification-content span {
  color: var(--gold);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 900;
  margin-bottom: 12px;
}

.certification-content h3 {
  color: var(--wood-950);
  font-size: 1.25rem;
  line-height: 1.18;
  margin-bottom: 12px;
}

.certification-content p {
  color: var(--muted);
  font-size: 0.96rem;
  margin-bottom: 20px;
}

.certification-content a {
  display: inline-flex;
  justify-content: center;
  margin-top: auto;
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--wood-950);
  background: rgba(200, 151, 82, 0.18);
  font-weight: 900;
  transition: 0.25s ease;
}

.certification-content a:hover {
  background: var(--gold);
  transform: translateY(-2px);
}

.quote-section {
  padding: 110px 0;
  background:
    linear-gradient(115deg, rgba(28, 18, 11, 0.95), rgba(58, 36, 22, 0.92)),
    url("assets/img/legno.svg") center/cover;
  color: var(--cream);
}

.quote-copy h2,
.quote-copy p {
  color: var(--cream);
}

.quote-copy p {
  opacity: 0.82;
}

.quote-form {
  padding: 30px;
  border-radius: 30px;
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.24);
}

.form-row {
  flex-wrap: nowrap;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: 1px solid rgba(58, 36, 22, 0.16);
  background: var(--white);
  color: var(--text);
  padding: 16px 18px;
  border-radius: 16px;
  margin-bottom: 14px;
  outline: 0;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(200, 151, 82, 0.15);
}

.form-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

.contact {
  background: var(--paper);
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.contact-list a {
  padding: 18px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--border);
  display: grid;
  gap: 4px;
  transition: 0.2s ease;
}

.contact-list a:hover {
  transform: translateX(6px);
  border-color: rgba(200, 151, 82, 0.55);
}

.contact-list strong {
  color: var(--wood-950);
}

.contact-list span {
  color: var(--muted);
}

.contact-panel {
  padding: 38px;
  border-radius: 32px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: 0.25s ease;
}

.contact-panel ul {
  margin: 18px 0 26px;
  padding-left: 20px;
}

.site-footer {
  background: var(--wood-950);
  color: rgba(247, 239, 228, 0.74);
  padding: 70px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 36px;
  padding-bottom: 36px;
}

.footer-grid img {
  width: 112px;
  background: var(--paper);
  padding: 12px;
  border-radius: 18px;
  margin-bottom: 18px;
}

.footer-grid h4 {
  color: var(--gold);
  margin-bottom: 14px;
}

.footer-grid a {
  display: block;
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom a {
  color: var(--gold);
  font-weight: 800;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 96px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 250, 243, 0.18);
  background: var(--wood-950);
  color: var(--cream);
  font-size: 1.4rem;
  font-weight: 900;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: 0.25s ease;
  z-index: 95;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold);
  color: var(--wood-950);
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 18px 45px rgba(37, 211, 102, 0.34);
  transition: 0.25s ease;
}

.floating-whatsapp:hover {
  transform: translateY(-4px) scale(1.04);
}

.floating-whatsapp img {
  width: 34px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.18s; }
.delay-3 { transition-delay: 0.26s; }

@media (max-width: 1020px) {
  .hero-grid,
  .split-grid,
  .workmanship-grid,
  .quote-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    justify-self: start;
  }

  .service-grid,
  .product-grid,
  .certification-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .certification-card:last-child {
    grid-column: span 2;
  }

  .pefc-official-card,
  .pefc-video-card {
    grid-template-columns: 1fr;
  }

  .pefc-logo-box {
    width: min(100%, 320px);
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    padding: 10px 0;
    background: rgba(28, 18, 11, 0.92);
    backdrop-filter: blur(14px);
  }

  .brand {
    width: 92px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 86px;
    left: 14px;
    right: 14px;
    display: grid;
    gap: 0;
    padding: 14px;
    border-radius: 22px;
    background: rgba(28, 18, 11, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav a {
    padding: 14px;
    border-radius: 14px;
  }

  .nav-cta {
    text-align: center;
    margin-top: 4px;
  }

  .hero {
    min-height: auto;
    padding: 128px 0 90px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 14vw, 4.4rem);
  }

  .hero-card {
    padding: 24px;
  }

  .section {
    padding: 78px 0;
  }

  .trust-grid,
  .service-grid,
  .product-grid,
  .certification-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .certification-card:last-child {
    grid-column: span 1;
  }

  .certification-grid-two {
    grid-template-columns: 1fr;
  }

  .pefc-official-card,
  .pefc-video-card {
    padding: 24px;
  }

  .pefc-actions {
    flex-direction: column;
  }

  .certification-highlight {
    align-items: flex-start;
    flex-direction: column;
  }

  .certification-preview {
    height: 320px;
  }

  .trust-grid div {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .trust-grid div:last-child {
    border-bottom: 0;
  }

  .media-frame img {
    height: 320px;
  }

  .product-image {
    height: 290px;
    margin: 12px 12px 0;
  }

  .service-card {
    min-height: auto;
  }

  .work-cards {
    grid-template-columns: 1fr;
  }

  .work-card.large {
    grid-column: span 1;
    min-height: 220px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .quote-section {
    padding: 78px 0;
  }

  .back-to-top {
    right: 16px;
    bottom: 86px;
    width: 44px;
    height: 44px;
  }

  .floating-whatsapp {
    width: 56px;
    height: 56px;
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 430px) {
  .hero-actions .btn,
  .btn {
    width: 100%;
  }

  .hero-stats div {
    grid-template-columns: 1fr;
  }

  .section-copy h2,
  .section-heading h2,
  .quote-copy h2,
  .contact-info h2 {
    font-size: 2.25rem;
  }
}


@media (max-width: 520px) {
  .product-image {
    height: 260px;
  }

  .certification-preview {
    height: 300px;
  }

  .product-info {
    padding: 22px;
  }
}


/* Rifiniture finali */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

section[id] {
  scroll-margin-top: 96px;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-legal a:hover,
.site-footer a:hover {
  color: var(--gold);
}

.legal-page {
  min-height: 100vh;
  padding: 130px 0 80px;
  background: var(--paper);
}

.legal-card {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 56px);
  border: 1px solid var(--border);
  border-radius: 30px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.legal-card h1 {
  margin-bottom: 18px;
  color: var(--wood-950);
  font-size: clamp(2.3rem, 6vw, 4rem);
}

.legal-card h2 {
  margin: 30px 0 10px;
  color: var(--wood-800);
  font-size: 1.35rem;
}

.legal-card p, .legal-card li { color: var(--muted); }
.legal-card ul { padding-left: 22px; }
.legal-back { margin-top: 34px; }

.no-results {
  grid-column: 1 / -1;
  padding: 28px;
  text-align: center;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--border);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 760px) {
  .footer-bottom { align-items: flex-start; gap: 16px; }
  .footer-legal { gap: 14px; }
}

/* I contenuti restano visibili anche quando JavaScript è disattivato. */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(28px); }
.js .reveal.visible { opacity: 1; transform: translateY(0); }
