/* ============================================
   PLANK UP / ZETAHOUSE - Landing Page
   Design: nero, bianco, giallo
   ============================================ */

.plankup-page {
  --color-black: #0a0a0a;
  --color-yellow: #FFD700;
  --color-yellow-dark: #e6c200;
  --color-white: #FFFFFF;
  --color-text-dark: #0a0a0a;
  --color-text-light: #F5F5F5;
  --color-bg-dark: #0a0a0a;
  background: var(--color-bg-dark);
  color: var(--color-text-light);
}

/* Hero */
.plankup-hero {
  position: relative;
  min-height: 100vh;
  background: none;
  display: flex;
  align-items: center;
  padding-top: 7rem;
  padding-bottom: 4rem;
  overflow: hidden;
}

.plankup-hero .hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--color-bg-dark);
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.plankup-hero .hero-placeholder-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.5) 0%, rgba(10,10,10,0.85) 100%);
  z-index: 1;
}

.plankup-hero .hero-bg[style*="background-image"] {
  /* Se l'immagine non carica, il placeholder-bg copre */
}

.plankup-hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  justify-items: start;
  width: 100%;
  text-align: left;
}

@media (min-width: 1024px) {
  .plankup-hero .container {
    grid-template-columns: 1fr auto;
    align-items: center;
    justify-items: start;
  }
}

.plankup-hero .hero-text {
  text-align: left;
}

.plankup-hero .hero-title {
  font-family: "Poppins", var(--font-family);
  font-size: clamp(3.5rem, 10vw, 8.62375rem); /* 56px–138px */
  font-style: normal;
  font-weight: 600;
  line-height: 0.9; /* 124/138, unitless per web standards */
  color: #fff;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  text-align: left;
}

.plankup-hero .hero-h2 {
  font-family: "Poppins", var(--font-family);
  font-size: clamp(2.5rem, 5vw, 4.8125rem); /* 40px–77px */
  font-style: normal;
  font-weight: 400;
  line-height: 0.96; /* 74/77, unitless per web standards */
  color: #fff;
  margin: 0 0 1rem;
}

.plankup-hero .hero-desc {
  font-family: "Poppins", var(--font-family);
  font-size: clamp(1.25rem, 2.4vw, 2.37375rem); /* 20px–38px */
  font-style: normal;
  font-weight: 400;
  line-height: 1.03; /* 39/38, unitless per web standards */
  color: #fff;
  max-width: 38ch;
  margin-bottom: 2rem;
}

.plankup-hero .hero-cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: "Poppins", var(--font-family);
  font-size: 1.8353125rem; /* 29.365px */
  font-style: normal;
  font-weight: 600;
  line-height: 1.53; /* 44.863/29.365, unitless */
  color: #000;
  text-align: center;
  background: #f9c134;
  border-radius: 15px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(249, 193, 52, 0.35);
}

.plankup-hero .hero-cta:hover {
  background: #e0ad2e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 193, 52, 0.4);
  color: #000;
}

.plankup-hero .hero-deco-circle {
  flex-shrink: 0;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .plankup-hero .hero-deco-circle {
    width: 280px;
    height: 280px;
  }
}

@media (min-width: 1024px) {
  .plankup-hero .hero-deco-circle {
    width: 380px;
    height: 380px;
    margin: 0;
  }
}

.plankup-hero .hero-deco-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 1023px) {
  .plankup-hero .hero-deco-circle {
    order: -1;
  }
}

.plankup-hero .hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-white);
  opacity: 0.8;
  transition: opacity 0.2s;
  z-index: 3;
}

.plankup-hero .hero-scroll:hover {
  opacity: 1;
}

/* Navbar Plank Up */
.plankup-navbar .navbar-logo img {
  filter: brightness(0) invert(1);
  height: 48px;
}

.plankup-navbar .container {
  justify-content: flex-start;
}

/* Buttons */
.btn-yellow {
  background: var(--color-yellow);
  color: var(--color-text-dark);
  border: none;
  padding: 0.875rem 2rem;
  font-family: "poppins", var(--font-family);
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.2s;
}

.btn-yellow:hover {
  background: var(--color-yellow-dark);
  transform: translateY(-1px);
  color: var(--color-text-dark);
}

.btn-black {
  background: var(--color-black);
  color: var(--color-white);
  border: none;
  padding: 0.875rem 2rem;
  font-family: "poppins", var(--font-family);
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, opacity 0.2s;
}

.btn-black:hover {
  opacity: 0.9;
  color: var(--color-white);
}

/* Sections */
.plankup-section {
  padding: 4rem 0;
  background: #000000;
}

.plankup-section .plankup-section-title {
  color: #ffffff;
}

.plankup-section .soluzioni-card-content p {
  color: #ffffff;
}

.plankup-section-title {
  font-family: "Poppins", var(--font-family);
  font-size: clamp(2rem, 5vw, 4.8125rem); /* 32px–77px, 77/16=4.8125rem */
  font-style: normal;
  font-weight: 600;
  line-height: 0.96; /* 74/77, unitless per web standards */
  color: #fff;
  margin-bottom: 2.5rem;
}

.plankup-section-title--dark {
  color: var(--color-text-dark);
}

/* Soluzioni grid 2x2 */
.soluzioni-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 767px) {
  .soluzioni-grid {
    grid-template-columns: 1fr;
  }
}

.soluzioni-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.soluzioni-card-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.soluzioni-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.8) 100%);
  pointer-events: none;
}

.soluzioni-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.soluzioni-card-img .soluzioni-card-title {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  margin: 0;
  z-index: 2;
  font-family: "Poppins", var(--font-family);
  font-size: clamp(1.5rem, 4vw, 4.8125rem); /* 24px–77px, 77/16=4.8125rem */
  font-style: normal;
  font-weight: 500;
  line-height: 0.88; /* 68/77, unitless per web standards */
  color: #ffffff;
}

.soluzioni-card-content {
  padding: 1.25rem 1.5rem;
}

.soluzioni-card-content p {
  font-family: "Poppins", var(--font-family);
  font-size: clamp(1rem, 2vw, 1.625rem); /* 16px–26px, 26/16=1.625rem */
  font-style: normal;
  font-weight: 400;
  line-height: 1.4; /* 36.4/26, unitless per web standards */
  color: #fff;
  margin: 0;
}

/* Sistemi integrati */
.plankup-sistemi {
  background: #FFFFFF;
}

.plankup-sistemi .plankup-section-title,
.plankup-sistemi .sistemi-card-content p {
  color: #0a0a0a;
}

.sistemi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 767px) {
  .sistemi-grid {
    grid-template-columns: 1fr;
  }
}

.sistemi-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sistemi-card-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.sistemi-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}

.sistemi-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sistemi-card-img .placeholder-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sistemi-card-img .sistemi-card-title {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  margin: 0;
  z-index: 2;
  font-family: "Poppins", var(--font-family);
  font-size: clamp(1.5rem, 4vw, 4.8125rem);
  font-style: normal;
  font-weight: 500;
  line-height: 0.88;
  color: #ffffff;
}

.sistemi-card-content {
  padding: 1.25rem 1.5rem;
}

.sistemi-card-content p {
  font-family: "Poppins", var(--font-family);
  font-size: clamp(1rem, 2vw, 1.625rem);
  font-style: normal;
  font-weight: 400;
  line-height: 1.4;
  color: #ffffff;
  margin: 0;
}

/* Placeholder images */
.placeholder-img {
  background: #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  font-family: var(--font-family);
}

.placeholder-img::before {
  content: attr(data-placeholder);
}

.placeholder-img--tall {
  aspect-ratio: 3/4;
}

.placeholder-img--small {
  aspect-ratio: 1;
}

/* Essence section - giallo */
.plankup-essence {
  background: var(--color-yellow);
  padding: 4rem 0;
}

.plankup-essence .container {
  text-align: center;
}

.essence-swatches {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.essence-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.swatch-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.2);
}

.swatch-rovere { background: #c4a574; }
.swatch-noce { background: #5c4033; }
.swatch-larice { background: #d4a574; }
.swatch-wenge { background: #4a3728; }
.swatch-teak { background: #b8860b; }

.essence-swatch span {
  font-size: 0.85rem;
  color: var(--color-text-dark);
  font-weight: 500;
}

/* Progetti / Contact form */
.plankup-progetti {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
}

@media (max-width: 1023px) {
  .plankup-progetti {
    grid-template-columns: 1fr;
  }
}

.progetti-text {
  background: var(--color-white);
  padding: 4rem 0;
}

.progetti-text .plankup-progetti-title {
  font-family: "poppins", var(--font-family);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  color: var(--color-text-dark);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.plankup-progetti-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-dark);
  margin-bottom: 1.5rem;
}

.plankup-progetti-desc {
  font-size: 1rem;
  color: #4a4a4a;
  line-height: 1.6;
  margin: 0;
}

.progetti-form-wrap {
  background: var(--color-yellow);
  padding: 3rem 0;
}

@media (min-width: 1024px) {
  .progetti-form-wrap .container {
    max-width: 500px;
  }
}

.plankup-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.plankup-contact-form input,
.plankup-contact-form textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-family);
  font-size: 1rem;
  color: var(--color-text-dark);
  background: var(--color-white);
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 8px;
}

.plankup-contact-form input::placeholder,
.plankup-contact-form textarea::placeholder {
  color: #6b7280;
}

.plankup-contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.plankup-contact-form .contact-form-privacy {
  margin: 0.5rem 0 0;
}

.plankup-contact-form .contact-form-privacy-label {
  font-size: 0.9rem;
  color: var(--color-text-dark);
}

.plankup-contact-form .contact-form-privacy-label a {
  color: var(--color-text-dark);
  text-decoration: underline;
}

.plankup-contact-form .btn-yellow {
  margin-top: 0.5rem;
}

/* Cos'è Plank Up */
.plankup-cose .two-col {
  gap: 3rem;
  align-items: center;
}

.plankup-body {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
  margin: 0;
}

.plankup-cose .col-img .placeholder-img {
  border-radius: 8px;
}

/* Perché sceglierlo */
.plankup-perche .perche-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 1023px) {
  .plankup-perche .perche-grid {
    grid-template-columns: 1fr;
  }

  .plankup-perche .perche-img {
    order: -1;
  }
}

.perche-item h4 {
  font-family: "poppins", var(--font-family);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-white);
  margin: 0 0 0.25rem;
}

.perche-item p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  margin: 0;
  line-height: 1.4;
}

.perche-img .placeholder-img {
  border-radius: 8px;
}

/* CTA section */
.plankup-cta {
  text-align: center;
}

.plankup-cta .plankup-section-title {
  margin-bottom: 1.5rem;
}

/* Partners */
.partners-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.partner-logo {
  padding: 1rem 2rem;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}

.placeholder-logo {
  min-width: 120px;
  text-align: center;
}

/* Sede operativa */
.plankup-sede {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
}

@media (max-width: 1023px) {
  .plankup-sede {
    grid-template-columns: 1fr;
  }
}

.sede-map {
  min-height: 400px;
}

.sede-map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
}

.sede-info {
  background: var(--color-bg-dark);
  padding: 3rem var(--container-padding);
}

.sede-info .plankup-section-title {
  margin-bottom: 1.5rem;
}

.sede-info p {
  font-size: 1rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.sede-info .btn {
  margin-top: 1rem;
}

/* Footer Plank Up */
.plankup-footer {
  background: var(--color-bg-dark);
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.plankup-footer .footer-legal {
  text-align: center;
}

.plankup-footer .footer-legal-text {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.5rem;
}

.plankup-footer .footer-legal-links a {
  color: rgba(255,255,255,0.5);
}

.plankup-footer .footer-legal-links a:hover {
  color: rgba(255,255,255,0.8);
}

/* Contact form message (override) */
.plankup-page .contact-form-message--success {
  background: rgba(34, 197, 94, 0.2);
  color: var(--color-text-dark);
  border: 1px solid rgba(34, 197, 94, 0.4);
  padding: 1rem;
  border-radius: 8px;
}

.plankup-page .contact-form-message--error {
  background: rgba(220, 38, 38, 0.15);
  color: #b91c1c;
  border: 1px solid rgba(220, 38, 38, 0.3);
  padding: 1rem;
  border-radius: 8px;
}

/* ============================================
   Mobile optimization (< 768px)
   ============================================ */
@media (max-width: 767px) {
  /* Safe area per dispositivi con notch */
  .plankup-navbar .container {
    padding-left: 0;
    padding-right: max(var(--container-padding), env(safe-area-inset-right));
  }

  .plankup-hero .container,
  .plankup-section .container,
  .progetti-text .container,
  .progetti-form-wrap .container {
    padding-left: max(var(--container-padding), env(safe-area-inset-left));
    padding-right: max(var(--container-padding), env(safe-area-inset-right));
  }

  /* Hero */
  .plankup-hero {
    padding-top: 5rem;
    padding-bottom: 3rem;
    min-height: 100vh;
    min-height: 100dvh; /* dynamic viewport height */
  }

  .plankup-hero .hero-deco-circle {
    display: none;
  }

  .plankup-hero .container {
    gap: 0;
    padding-top: 3rem;
    padding-bottom: 5rem;
    align-content: center;
    justify-items: start;
    min-height: 100%;
  }

  .plankup-hero .hero-text {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .plankup-hero .hero-title {
    font-size: clamp(2.5rem, 12vw, 4rem);
    margin: 0;
  }

  .plankup-hero .hero-h2 {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    margin: 0;
  }

  .plankup-hero .hero-desc {
    font-size: clamp(1rem, 4vw, 1.25rem);
    margin: 0 0 1.5rem;
  }

  .plankup-hero .hero-cta {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: clamp(1rem, 4vw, 1.25rem);
    min-height: 48px;
  }

  .plankup-hero .hero-scroll {
    bottom: 1.5rem;
  }

  /* Navbar - logo allineato a sinistra */
  .plankup-navbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .plankup-navbar .container {
    justify-content: flex-start;
  }

  .plankup-navbar .navbar-logo img {
    height: 36px;
  }

  /* Hero - testo e titoli a sinistra */
  .plankup-hero .hero-text {
    text-align: left;
    justify-self: start;
  }

  .plankup-hero .hero-title,
  .plankup-hero .hero-h2,
  .plankup-hero .hero-desc {
    text-align: left;
  }

  /* Sections */
  .plankup-section {
    padding: 2.5rem 0;
  }

  .plankup-section-title {
    font-size: clamp(1.5rem, 6vw, 2.5rem); /* 24px–40px su mobile */
    margin-bottom: 1.5rem;
  }

  /* Soluzioni & Sistemi cards */
  .soluzioni-card-content,
  .sistemi-card-content {
    padding: 1rem;
  }

  .soluzioni-card-img .soluzioni-card-title,
  .sistemi-card-img .sistemi-card-title {
    font-size: clamp(1.1rem, 5vw, 1.75rem);
  }

  .sistemi-card-img .sistemi-card-title {
    bottom: 0.75rem;
    left: 0.75rem;
  }

  .soluzioni-card-img .soluzioni-card-title {
    bottom: 0.75rem;
    left: 0.75rem;
  }

  /* Essence */
  .plankup-essence {
    padding: 2.5rem 0;
  }

  .essence-swatches {
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .swatch-circle {
    width: 48px;
    height: 48px;
  }

  .essence-swatch span {
    font-size: 0.75rem;
  }

  .plankup-essence .btn-black {
    min-height: 48px;
    padding: 0.875rem 1.5rem;
  }

  /* Progetti / Contact form */
  .progetti-text {
    padding: 2rem 0;
  }

  .progetti-text .plankup-progetti-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .progetti-form-wrap {
    padding: 2rem 0;
  }

  .plankup-contact-form input,
  .plankup-contact-form textarea {
    font-size: 16px; /* Previene zoom su iOS */
    padding: 1rem;
    min-height: 48px;
  }

  .plankup-contact-form textarea {
    min-height: 120px;
  }

  .plankup-contact-form .btn-yellow {
    min-height: 48px;
    width: 100%;
    padding: 1rem;
  }

  /* Perché sceglierlo */
  .plankup-perche .perche-grid {
    gap: 1.5rem;
  }

  .perche-item {
    padding: 0.5rem 0;
  }

  /* CTA */
  .plankup-cta .plankup-section-title {
    font-size: clamp(1.25rem, 5vw, 1.75rem); /* 20px–28px su mobile */
  }

  .plankup-cta .btn-yellow {
    min-height: 48px;
    padding: 1rem 2rem;
  }

  /* Partners - scroll orizzontale su mobile */
  .partners-logos {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .partners-logos::-webkit-scrollbar {
    display: none;
  }

  .partner-logo {
    flex-shrink: 0;
    min-width: 100px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  /* Sede */
  .sede-map {
    min-height: 280px;
  }

  .sede-map iframe {
    min-height: 280px;
  }

  .sede-info {
    padding: 2rem var(--container-padding);
  }

  .sede-info .btn-yellow {
    display: block;
    text-align: center;
    min-height: 48px;
  }
}

/* Mobile stretto (< 480px) */
@media (max-width: 479px) {
  .plankup-hero .hero-title {
    font-size: 2.25rem;
  }

  .essence-swatches {
    justify-content: flex-start;
  }
}
