@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  --red: #e31b23;
  --dark: #17191c;
  --ink: #25282c;
  --muted: #6d7278;
  --line: #e7e8ea;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.7;
}

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

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

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.header-inner {
  height: 82px;
  width: min(1280px, calc(100% - 48px));
  margin: auto;
  display: flex;
  align-items: center;
  gap: 38px;
}

.brand img {
  width: 160px;
  height: auto;
}

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

.main-nav > a,
.nav-drop > button {
  background: none;
  border: 0;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  padding: 30px 0;
}

.nav-drop {
  position: relative;
}

.drop-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 78px;
  width: 285px;
  background: #fff;
  border-top: 3px solid var(--red);
  box-shadow: 0 10px 30px #0001;
}

.nav-drop:hover .drop-menu,
.nav-drop:focus-within .drop-menu {
  display: block;
}

.drop-menu a {
  display: block;
  padding: 14px 18px;
  font-size: 11px;
  border-bottom: 1px solid #eee;
}

.drop-menu a:hover {
  background: #f6f6f6;
}

.language {
  font-size: 11px;
  font-weight: 700;
  border-left: 1px solid #ddd;
  padding-left: 25px;
}

.menu-toggle {
  display: none;
}

.hero {
  min-height: 650px;
  background: #17191c;
  overflow: hidden;
  position: relative;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 45%, #444a50 0, #23272c 28%, #17191c 62%);
}

.hero-inner {
  position: relative;
  width: min(1180px, calc(100% - 48px));
  min-height: 650px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.hero-copy {
  padding: 90px 0;
}

.eyebrow,
.kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--red);
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(48px, 7vw, 92px);
  line-height: .95;
  margin: 15px 0 24px;
  font-weight: 800;
  letter-spacing: -.05em;
}

.hero-sub {
  font-size: 24px;
  max-width: 600px;
  margin: 0 0 10px;
  font-weight: 500;
}

.hero-desc {
  font-size: 15px;
  color: #d5d8db;
  max-width: 540px;
}

.hero-product {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-product img {
  width: min(520px, 90%);
  filter: drop-shadow(0 25px 35px #0008);
}

.cta {
  display: inline-flex;
  gap: 28px;
  align-items: center;
  margin-top: 25px;
  background: var(--red);
  color: #fff;
  padding: 15px 21px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
}

.cta span {
  font-size: 18px;
}

.section {
  padding: 100px 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.intro h2,
.section h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -.035em;
  margin: 8px 0 25px;
}

.lead {
  font-size: 19px;
  color: #53585e;
}

.feature-box {
  border-left: 4px solid var(--red);
  padding: 28px 35px;
  background: #f6f6f6;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 25px;
}

.feature-box strong {
  font-size: 35px;
}

.feature-box span {
  font-size: 12px;
  color: var(--muted);
}

.feature-box i {
  height: 1px;
  background: #ddd;
  grid-column: 1 / -1;
  margin: 14px 0;
}

.dark {
  background: #191b1e;
  color: #fff;
}

.section-head {
  margin-bottom: 45px;
}

.section-head.light h2 {
  color: #fff;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #404348;
}

.cards article {
  background: #191b1e;
  padding: 30px 26px;
  min-height: 250px;
}

.num {
  color: var(--red);
  font-weight: 800;
  font-size: 12px;
}

.cards h3 {
  font-size: 18px;
  line-height: 1.25;
}

.cards p {
  font-size: 13px;
  color: #bbbfc4;
}

.process-grid {
  grid-template-columns: 1.1fr .9fr;
}

.media {
  background: #f5f5f5;
  padding: 15px;
}

.media img {
  width: 100%;
}

.process p,
.benefit p,
.caseificio p {
  font-size: 15px;
  color: #5e6369;
}

.gallery {
  background: #f5f5f5;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 15px;
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  background: #ddd;
}

.gallery figure.large {
  grid-row: 1 / 3;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s;
}

.gallery figure:hover img {
  transform: scale(1.04);
}

.image-card {
  /*background: #111;*/
  padding: 22px;
}

.image-card img {
  width: 100%;
  height: 380px;
  object-fit: contain;
}

.cooling {
  padding-top: 60px;
}

.cooling-box {
  background: #191b1e;
  color: #fff;
  padding: 55px 65px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.cooling-box h2 {
  margin-bottom: 10px;
}

.cooling-box p {
  color: #c8cbd0;
}

.temperature {
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.temperature span {
  font-size: 36px;
  font-weight: 800;
}

.temperature b {
  font-size: 28px;
  color: var(--red);
}

.reverse {
  grid-template-columns: .9fr 1.1fr;
}

.image-stack {
  padding: 30px;
  /*background: #f5f5f5;*/
}

.image-stack img {
  height: 380px;
  width: 100%;
  object-fit: contain;
}

.specs {
  display: flex;
  gap: 30px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 25px;
}

.specs div {
  display: flex;
  flex-direction: column;
}

.specs b {
  font-size: 22px;
}

.specs span {
  font-size: 11px;
  color: var(--muted);
}

.cta-section {
  padding: 90px 0;
  background: var(--red);
  color: #fff;
}

.cta-section .kicker {
  color: #fff;
}

.cta-section h2 {
  font-size: 60px;
  line-height: 1;
  margin: 8px 0;
}

.cta-section p {
  max-width: 700px;
}

.light-cta {
  background: #fff;
  color: #17191c;
}

.site-footer {
  background: #101214;
  color: #aeb2b7;
  padding: 35px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 35px;
}

.footer-inner img {
  width: 120px;
}

.footer-inner p {
  font-size: 10px;
  margin: 0;
}

.menu-toggle {
  border: 0;
  background: none;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #222;
  margin: 4px;
}

.menu-toggle b {
  font-size: 9px;
}

@media (max-width: 900px) {
  .main-nav {
    gap: 15px;
  }

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

  .split,
  .reverse,
  .process-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: 720px;
  }

  .hero-copy {
    padding-top: 80px;
  }

  .hero-product {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 55%;
    opacity: .55;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery figure.large {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .cooling-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 700px) {
  .header-inner {
    height: 70px;
  }

  .brand img {
    width: 135px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 70px;
    background: #fff;
    padding: 10px 24px 25px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 15px 25px #0001;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav > a,
  .nav-drop > button {
    padding: 12px 0;
    text-align: left;
  }

  .drop-menu {
    position: static;
    width: auto;
    box-shadow: none;
    border-top: 0;
  }

  .nav-drop:hover .drop-menu {
    display: none;
  }

  .nav-drop.open .drop-menu {
    display: block;
  }

  .language {
    display: none;
  }

  .container,
  .hero-inner {
    width: min(100% - 32px, 1180px);
  }

  .section {
    padding: 70px 0;
  }

  .hero {
    min-height: 680px;
  }

  .hero-inner {
    min-height: 680px;
  }

  .hero h1 {
    font-size: 54px;
  }

  .hero-sub {
    font-size: 19px;
  }

  .hero-product {
    width: 75%;
    right: -20px;
  }

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

  .gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .gallery figure.large {
    grid-column: auto;
  }

  .gallery figure {
    height: 260px;
  }

  .gallery figure.large {
    height: 330px;
  }

  .temperature span {
    font-size: 28px;
  }

  .cooling-box {
    padding: 35px 28px;
  }

  .specs {
    flex-wrap: wrap;
  }

  .footer-inner p {
    font-size: 9px;
  }
}

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

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   STILI DEDICATI A SMARTPHONE E TABLET PICCOLI (max 768px)
   ========================================================= */
@media screen and (max-width: 768px) {

    h1 {
        font-size: 24px !important;        /* Dimensione adatta agli smartphone */
        line-height: 1.2 !important;       /* Distanza corretta tra le righe */
        overflow-wrap: break-word !important; /* Impedisce al testo di uscire a destra */
        word-break: break-word !important;
        text-align: center;                /* Opzionale: centra il titolo su mobile */
    }

    h2 {
        font-size: 20px !important;
        line-height: 1.3 !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }

    h3 {
        font-size: 18px !important;
        line-height: 1.3 !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }

}

/* =========================================================
   PER SMARTPHONE MOLTO STRETTI (max 380px, es. iPhone SE)
   ========================================================= */
@media screen and (max-width: 380px) {

    h1 {
        font-size: 20px !important;        /* Ulteriore riduzione se lo schermo è piccolissimo */
    }

}
