/* ==========================================================================
   Palk × Energia Comune — Landing Page Styles
   Palette: rosa/fucsia + blu | Glass, gradienti soft, layout arioso
   ========================================================================== */

:root {
  --bg: #fff8fb;
  --bg-alt: #fff0f7;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --text: #18181b;
  --text-soft: #3f3f46;
  --muted: #52525b;
  --soft: #71717a;
  --pink: #e6007e;
  --pink-deep: #c4006a;
  --blue: #2563eb;
  --blue-deep: #1d4ed8;
  --cyan: #0ea5e9;
  --border: rgba(255, 255, 255, 0.92);
  --border-soft: rgba(24, 24, 27, 0.08);
  --shadow-sm: 0 8px 24px rgba(24, 24, 27, 0.05);
  --shadow-md: 0 14px 40px rgba(37, 99, 235, 0.08), 0 8px 24px rgba(230, 0, 126, 0.06);
  --shadow-lg: 0 24px 64px rgba(37, 99, 235, 0.12), 0 12px 32px rgba(230, 0, 126, 0.08);
  --gradient-brand: linear-gradient(135deg, var(--pink), var(--blue));
  --gradient-soft: linear-gradient(135deg, rgba(230, 0, 126, 0.08), rgba(37, 99, 235, 0.08));
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --header-h: 72px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(230, 0, 126, 0.07), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(37, 99, 235, 0.07), transparent 24%),
    radial-gradient(circle at 72% 88%, rgba(14, 165, 233, 0.06), transparent 26%),
    var(--bg);
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
}

/* ---- Layout ---- */

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: clamp(72px, 10vw, 112px) 0;
}

.section--alt {
  background: linear-gradient(180deg, transparent, rgba(255, 240, 247, 0.55) 40%, transparent);
}

.section-header {
  max-width: 680px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-header--center {
  margin-inline: auto;
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 14px 0 0;
}

.section-lead {
  margin: 16px 0 0;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.7;
  color: var(--muted);
}

/* ---- Components ---- */

.glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.62));
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-xl);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.kicker__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gradient-brand);
  flex-shrink: 0;
}

.badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--gradient-soft);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  background: var(--gradient-brand);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.22);
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.28);
}

.btn:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 3px;
}

.btn--secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
  box-shadow: var(--shadow-md);
}

.btn--full {
  width: 100%;
}

.btn--green {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 16px 32px rgba(22, 163, 74, 0.28);
}

.btn--green:hover {
  box-shadow: 0 20px 40px rgba(22, 163, 74, 0.36);
}

.btn--green:focus-visible {
  outline-color: rgba(22, 163, 74, 0.4);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.card {
  padding: clamp(22px, 3vw, 28px);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
}

.card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

/* ---- Header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 248, 251, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-lockup {
  display: flex;
  align-items: center;
}

/* Partnership lockup — immagine ufficiale Palk × Ecom */
.partnership-lockup {
  margin: 0;
  line-height: 0;
}

.partnership-lockup img {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
}

.partnership-lockup--header img {
  max-height: 42px;
  max-width: min(240px, 46vw);
}

.site-header__cta .btn {
  padding: 12px 20px;
  font-size: 0.9rem;
}

/* ---- Hero ---- */

.hero {
  position: relative;
  padding: clamp(24px, 4vw, 48px) 0 clamp(48px, 6vw, 72px);
  overflow: hidden;
}

.hero__grid-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(230, 0, 126, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 0, 126, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero__orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  pointer-events: none;
}

.hero__orb--pink {
  width: 480px;
  height: 480px;
  top: -120px;
  right: -80px;
  background: rgba(230, 0, 126, 0.18);
}

.hero__orb--blue {
  width: 420px;
  height: 420px;
  bottom: -100px;
  left: -60px;
  background: rgba(37, 99, 235, 0.14);
}

.hero__shell {
  position: relative;
  z-index: 2;
  padding: 0;
  overflow: hidden;
}

/* Slide partnership — banner full-width in hero */
.hero-slide {
  margin: 0;
  padding: clamp(24px, 4vw, 40px) clamp(20px, 4vw, 48px) clamp(8px, 1.5vw, 14px);
  line-height: 0;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 80% at 15% 50%, rgba(37, 99, 235, 0.07), transparent 55%),
    radial-gradient(ellipse 70% 80% at 85% 50%, rgba(230, 0, 126, 0.07), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.25));
  border-bottom: 1px solid rgba(255, 255, 255, 0.75);
}

.hero-slide img {
  display: block;
  width: min(100%, 1040px);
  max-height: clamp(160px, 22vw, 280px);
  height: auto;
  margin-inline: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 32px rgba(37, 99, 235, 0.1));
}

.hero__grid,
.hero-trust {
  padding-inline: clamp(24px, 4vw, 40px);
}

.hero__grid {
  padding-top: clamp(12px, 2vw, 20px);
}

.hero-trust {
  padding-top: clamp(20px, 3vw, 32px);
  padding-bottom: clamp(24px, 4vw, 40px);
}

.hero__shell::after {
  content: "";
  position: absolute;
  inset: auto -80px -80px auto;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 68%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: center;
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.92;
  margin: 0;
  font-size: clamp(2.6rem, 6.5vw, 5.4rem);
}

.hero__headline em {
  font-style: normal;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subhead {
  margin: 20px 0 0;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.75;
  color: var(--muted);
  max-width: 560px;
}

.hero__note {
  margin: 16px 0 0;
  font-size: 0.875rem;
  color: var(--soft);
}

/* Logo fusion — fallback legacy, non più usato in hero */
.logo-fusion {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(12px, 2vw, 20px);
  align-items: center;
  margin-top: 28px;
  max-width: 520px;
}

.logo-fusion__card {
  min-height: 120px;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-fusion__card img {
  max-height: 72px;
  width: auto;
  object-fit: contain;
}

.logo-fusion__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--soft);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.logo-fusion__placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.35;
}

.logo-fusion__x {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

/* Hero side panel */
.hero-panel {
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.hero-panel__list {
  display: grid;
  gap: 0;
  margin-top: 20px;
}

.hero-panel__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-top: 1px solid var(--border-soft);
}

.hero-panel__item:first-child {
  border-top: none;
  padding-top: 0;
}

.hero-panel__icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--gradient-brand);
  color: #fff;
}

.hero-panel__icon svg {
  width: 18px;
  height: 18px;
}

/* Hero trust strip */
.hero-trust {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 0;
}

.hero-trust__item {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.hero-trust__label {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-trust__text {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

.hero-trust__text strong {
  color: var(--text);
  font-weight: 600;
}

/* ---- Benefits ---- */

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.benefit-card {
  padding: clamp(22px, 3vw, 28px);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.benefit-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-soft);
  color: var(--pink);
}

.benefit-card__icon svg {
  width: 24px;
  height: 24px;
}

.benefit-card h3 {
  margin: 18px 0 0;
  font-size: 1.125rem;
  font-weight: 700;
}

.benefit-card p {
  margin: 10px 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ---- Steps ---- */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  counter-reset: step;
}

.step-card {
  position: relative;
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.step-card::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  color: #fff;
  background: var(--gradient-brand);
}

.step-card h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.step-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.steps-connector {
  display: none;
}

/* ---- Trust section ---- */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.trust-card {
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.trust-card--highlight {
  background: var(--gradient-brand);
  border: none;
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.trust-card--highlight p,
.trust-card--highlight .trust-card__lead {
  color: rgba(255, 255, 255, 0.88);
}

.trust-card--highlight .badge {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.trust-card h3 {
  margin: 14px 0 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.trust-card__lead {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.trust-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-top: 1px solid var(--border-soft);
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.55;
}

.trust-card--highlight .trust-list li {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.15);
}

.trust-list li:first-child {
  border-top: none;
  padding-top: 0;
}

.trust-list li svg {
  flex-shrink: 0;
  margin-top: 2px;
  width: 18px;
  height: 18px;
  color: var(--pink);
}

.trust-card--highlight .trust-list li svg {
  color: #fff;
}

/* ---- Contact form ---- */

.contact-shell {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 22px;
  align-items: stretch;
}

.contact-aside {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-xl);
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.contact-aside h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 14px 0 0;
}

.contact-aside p {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
}

.contact-aside__points {
  display: grid;
  gap: 14px;
}

.contact-aside__point {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.92);
}

.contact-aside__point svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: none;
  border-radius: var(--radius-md);
  padding: 15px 18px;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: inset 0 0 0 1px var(--border-soft);
  transition: box-shadow var(--transition);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.35);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-disclaimer {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--soft);
  line-height: 1.55;
}

.form-disclaimer a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-consent {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}

.form-consent__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted);
  cursor: pointer;
}

.form-consent__item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--pink);
  cursor: pointer;
}

.form-consent__item a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-consent__item--required {
  color: var(--text-soft);
}

.form-consent__item--optional {
  color: var(--soft);
}

/* ---- Footer ---- */

.site-footer {
  padding: 32px 0 48px;
  border-top: 1px solid rgba(24, 24, 27, 0.06);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer__brand {
  font-size: 0.875rem;
  color: var(--soft);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.875rem;
  color: var(--soft);
}

.site-footer__links a:hover {
  color: var(--text);
}

/* ---- Mobile sticky CTA ---- */

.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 248, 251, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgba(24, 24, 27, 0.06);
}

/* ---- Responsive ---- */

@media (max-width: 1024px) {
  .hero__grid,
  .contact-shell,
  .benefits-grid,
  .steps-grid,
  .trust-grid,
  .hero-trust {
    grid-template-columns: 1fr;
  }

  .logo-fusion {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .site-header__cta .btn span {
    display: none;
  }

  .site-header__cta .btn::after {
    content: "Contattaci";
  }

  .partnership-lockup--header img {
    max-height: 34px;
    max-width: min(180px, 54vw);
  }

  .hero-slide {
    padding: clamp(20px, 6vw, 32px) 16px clamp(6px, 2vw, 10px);
  }

  .hero-slide img {
    max-height: clamp(120px, 32vw, 200px);
    width: 100%;
  }

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

  .field--full {
    grid-column: auto;
  }

  .logo-fusion {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .logo-fusion__x {
    order: -1;
    margin-bottom: 4px;
  }

  .mobile-cta {
    display: block;
  }

  body {
    padding-bottom: 80px;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .btn-group {
    flex-direction: column;
  }

  .btn-group .btn {
    width: 100%;
  }
}
