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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.6;
}

/* VARIABILI */
:root {
  --bg-body: #f3f7ff;
  --bg-elevated: #ffffff;
  --bg-elevated-alt: #e8f1ff;
  --accent: #1d7ed6;
  --accent-strong: #1fb6ff;
  --accent-soft: rgba(31, 182, 255, 0.12);
  --text-main: #0f2f5c;
  --text-muted: #5c6f8b;
  --border-subtle: rgba(15, 47, 92, 0.2);
  --radius-lg: 18px;
  --radius-full: 999px;
  --shadow-soft: 0 25px 60px rgba(15, 47, 92, 0.1);
}

/* LAYOUT GENERALE */
.container {
  width: min(1120px, 100% - 3rem);
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: radial-gradient(circle at top left, rgba(31, 182, 255, 0.15), transparent 55%),
              radial-gradient(circle at bottom right, rgba(203, 218, 255, 0.6), transparent 60%);
}

/* HEADER / NAVBAR */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(243, 247, 255, 0.85));
  border-bottom: 1px solid rgba(15, 47, 92, 0.12);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.5rem;
  gap: 1.5rem;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--text-main);
}

.logo span {
  color: var(--accent-strong);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  font-size: 0.9rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 0.2rem;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(to right, var(--accent), var(--accent-strong));
  transition: width 0.2s ease;
}

.main-nav a:hover {
  color: var(--text-main);
}

.main-nav a.is-active {
  color: var(--text-main);
  font-weight: 600;
}

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

.main-nav a.is-active::after {
  width: 100%;
}

.nav-cta {
  font-size: 0.85rem;
}

/* BOTTONI */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  background: linear-gradient(to right, var(--accent), var(--accent-strong));
  color: #ffffff;
  box-shadow: 0 12px 32px rgba(31, 182, 255, 0.35);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 55px rgba(31, 182, 255, 0.35);
}

.btn-outline {
  background: transparent;
  border-color: rgba(15, 47, 92, 0.2);
  color: var(--text-main);
  box-shadow: none;
}

.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(31, 182, 255, 0.08);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(15, 47, 92, 0.12);
  color: var(--text-main);
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.95);
}

.btn-light {
  background: var(--bg-elevated);
  color: var(--accent);
  box-shadow: 0 12px 30px rgba(31, 182, 255, 0.25);
}

.btn-full {
  width: 100%;
}

/* ELEMENTI TIPOGRAFICI */
.hero h1,
.section h2 {
  font-weight: 700;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.4rem, 3.4vw, 3.2rem);
  color: var(--text-main);
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.9rem;
  color: var(--text-main);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* HERO */
.hero {
  padding: 5rem 0 4rem;
  background:
    radial-gradient(circle at top left, rgba(31, 182, 255, 0.25), transparent 55%),
    radial-gradient(circle at bottom right, rgba(182, 201, 255, 0.4), transparent 50%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-text {
  max-width: 600px;
}

.hero-subtitle {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-meta span {
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(29, 126, 214, 0.15);
  background: rgba(255, 255, 255, 0.9);
}

/* PAGE HERO */
.page-hero {
  padding: 4.75rem 0 2.25rem;
  background:
    radial-gradient(circle at top left, rgba(31, 182, 255, 0.2), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(232, 241, 255, 0.8));
}

.page-hero-apple {
  background:
    radial-gradient(circle at top left, rgba(15, 47, 92, 0.12), transparent 50%),
    radial-gradient(circle at bottom right, rgba(31, 182, 255, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(232, 241, 255, 0.85));
}

.page-hero-inner {
  max-width: 780px;
}

.page-intro {
  max-width: 680px;
  font-size: 1rem;
}

.hero-panel {
  display: flex;
  justify-content: center;
}

.hero-card {
  width: 100%;
  max-width: 380px;
  background: radial-gradient(circle at top left, rgba(31, 182, 255, 0.15), var(--bg-elevated));
  border-radius: 24px;
  padding: 1.8rem;
  border: 1px solid rgba(29, 126, 214, 0.2);
  box-shadow: var(--shadow-soft);
}

.hero-card h2 {
  font-size: 1.2rem;
}

.hero-card p {
  margin-bottom: 1rem;
}

.hero-list {
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.hero-list li {
  font-size: 0.9rem;
  position: relative;
  padding-left: 1.2rem;
  color: var(--text-main);
}

.hero-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent), var(--accent-strong));
}

/* ABOUT */
.two-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.key-points {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(29, 126, 214, 0.25);
  background: radial-gradient(circle at top left, rgba(31, 182, 255, 0.25), rgba(255, 255, 255, 0.95));
  font-size: 0.85rem;
  color: var(--text-main);
}

/* SEZIONI GENERALI */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-header p:last-of-type {
  margin-top: 0.5rem;
}

/* CARDS SERVIZI */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
}

.card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.card p {
  margin-bottom: 1rem;
}

.card-list {
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.card-list li {
  font-size: 0.9rem;
  color: var(--text-main);
  position: relative;
  padding-left: 1rem;
}

.card-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.page-teaser-grid,
.services-grid-extended {
  align-items: stretch;
}

.teaser-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.text-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.text-link:hover {
  text-decoration: underline;
}

/* VALORI / STEP */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.step {
  position: relative;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem 1.4rem;
  border: 1px solid rgba(29, 126, 214, 0.18);
  box-shadow: var(--shadow-soft);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent), var(--accent-strong));
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* CTA */
.cta {
  padding: 4rem 0;
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 2.3rem 2.1rem;
  border-radius: 26px;
  border: 1px solid rgba(29, 126, 214, 0.25);
  background: linear-gradient(135deg, rgba(31, 182, 255, 0.85), rgba(29, 126, 214, 0.85));
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.cta-inner .eyebrow,
.cta-inner h2,
.cta-inner p {
  color: #ffffff;
}

/* CONTATTI */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.contact-list a {
  color: var(--accent);
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.contact-form {
  background: var(--bg-elevated);
  border-radius: 20px;
  padding: 1.6rem 1.5rem;
  border: 1px solid rgba(29, 126, 214, 0.2);
  box-shadow: var(--shadow-soft);
}

.contact-actions {
  display: grid;
  gap: 1rem;
}

.contact-widget {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.1rem;
  border-radius: 20px;
  background: var(--bg-elevated);
  border: 1px solid rgba(29, 126, 214, 0.18);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.contact-widget:hover {
  transform: translateY(-2px);
  border-color: rgba(29, 126, 214, 0.35);
  box-shadow: 0 28px 65px rgba(15, 47, 92, 0.12);
}

.contact-widget-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f2f5c, #1fb6ff);
  color: #ffffff;
}

.contact-widget-icon svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
}

.contact-widget-content {
  display: grid;
  gap: 0.15rem;
}

.contact-widget-content strong {
  color: var(--text-main);
  font-size: 1rem;
}

.contact-widget-content span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-info-card {
  margin-top: 1.5rem;
  padding: 1.2rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 47, 92, 0.12);
}

.contact-info-card p {
  margin: 0;
}

.form-row {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-row label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(15, 47, 92, 0.2);
  background: #f9fbff;
  color: var(--text-main);
  font-size: 0.9rem;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(92, 111, 139, 0.7);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(31, 182, 255, 0.35);
}

.form-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0.3rem 0 1rem;
}

/* FOOTER */
.site-footer {
  border-top: 1px solid rgba(15, 47, 92, 0.12);
  padding: 2.5rem 0 2rem;
  background: radial-gradient(circle at top center, rgba(31, 182, 255, 0.12), #e8f1ff);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
  gap: 2rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.footer-logo {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.footer-text {
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.footer-heading {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.7rem;
  color: var(--text-main);
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.footer-links li {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-links a[aria-disabled="true"] {
  pointer-events: none;
}

.footer-links-plain a {
  pointer-events: none;
}

.apple-certification {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(15, 47, 92, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 40px rgba(15, 47, 92, 0.08);
}

.apple-icon {
  flex-shrink: 0;
  width: 2.7rem;
  height: 2.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f2f5c, #1fb6ff);
  color: #fff;
  overflow: visible;
}

.apple-icon svg {
  width: 1.28rem;
  height: 1.28rem;
  fill: currentColor;
  overflow: visible;
}

.apple-certification strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  color: var(--text-main);
}

.apple-certification p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom {
  border-top: 1px solid rgba(15, 47, 92, 0.12);
  padding-top: 1rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
}

.whatsapp-float {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 3.8rem;
  height: 3.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #25d366, #12a74b);
  color: #ffffff;
  box-shadow: 0 18px 45px rgba(18, 167, 75, 0.35);
  z-index: 60;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 24px 55px rgba(18, 167, 75, 0.42);
}

.whatsapp-float svg {
  width: 1.7rem;
  height: 1.7rem;
  fill: currentColor;
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero-grid,
  .two-columns,
  .cards-grid,
  .steps-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav-container {
    flex-wrap: wrap;
  }

  .main-nav ul {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .nav-cta {
    margin-left: auto;
  }

  .hero {
    padding-top: 4rem;
  }

  .page-hero {
    padding-top: 3.6rem;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 3.5rem 0;
  }

  .nav-container {
    padding: 0.85rem 0.2rem;
  }

  .main-nav ul {
    font-size: 0.82rem;
    gap: 0.75rem;
  }

  h1 {
    font-size: 2.1rem;
  }

  .hero-card {
    margin-top: 1.2rem;
  }

  .whatsapp-float {
    right: 0.9rem;
    bottom: 0.9rem;
    width: 3.4rem;
    height: 3.4rem;
  }
}
