/* ================================
   ESSEBI TERMOIDRAULICA – style.css
   Aesthetic: Mediterranean Industrial
   Palette: deep navy, warm amber, stone white
   ================================ */

:root {
  --navy:    #0f1e2e;
  --navy-mid: #1a3248;
  --amber:   #c8883a;
  --amber-lt:#e6a84e;
  --stone:   #f5f0e8;
  --stone-dk:#e2d9cb;
  --white:   #ffffff;
  --text:    #1a1a1a;
  --text-lt: #5c5c5c;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Barlow', system-ui, sans-serif;

  --radius: 4px;
  --shadow: 0 8px 32px rgba(15,30,46,0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--stone);
  font-size: 16px;
  line-height: 1.65;
}

/* -------- NAVBAR -------- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 4rem;
  position: relative;
  z-index: 10;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-placeholder {
  width: 72px;
  height: 72px;
  border: 2.5px dashed rgba(255,255,255,0.55);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.logo-placeholder__label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  line-height: 1.2;
}

.brand-text__sub {
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.05em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--amber-lt); }

/* -------- HERO -------- */
.hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.hero__bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 70% 20%, rgba(200,136,58,0.18) 0%, transparent 55%),
    radial-gradient(circle at 10% 80%, rgba(200,136,58,0.10) 0%, transparent 45%),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 38px,
      rgba(255,255,255,0.025) 38px,
      rgba(255,255,255,0.025) 40px
    );
  pointer-events: none;
}

.hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 4rem 6rem;
  max-width: 680px;
  animation: fadeUp 0.9s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.2rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero__title em {
  font-style: italic;
  color: var(--amber);
}

.hero__desc {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2.5rem;
  max-width: 500px;
  line-height: 1.75;
}

.btn-primary {
  display: inline-block;
  background: var(--amber);
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 2.4rem;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.15s;
  width: fit-content;
}

.btn-primary:hover {
  background: var(--amber-lt);
  transform: translateY(-2px);
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.3);
  font-size: 1.4rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* -------- SECTION GENERIC -------- */
.section {
  padding: 6rem 0;
}

.section--alt {
  background: var(--stone-dk);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

.section__title::after {
  content: '';
  display: block;
  height: 3px;
  width: 60px;
  background: var(--amber);
  margin-top: 0.6rem;
}

/* -------- CARDS -------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.8rem;
}

.card {
  background: var(--white);
  border-radius: 6px;
  padding: 2.2rem 1.8rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  border-top: 4px solid var(--amber);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(15,30,46,0.16);
}

.card__icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.65rem;
}

.card p {
  font-size: 0.92rem;
  color: var(--text-lt);
  line-height: 1.65;
}

/* -------- STRIP -------- */
.strip {
  background: var(--navy-mid);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 0.5rem;
  padding: 3rem 2rem;
}

.strip__item {
  text-align: center;
  color: var(--white);
  padding: 0.5rem 1.5rem;
}

.strip__item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--amber);
  line-height: 1;
}

.strip__item span {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-top: 0.4rem;
  display: block;
}

/* -------- PRODOTTI GRID -------- */
.prodotti-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.4rem;
}

.prodotto {
  background: var(--white);
  border-radius: 6px;
  padding: 2rem 1rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(15,30,46,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: default;
}

.prodotto:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15,30,46,0.12);
}

.prodotto__img {
  font-size: 2.6rem;
  margin-bottom: 0.8rem;
}

.prodotto span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.03em;
}

/* -------- CONTATTI -------- */
.contatti-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  align-items: start;
}

.contatti-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-block {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.info-block__icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.info-block h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.info-block p {
  font-size: 0.95rem;
  color: var(--text-lt);
  line-height: 1.7;
}

.info-block a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.info-block a:hover { color: var(--amber); }

.link-map {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: var(--amber) !important;
  letter-spacing: 0.04em;
}

.contatti-map {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 3px solid var(--white);
}

/* -------- FOOTER -------- */
.footer {
  background: var(--navy);
  padding: 2.5rem 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}

.footer p {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
}

.footer strong { color: rgba(255,255,255,0.85); }

.footer__vat { font-size: 0.78rem !important; }

.footer a {
  color: var(--amber);
  text-decoration: none;
}

/* -------- RESPONSIVE -------- */
@media (max-width: 900px) {
  .navbar {
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.5rem 2rem;
  }

  .nav-links { gap: 1.5rem; }

  .hero__content { padding: 3rem 2rem 5rem; }

  .contatti-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .strip {
    gap: 1.5rem;
  }

  .strip__item { flex: 0 0 45%; }

  .navbar { padding: 1.2rem 1.5rem; }
  .hero__content { padding: 2rem 1.5rem 4rem; }
  .container { padding: 0 1.5rem; }
  .section { padding: 4rem 0; }
}
