/* =============================================
   GALLELLI — Page-specific styles
   ============================================= */

/* ---------- Page Hero ---------- */
.page-hero {
  position: relative; height: 420px;
  display: flex; align-items: flex-end;
  padding-bottom: 56px; overflow: hidden;
  margin-top: 68px;
}
.page-hero-bg {
  position: absolute; inset: 0;
}
.page-hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  transition: transform 8s cubic-bezier(0.16,1,0.3,1);
}
.page-hero:hover .page-hero-bg img { transform: scale(1); }
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
}
.page-hero-content { position: relative; padding: 0 60px; }
.page-hero-breadcrumb {
  font-size: 12px; color: rgba(255,255,255,0.6);
  margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.1em;
}
.page-hero-breadcrumb a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.page-hero-breadcrumb a:hover { color: var(--red); }
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800;
  color: #fff; margin-bottom: 12px; line-height: 1.15;
}
.page-hero p { font-size: 16px; color: rgba(255,255,255,0.8); max-width: 540px; line-height: 1.6; }

/* ---------- Feature Pills (sostituisce checklist) ---------- */
.feat-pills {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 20px 0 28px;
}
.feat-pill {
  background: rgba(229,57,53,0.07);
  border: 1px solid rgba(229,57,53,0.18);
  color: var(--text-2);
  padding: 6px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 500; line-height: 1.4;
  transition: background 0.2s, border-color 0.2s;
}
.feat-pill:hover {
  background: rgba(229,57,53,0.13);
  border-color: rgba(229,57,53,0.35);
}

/* ---------- Azienda ---------- */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content:''; position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(to bottom, var(--red), rgba(229,57,53,0.1));
  border-radius: 2px;
}
.timeline-item { position: relative; padding: 0 0 36px 28px; }
.timeline-item::before {
  content:''; position: absolute; left: -8px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--red); border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--red);
}
.timeline-item h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.timeline-item p { font-size: 13.5px; color: var(--text-3); line-height: 1.6; }
.timeline-year {
  font-size: 11px; font-weight: 700; color: var(--red);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px;
}

.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 16px; margin-top: 40px; }
.cert-card {
  background: var(--glass-bg); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border); border-radius: var(--radius-sm);
  box-shadow: var(--glass-shadow); padding: 20px; text-align: center;
  transition: transform 0.3s var(--ease);
}
.cert-card:hover { transform: translateY(-4px); }
.cert-card .cert-icon { width: 48px; height: 48px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; background: var(--red-light); border-radius: 12px; }
.cert-card .cert-icon svg { width: 26px; height: 26px; }
.cert-card h5 { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.cert-card p { font-size: 12px; color: var(--text-3); }

/* ---------- Servizi ---------- */
.servizio-full {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center; margin-bottom: 80px;
}
.servizio-full.reverse { direction: rtl; }
.servizio-full.reverse > * { direction: ltr; }
.servizio-full-img {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.13); aspect-ratio: 4/3;
}
.servizio-full-img img { width: 100%; height: 100%; object-fit: cover; }
.servizio-full-text h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 16px; }
.servizio-full-text p { font-size: 15px; color: var(--text-2); line-height: 1.75; margin-bottom: 16px; }
.feature-list { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 28px; }
.feature-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text-2);
}
.feature-list li::before {
  content:'✓'; color: var(--red); font-weight: 800;
  min-width: 20px; height: 20px; border-radius: 50%;
  background: var(--red-light); display: flex; align-items: center;
  justify-content: center; font-size: 11px;
}

/* ---------- Form styles ---------- */
.gl-form-section { background: var(--bg); }
.form-card {
  background: var(--glass-bg); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border); border-radius: var(--radius);
  box-shadow: var(--glass-shadow); padding: 48px 52px; max-width: 780px; margin: 0 auto;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: 12px; font-weight: 700; color: var(--text-2);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.form-group label span { color: var(--red); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid rgba(0,0,0,0.1); border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.8); backdrop-filter: blur(8px);
  font-size: 14.5px; color: var(--text); font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--red); box-shadow: 0 0 0 3px rgba(229,57,53,0.1);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-honeypot { display: none; }
.form-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 8px; }
.form-check input[type=checkbox] { margin-top: 3px; accent-color: var(--red); }
.form-check label { font-size: 12.5px; color: var(--text-3); line-height: 1.5; }
.form-check a { color: var(--red); }
.btn-submit {
  width: 100%; padding: 16px; border-radius: 40px;
  background: var(--red); color: #fff; border: none; cursor: pointer;
  font-size: 15px; font-weight: 700; font-family: inherit;
  margin-top: 20px; transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(229,57,53,0.3);
}
.btn-submit:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(229,57,53,0.4); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.form-msg {
  padding: 14px 20px; border-radius: var(--radius-sm); margin-top: 16px;
  font-size: 14px; display: none;
}
.form-msg.success { background: rgba(34,197,94,0.12); color: #166534; border: 1px solid rgba(34,197,94,0.3); display: block; }
.form-msg.error   { background: rgba(229,57,53,0.1);  color: var(--red-dark); border: 1px solid rgba(229,57,53,0.25); display: block; }

/* ---------- Product pages ---------- */
.product-intro {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center;
}
.product-intro-img {
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/2;
  box-shadow: 0 20px 56px rgba(0,0,0,0.14);
}
.product-intro-img img { width: 100%; height: 100%; object-fit: cover; }
.product-intro-text h2 { font-size: 1.7rem; font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.product-intro-text p { font-size: 15px; color: var(--text-2); line-height: 1.75; margin-bottom: 16px; }

.specs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 20px; margin-top: 48px; }
.spec-card {
  background: var(--glass-bg); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border); border-radius: var(--radius-sm);
  box-shadow: var(--glass-shadow); padding: 24px 20px;
  transition: transform 0.3s var(--ease);
}
.spec-card:hover { transform: translateY(-4px); }
.spec-card .spec-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--red-light); display: flex; align-items: center;
  justify-content: center; margin-bottom: 14px; flex-shrink: 0;
}
.spec-card .spec-icon svg { width: 22px; height: 22px; fill: var(--red); }
.spec-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.spec-card p { font-size: 13px; color: var(--text-3); line-height: 1.55; }

.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 48px; }
.gallery-item { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery-item:hover img { transform: scale(1.07); }

/* ---------- Contatti ---------- */
.contatti-hero-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 20px; margin-bottom: 56px;
}
.contatti-hero-card {
  background: var(--glass-bg); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border); border-radius: var(--radius-sm);
  box-shadow: var(--glass-shadow); padding: 28px 22px; text-align: center;
  transition: transform 0.3s var(--ease);
}
.contatti-hero-card:hover { transform: translateY(-5px); }
.contatti-hero-card .ch-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--red-light); display: flex; align-items: center;
  justify-content: center; margin: 0 auto 14px;
}
.contatti-hero-card .ch-icon svg { width: 24px; height: 24px; fill: var(--red); }
.contatti-hero-card h4 { font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; }
.contatti-hero-card p { font-size: 15px; font-weight: 600; color: var(--text); }
.contatti-hero-card a { color: var(--text); transition: color 0.2s; }
.contatti-hero-card a:hover { color: var(--red); }

/* ---------- Privacy / Cookie ---------- */
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h2 { font-size: 1.3rem; font-weight: 700; margin: 36px 0 12px; }
.legal-content h3 { font-size: 1.05rem; font-weight: 700; margin: 24px 0 8px; }
.legal-content p { font-size: 14.5px; color: var(--text-2); line-height: 1.75; margin-bottom: 12px; }
.legal-content ul { padding-left: 20px; margin-bottom: 16px; }
.legal-content ul li { font-size: 14.5px; color: var(--text-2); line-height: 1.7; margin-bottom: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .page-hero { height: 320px; }
  .page-hero-content { padding: 0 20px; }
  .servizio-full { grid-template-columns: 1fr; gap: 32px; }
  .servizio-full.reverse { direction: ltr; }
  .form-card { padding: 28px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .product-intro { grid-template-columns: 1fr; gap: 32px; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
}
