@import url("https://fonts.googleapis.com/css2?family=Allura&family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;1,600;1,700&display=swap");

:root {
  --green: #004d34;
  --green-dark: #003825;
  --bg: #fff;
  --taupe: #b8aea5;
  --text: #174737;
  --white: #ffffff;
}

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

html {
  font-size: 106%;
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--text);
  background: var(--bg);
}

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

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

picture {
  display: contents;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.site-header {
  background: #f8f8f8;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: transform 0.35s ease;
}

.site-header.hide {
  transform: translateY(-100%);
}

.nav-row {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.logo img {
  height: 80px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  gap: 38px;
  font-size: 14px;
  font-weight: 500;
}

.main-nav .active {
  font-weight: 500;
}

.social {
  display: flex;
  gap: 10px;
}

.social a {
  font-size: 22px;
}

.site-footer {
  background: var(--green);
  color: #f4f4f4;
  text-align: center;
  padding: 20px 14px 24px;
  font-size: 15px;
}

.footer-top {
  line-height: 1.8;
  margin-bottom: 10px;
}

.btn {
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  padding: 15px 36px;
  font-weight: 700;
  display: inline-block;
}

.btn-light {
  background: #fff;
  color: var(--green);
}

.btn-outline-light {
  border: 1px solid #d4d4d4;
  background: #fff;
  color: #2b2b2b;
  padding: 11px 26px;
}

.cookie-link {
  font-style: italic;
  font-size: 14px;
  text-decoration: underline;
}

.home-hero {
  min-height: 520px;
  background:
    linear-gradient(90deg, rgba(80, 66, 55, 0.55) 0 38%, rgba(80, 66, 55, 0.1) 56%, rgba(80, 66, 55, 0.1) 100%),
    image-set(url("imm/banner.webp") type("image/webp"), url("imm/banner.jpg") type("image/jpeg")) center/cover no-repeat;
  background-color: #504237;
  display: flex;
}

.home-overlay {
  width: min(430px, 100%);
  padding: 76px 44px;
  margin-left: 64px;
  color: #fff;
}

.home-overlay h1 {
  font-size: 46px;
  line-height: 1;
  margin-bottom: 14px;
}

.home-overlay .subtitle {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
}

.home-overlay ul {
  margin-bottom: 24px;
  padding-left: 16px;
  font-size: 15px;
  line-height: 1.8;
}

.about {
  text-align: center;
  padding: 60px 0 52px;
}

.about h2 {
  font-size: 56px;
  color: var(--green);
}

.about h3 {
  font-size: 24px;
  font-style: italic;
  margin-bottom: 16px;
}

.about p {
  width: min(1020px, 90vw);
  margin: 0 auto 18px;
  font-size: 19px;
  line-height: 1.5;
}

.follow {
  padding: 38px 0 50px;
  text-align: center;
}

.follow-contact {
  margin-top: 40px;
  text-align: center;
}

.follow h3 {
  font-size: 46px;
  margin-bottom: 26px;
  font-style: italic;
}

.follow h3 a {
  color: inherit;
}

.follow h3 a:hover {
  opacity: 0.85;
  text-decoration: underline;
}

.circle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(128px, 184px));
  gap: 32px;
  align-items: center;
  justify-content: center;
}

.circle-item {
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  background-size: cover;
  background-position: center;
  position: relative;
}

.circle-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.circle-label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px 8px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* INTRO */

.pilastri-intro {
  text-align: center;
  padding: 40px 0 100px;
}

.intro-tag {
  letter-spacing: 4px;
  font-size: 13px;
  color: var(--green);
  margin-bottom: 24px;
}

.pilastri-intro h2 {
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.2;
  max-width: 950px;
  margin: 0 auto;
  color: var(--green);
}

/* GRID */

.pilastri-grid {
  background: #f6f3ef;
  padding-bottom: 120px;
}

.pilastri-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 70px;
  padding: 90px 0;
}

.pilastri-row.reverse .pilastri-card {
  order: 2;
}

.pilastri-row.reverse .pilastri-image {
  order: 1;
}

/* CARD */

.pilastri-card {
  padding: 20px;
}

.pillar-number {
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--taupe);
  display: block;
  margin-bottom: 20px;
}

.pilastri-card h2 {
  font-size: clamp(36px, 4vw, 64px);
  line-height: 1;
  margin-bottom: 24px;
  color: var(--green);
}

.pilastri-card p {
  font-size: 19px;
  line-height: 1.9;
  color: #4a4a4a;
  max-width: 540px;
}

/* IMAGE */

.pilastri-image {
  position: relative;
}

.pilastri-image img {
  width: 100%;
  height: 620px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 25px 60px rgba(0,0,0,.12);
}

/* CTA */

.pilastri-cta {
  background: #fff;
  color: white;
  text-align: center;
  padding: 120px 24px;
}

.pilastri-cta h2 {
  font-size: clamp(40px, 6vw, 74px);
  margin-bottom: 24px;
  color: #004D34;
}

.pilastri-cta p {
  max-width: 760px;
  margin: 0 auto 40px;
  font-size: 20px;
  line-height: 1.8;
  opacity: .9;
  color: #004D34;
}

.pilastri-cta .btn {
  background: #004D34;
  color: var(--white);
}

/* RESPONSIVE */

@media (max-width: 980px) {

  .pilastri-row {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 0;
  }

  .pilastri-row.reverse .pilastri-card,
  .pilastri-row.reverse .pilastri-image {
    order: unset;
  }

  .pilastri-image img {
    height: 420px;
  }

  .pilastri-card {
    text-align: center;
  }

  .pilastri-card p {
    margin: 0 auto;
  }

}

@media (max-width: 640px) {

  .pilastri-intro {
    padding: 70px 0;
  }

  .pilastri-card h2 {
    font-size: 42px;
  }

  .pilastri-card p {
    font-size: 17px;
    line-height: 1.7;
  }

  .pilastri-image img {
    height: 300px;
    border-radius: 20px;
  }

  .pilastri-cta {
    padding: 90px 20px;
  }

}

.page-hero-img {
  height: 600px;
  object-fit: cover;
  width: 100%;
}

.content-block {
  text-align: center;
  padding: 44px 0 52px;
}

.content-block h1,
.content-block .block-title {
  font-size: 56px;
  color: var(--green);
  margin-bottom: 10px;
}

.content-block h2,
.content-block .block-sub {
  font-size: 30px;
  font-style: italic;
  margin-bottom: 16px;
  font-weight: 500;
}

.content-block p,
.content-block li {
  font-size: 19px;
  line-height: 1.5;
}

.content-block ul {
  list-style: disc;
  width: min(1040px, 92vw);
  margin: 20px auto 0;
  text-align: left;
}

.products-section {
  padding: 52px 0 44px;
}

.products-section h2 {
  font-size: 44px;
  color: var(--green);
  margin-bottom: 42px;
}

.products-section section + section {
  margin-top: 60px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 38px 44px;
}

.product-card {
  text-align: center;
}

.product-card img {
  height: 228px;
  object-fit: contain;
  margin: 0 auto 10px;
}

.product-card h4 {
  font-size: 19px;
  margin-bottom: 8px;
}

.product-card .btn {
  padding: 11px 24px;
  font-size: 15px;
}

.product-detail {
  text-align: center;
  padding: 24px 0 40px;
}

.detail-cans {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  margin: 20px 0;
}

.detail-cans img {
  margin: 0 auto;
}

.detail-cans .center {
  width: min(420px, 90%);
  grid-column: 2;
}

.detail-cans .side {
  opacity: 0.35;
  width: min(250px, 80%);
}

@media (max-width: 560px) {
  .detail-cans .center { grid-column: auto; }
}

.detail-desc p {
  font-size: 19px;
  line-height: 1.4;
  width: min(1100px, 92vw);
  margin: 0 auto 30px;
}

.detail-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  width: min(1100px, 94vw);
  margin: 0 auto 34px;
  align-items: center;
}

.detail-panel {
  border-right: 4px solid var(--green);
  text-align: left;
  padding-right: 24px;
}

.detail-panel h3,
.texture-panel h3 {
  font-size: 48px;
  color: var(--green);
  margin-bottom: 12px;
}

.detail-panel ul {
  list-style: disc;
  padding-left: 24px;
  font-size: 19px;
  line-height: 1.5;
}

.texture-panel img {
  width: 75%;
}

.contact-wrap {
  background: var(--green);
  color: #fff;
  text-align: center;
  padding: 76px 0 98px;
}

.contact-wrap h1 {
  font-size: 52px;
  margin-bottom: 10px;
}

.contact-wrap .intro {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}

.form-card {
  width: min(600px, 92vw);
  margin: 0 auto;
  background: #ededed;
  color: #333;
  border-radius: 14px;
  padding: 28px;
  text-align: left;
}

.form-logo {
  text-align: center;
  font-family: "Allura", cursive;
  font-size: 50px;
  color: var(--green);
  margin-bottom: 10px;
}

.form-card label {
  display: block;
  font-size: 19px;
  margin: 14px 0 6px;
}

.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="tel"] {
  width: 100%;
  border: 1px solid #bdbdbd;
  background: #fff;
  border-radius: 8px;
  height: 60px;
  padding: 0 12px;
  font-size: 24px;
}

.form-card textarea {
  width: 100%;
  border: 1px solid #bdbdbd;
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  font-size: 24px;
  font-family: inherit;
  resize: vertical;
  min-height: 120px;
}

.check-row {
  background: #d9d9d9;
  border-radius: 8px;
  margin: 8px 0;
  padding: 12px;
  font-size: 17px;
}

.check-row input {
  margin-right: 8px;
}

.privacy-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 4px 8px;
  font-size: 14px;
  line-height: 1.4;
}

.privacy-row input[type="checkbox"] {
  flex: 0 0 auto;
  margin-top: 3px;
}

.privacy-row a {
  text-decoration: underline;
  color: var(--green);
}

.recaptcha-row {
  display: flex;
  justify-content: center;
  margin: 14px 0 6px;
}

.recaptcha-row .g-recaptcha.attenzione {
  outline: 2px solid #d23;
  border-radius: 4px;
}

.submit-btn {
  width: 100%;
  border-radius: 999px;
  background: #000;
  color: #fff;
  border: 0;
  font-size: 26px;
  padding: 14px 12px;
  margin-top: 10px;
}

.small-note {
  text-align: center;
  font-size: 17px;
  margin-top: 8px;
}

.thanks-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}

.thanks-logo {
  font-family: "Allura", cursive;
  font-size: 92px;
  color: var(--green);
}

.thanks-page p {
  font-size: 30px;
  margin: 8px 0 22px;
}

@media (max-width: 1200px) {
  .logo img { height: 58px; }
  .main-nav { gap: 20px; font-size: 14px; }
  .home-overlay h1 { font-size: 52px; }
  .about h2 { font-size: 50px; }
  .about p, .content-block p, .content-block li { font-size: 17px; }
  .follow h3 { font-size: 46px; }
  .circle-item { font-size: 15px; }
  .content-block h1, .content-block .block-title { font-size: 52px; }
  .content-block h2, .content-block .block-sub { font-size: 36px; }
  .products-section h2 { font-size: 46px; }
  .product-card h4 { font-size: 21px; }
  .detail-panel h3, .texture-panel h3 { font-size: 52px; }
  .detail-panel ul, .detail-desc p { font-size: 26px; }
  .contact-wrap h1 { font-size: 54px; }
  .contact-wrap .intro { font-size: 28px; }
  .form-card label, .check-row { font-size: 26px; }
  .submit-btn { font-size: 30px; }
  .thanks-logo { font-size: 88px; }
  .thanks-page p { font-size: 34px; }
}

@media (max-width: 900px) {
  .nav-row { flex-direction: column; padding: 14px 0; }
  .main-nav { flex-wrap: wrap; justify-content: center; }
  .home-overlay { padding: 44px 20px; margin-left: 36px; }
  .circle-grid { grid-template-columns: repeat(2, minmax(128px, 184px)); justify-content: center; }
  /* Solo se il numero di cerchi e dispari: ultimo cerchio centrato sotto */
  .circle-grid .circle-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    max-width: 184px;
  }
  .pilastri-row, .detail-bottom { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-panel { border-right: 0; border-bottom: 4px solid var(--green); padding-bottom: 14px; }
}

@media (max-width: 560px) {
  .products-grid { grid-template-columns: 1fr; }
  .detail-cans { grid-template-columns: 1fr; gap: 16px; }
}

/* ——— Privacy policy (replica layout reference) ——— */
.privacy-policy {
  padding: 60px 0 80px;
  background: #f5f5f5;
}

.privacy-policy .policy-inner {
  width: 92%;
  max-width: 1450px;
  margin: 0 auto;
}

.privacy-policy h1 {
  font-size: 42px;
  font-weight: 400;
  margin-bottom: 28px;
  color: var(--green);
}

.privacy-policy h1 strong {
  font-weight: 700;
}

.privacy-policy p {
  font-size: 20px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 12px;
}

.privacy-policy a.btn {
  color: #fff;
}

.privacy-policy a.btn:hover {
  opacity: 0.92;
}

.privacy-policy a:not(.btn) {
  color: #2c2c2c;
  transition: opacity 0.3s;
}

.privacy-policy a:not(.btn):hover {
  opacity: 0.7;
}

.policy-hr {
  border: none;
  border-top: 1px solid #d9d9d9;
  margin: 65px 0;
}

.privacy-policy h2 {
  font-size: 36px;
  margin-bottom: 55px;
  font-weight: 700;
  color: var(--green);
}

.privacy-policy .contact-box {
  display: flex;
  align-items: flex-start;
  gap: 35px;
}

.privacy-policy .contact-box .icon span {
  font-size: 48px;
}

.privacy-policy .contact-content h3 {
  font-size: 24px;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--green);
}

.privacy-policy .contact-content h4 {
  font-size: 22px;
  margin-top: 35px;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--green);
}

.privacy-policy .contact-content p {
  font-size: 20px;
  color: #555;
}

.policy-home-btn {
  margin-top: 24px;
}

.privacy-policy .bottom-text {
  margin-top: 20px;
}

.privacy-policy .bottom-text .update {
  margin-bottom: 45px;
}

.privacy-policy .bottom-text .en {
  color: #a5a5a5 !important;
}

@media (max-width: 768px) {
  .privacy-policy {
    padding: 40px 0 60px;
  }

  .privacy-policy h1 {
    font-size: 30px;
  }

  .privacy-policy h2 {
    font-size: 28px;
  }

  .privacy-policy p {
    font-size: 17px;
  }

  .privacy-policy .contact-box {
    flex-direction: column;
    gap: 20px;
  }

  .privacy-policy .contact-content h3 {
    font-size: 22px;
  }

  .privacy-policy .contact-content h4 {
    font-size: 20px;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}