/* ═══════════════════════════════════════════
   TECNOLASK — style.css
   Design System + Layout
═══════════════════════════════════════════ */

/* ── RESET & VARIABLES ─────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --clr-bg: #0e0e10;
  --clr-surface: #16161a;
  --clr-card: #1e1e24;
  --clr-border: #2a2a35;
  --clr-gold: #c9a96e;
  --clr-gold-lt: #e2c99a;
  --clr-gold-dk: #a07840;
  --clr-cream: #f5f0e8;
  --clr-text: #d4cfc6;
  --clr-muted: #888;
  --clr-white: #fff;
  --ff-serif: 'Cormorant Garamond', Georgia, serif;
  --ff-sans: 'Inter', system-ui, sans-serif;
  --radius: 14px;
  --shadow: 0 8px 40px rgba(0, 0, 0, .45);
  --transition: .3s ease;
  --max-w: 1160px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--ff-sans);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── SCROLLBAR ─────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--clr-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--clr-gold-dk);
  border-radius: 99px;
}

/* ── CONTAINER ─────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── SECTION SPACING ───────────────────── */
.section {
  padding: 100px 0;
}

/* ══════════════════════════════════════════
   VIDEO HERO — sempre completamente visibile
══════════════════════════════════════════ */
.video-hero {
  position: relative;
  width: 100%;
  /* Usa tutta la larghezza disponibile */
  height: 25vh;
  /* Occupa ESATTAMENTE il 25% dell'altezza dello schermo (view height) */
  min-height: 220px;
  /* Fallback minimo in caso di schermi orizzontali troppo bassi */
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  background: #000 url('video/video_hero_poster.jpg') center/cover no-repeat;
  /* Sfondo nero o poster se il video falla */
}

/* video reale */
.video-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* esplicito per iOS Safari */
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-object-fit: cover;
  object-position: center 40%;
  display: block;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, .22) 0%,
      rgba(0, 0, 0, .10) 50%,
      rgba(14, 14, 16, .55) 100%);
  pointer-events: none;
}

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2.5rem;
  background: rgba(14, 14, 16, .9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--clr-border);
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, .5);
}

.logo {
  font-family: var(--ff-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--clr-cream);
  text-decoration: none;
  letter-spacing: .04em;
  transition: color var(--transition);
}

.logo:hover {
  color: var(--clr-gold);
}

.logo-t {
  color: var(--clr-gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: .85rem;
  font-weight: 500;
  color: var(--clr-text);
  text-decoration: none;
  letter-spacing: .06em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--clr-gold);
  transition: width var(--transition);
}

.nav-link:hover {
  color: var(--clr-gold-lt);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  border: 1px solid var(--clr-gold);
  border-radius: 99px;
  padding: .4rem 1.2rem;
  color: var(--clr-gold) !important;
}

.nav-cta:hover {
  background: var(--clr-gold);
  color: var(--clr-bg) !important;
}

.nav-cta::after {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-cream);
  border-radius: 2px;
  transition: var(--transition);
}

/* ══════════════════════════════════════════
   HERO TEXT
══════════════════════════════════════════ */
.hero-text {
  position: relative;
  padding: 110px 0 90px;
  text-align: center;
  overflow: hidden;
}

.hero-text::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(201, 169, 110, .08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-tag {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 1.2rem;
}

.hero-title {
  font-family: var(--ff-serif);
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 300;
  line-height: 1.12;
  color: var(--clr-cream);
  margin-bottom: 1.6rem;
  animation: fadeUp .9s ease both;
}

.hero-title em {
  font-style: italic;
  color: var(--clr-gold-lt);
}

.hero-desc {
  max-width: 600px;
  margin: 0 auto 2.4rem;
  font-size: 1.05rem;
  color: var(--clr-muted);
  line-height: 1.8;
  animation: fadeUp .9s .15s ease both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp .9s .3s ease both;
}

/* scroll indicator */
.hero-scroll {
  display: flex;
  justify-content: center;
  margin-top: 3.5rem;
  animation: fadeUp .9s .4s ease both;
}

.hero-scroll span {
  display: block;
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--clr-gold), transparent);
  animation: scrollLine 2s ease-in-out infinite;
  margin: 0 auto;
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ── BUTTONS ───────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 2rem;
  border-radius: 99px;
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--clr-gold), var(--clr-gold-dk));
  color: var(--clr-bg);
  box-shadow: 0 4px 20px rgba(201, 169, 110, .35);
}

.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(201, 169, 110, .5);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--clr-border);
  color: var(--clr-text);
}

.btn-ghost:hover {
  border-color: var(--clr-gold);
  color: var(--clr-gold);
}

.full-width {
  width: 100%;
  justify-content: center;
}

/* ── SECTION LABELS ────────────────────── */
.section-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: .8rem;
  padding: .25rem .8rem;
  border: 1px solid rgba(201, 169, 110, .3);
  border-radius: 99px;
}

.section-title {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  color: var(--clr-cream);
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.section-text {
  color: var(--clr-muted);
  line-height: 1.8;
  max-width: 560px;
}

.section-text.center {
  text-align: center;
  margin: 0 auto 1rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

/* ══════════════════════════════════════════
   ABOUT
══════════════════════════════════════════ */
.about {
  background: var(--clr-surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
}

.about-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(201, 169, 110, .12) 1px, transparent 1px);
  background-size: 28px 28px;
  border-radius: var(--radius);
  pointer-events: none;
  z-index: 0;
}

.about-card {
  position: relative;
  z-index: 1;
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.about-card-main {
  align-self: flex-start;
}

.about-card-secondary {
  align-self: flex-end;
  margin-left: 2rem;
}

.about-number {
  font-family: var(--ff-serif);
  font-size: 3.2rem;
  font-weight: 600;
  color: var(--clr-gold);
  line-height: 1;
}

.about-caption {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clr-muted);
  margin-top: .3rem;
}

.about-list {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .95rem;
  color: var(--clr-text);
}

.about-list li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-gold);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════
   PRODUCTS
══════════════════════════════════════════ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product-card {
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-gold-dk), var(--clr-gold));
  opacity: 0;
  transition: opacity var(--transition);
}

.product-card:hover,
.product-card:focus {
  transform: translateY(-6px);
  border-color: rgba(201, 169, 110, .4);
  box-shadow: var(--shadow);
  outline: none;
}

.product-card:hover::before,
.product-card:focus::before {
  opacity: 1;
}

.product-card.featured {
  border-color: rgba(201, 169, 110, .35);
  background: linear-gradient(160deg, #1e1e24 60%, #1e1a10);
}

.product-card.featured::before {
  opacity: 1;
}

.product-icon {
  font-size: 2.4rem;
  margin-bottom: 1.2rem;
}

.product-name {
  font-family: var(--ff-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--clr-cream);
  margin-bottom: .7rem;
}

.product-desc {
  font-size: .9rem;
  color: var(--clr-muted);
  line-height: 1.7;
}

.product-badge {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--clr-gold);
  border: 1px solid rgba(201, 169, 110, .4);
  border-radius: 99px;
  padding: .2rem .8rem;
}

.stretched-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 10;
}

/* ══════════════════════════════════════════
   QUALITY
══════════════════════════════════════════ */
.quality {
  background: var(--clr-surface);
}

.quality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.quality-item {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.quality-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.quality-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.quality-item h4 {
  font-family: var(--ff-serif);
  font-size: 1.15rem;
  color: var(--clr-cream);
  margin-bottom: .5rem;
}

.quality-item p {
  font-size: .875rem;
  color: var(--clr-muted);
}

/* ══════════════════════════════════════════
   CONTACT
══════════════════════════════════════════ */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  grid-template-areas:
    "info form"
    "map form";
  gap: 2.5rem 5rem;
  align-items: start;
}

.contact-info {
  grid-area: info;
}

.contact-form {
  grid-area: form;
}

.map-container {
  grid-area: map;
  margin-top: 0 !important;
}

.contact-details {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .95rem;
}

.c-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-item a {
  color: var(--clr-text);
  text-decoration: none;
  transition: color var(--transition);
}

.contact-item a:hover {
  color: var(--clr-gold);
}

/* form */
.contact-form {
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.form-group label {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--clr-muted);
}

.form-group input,
.form-group textarea {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  padding: .75rem 1rem;
  color: var(--clr-cream);
  font-family: var(--ff-sans);
  font-size: .95rem;
  outline: none;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--clr-gold);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.form-success {
  display: none;
  text-align: center;
  color: var(--clr-gold);
  font-size: .9rem;
  padding: .6rem;
  border: 1px solid rgba(201, 169, 110, .3);
  border-radius: 8px;
}

.form-consent {
  margin: 1rem 0 1.2rem;
}

.consent-label {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  font-size: .82rem;
  line-height: 1.55;
  color: var(--clr-text);
  cursor: pointer;
  user-select: none;
}

.consent-label input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: .2rem;
  width: 18px;
  height: 18px;
  accent-color: var(--clr-gold);
  cursor: pointer;
}

.consent-label a {
  color: var(--clr-gold);
  text-decoration: underline;
}

.consent-label a:hover {
  color: var(--clr-gold-lt);
}

.consent-label .required-mark {
  color: var(--clr-gold);
  font-weight: 600;
  margin-left: .2rem;
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--clr-border);
  padding: 2.5rem 0;
  background: var(--clr-surface);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-size: 1.3rem;
}

.footer-copy {
  font-size: .8rem;
  color: var(--clr-muted);
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  font-size: .8rem;
  color: var(--clr-muted);
  text-decoration: none;
  letter-spacing: .05em;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--clr-gold);
}

/* ══════════════════════════════════════════
   ANIMATIONS + REVEAL
══════════════════════════════════════════ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (min-width: 1025px) {
  .video-hero {
    height: 38vh;
  }

  .hero-text {
    padding: 75px 0 50px;
  }
}

@media (min-width: 1025px) and (max-height: 850px) {
  .hero-text {
    padding: 40px 0 20px;
  }

  .hero-title {
    font-size: clamp(2.4rem, 4.5vw, 4rem);
    margin-bottom: 1rem;
  }

  .hero-desc {
    margin-bottom: 1.5rem;
  }

  .hero-scroll {
    margin-top: 1.5rem;
  }

  .hero-scroll span {
    height: 30px;
  }
}

@media (max-width: 1024px) {
  .quality-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {

  .about-grid,
  .products-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-wrap {
    display: flex;
    flex-direction: column;
    gap: 3rem;
  }

  .about-card-secondary {
    margin-left: 0;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: -100%;
    width: 250px;
    height: calc(100vh - 64px);
    background: #ffffff;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 3rem 2rem;
    gap: 2.5rem;
    z-index: 99;
    transition: left 0.3s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
  }

  .nav-links.open {
    left: 0;
  }

  .nav-links .nav-link {
    color: #16161a;
    font-weight: 600;
  }

  .nav-links .nav-cta {
    border-color: var(--clr-gold);
    color: var(--clr-gold) !important;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 560px) {
  .video-hero {
    height: 18vh;
    min-height: 140px;
  }

  .section {
    padding: 70px 0;
  }

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

  .hero-text {
    padding: 40px 0 30px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .hero-scroll {
    margin-top: 2rem;
  }

  .hero-scroll span {
    height: 30px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  .footer-logo,
  .footer-copy {
    width: 100%;
    text-align: center;
    display: block;
  }

  .footer-nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
  }
}

/* ── Mobile piccoli (≤480px): rinforza centratura footer ── */
@media (max-width: 480px) {
  .footer {
    padding: 2rem 0;
  }
  .footer .container.footer-inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .footer-copy {
    font-size: .75rem;
    line-height: 1.5;
  }
  .footer-nav {
    gap: .8rem 1.2rem;
  }
}