:root {
  /* Verificati dal CSS originale (mfn-dnmc-style-css su centralino-voip.cloud) */
  --theme: #3CB5D0;
  --theme-dark: #2c9eb8;
  --text: #444444;
  --muted: #626262;
  --light: #f4f4f4;
  --dark: #282828;
  --white: #FFFFFF;
  --border: #e8eef2;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --radius: 12px;
  --max-width: 1200px;
}

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

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  padding-top: var(--site-chrome-height, 0px);
}

a {
  color: var(--theme);
  text-decoration: none;
}

a:hover {
  color: var(--theme-dark);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

/* Barra superiore + header: visibili solo in cima pagina, nascosti allo scroll */
.site-chrome {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transform: translateY(0);
  transition: transform 0.35s ease;
  will-change: transform;
}

.site-chrome.site-chrome--hidden {
  transform: translateY(-100%);
  pointer-events: none;
}

/* Top bar */
.top-bar {
  background: var(--dark);
  color: #ccc;
  font-size: 0.875rem;
}

.top-bar .container {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  padding: 0.5rem 0;
}

.top-bar a {
  color: #ccc;
}

.top-bar a:hover {
  color: var(--white);
}

/* Header — logo centrato, navbar sotto */
.site-header {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #f8fcfd 0%, #ffffff 55%, #eef9fb 100%);
  border-bottom: none;
}

.site-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--theme), transparent);
  opacity: 0.45;
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  padding: 1.5rem 0 1.25rem;
}

.header-brand-row {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-cart {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  user-select: none;
}

.header-cart__shell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 14px;
  color: var(--theme);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(232, 249, 252, 0.92) 48%, rgba(210, 241, 248, 0.88) 100%);
  border: 1px solid rgba(60, 181, 208, 0.32);
  box-shadow:
    0 1px 2px rgba(60, 181, 208, 0.1),
    0 6px 18px rgba(60, 181, 208, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(60, 181, 208, 0.06);
}

.header-cart__ring {
  position: absolute;
  inset: -3px;
  border-radius: 16px;
  border: 1px solid rgba(60, 181, 208, 0.14);
  background: radial-gradient(circle at 30% 20%, rgba(60, 181, 208, 0.12), transparent 55%);
  pointer-events: none;
}

.header-cart__icon {
  position: relative;
  z-index: 1;
  width: 1.9rem;
  height: 1.9rem;
  display: block;
  filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.85));
}

.logo {
  line-height: 0;
}

.logo img {
  height: clamp(64px, 10vw, 96px);
  width: auto;
  display: block;
}

.main-nav {
  width: 100%;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--text);
  font-weight: 500;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  text-align: center;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--theme);
  border-bottom-color: var(--theme);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
}

/* Subheader — nascosto: titolo pagina non più usato sotto l'header */
.page-hero {
  display: none;
}

main {
  overflow-x: hidden;
}

/* Sections */
.section {
  padding: 4rem 0;
  background: var(--white);
}

.section-light {
  background: var(--light);
}

.section-dark {
  background: var(--dark);
  color: #ddd;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  margin: 0 0 0.75rem;
  font-size: 2rem;
}

.section-title .accent,
.themecolor {
  color: var(--theme);
}

.section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

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

.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  background: var(--theme);
  border-color: var(--theme);
  color: var(--white);
  transform: translateY(-8px);
}

.pricing-card.featured h3,
.pricing-card.featured .price,
.pricing-card.featured .subtitle,
.pricing-card.featured li {
  color: var(--white);
}

.pricing-card.featured header {
  border-bottom-color: rgba(0, 0, 0, 0.15);
}

.pricing-card.featured li {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.pricing-card.featured .btn {
  background: var(--white);
  color: #444444 !important;
}

.pricing-card.featured .btn:hover {
  background: #f5f5f5;
  color: #444444 !important;
}

.pricing-card header {
  padding: 2rem 1.5rem 1rem;
  text-align: center;
  border-bottom: 3px solid var(--theme);
}

.pricing-card h3 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
}

.price small {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
}

.pricing-card .subtitle {
  color: var(--muted);
  margin: 1rem 0 0;
}

.pricing-card ul {
  list-style: none;
  margin: 0;
  padding: 1.5rem;
  flex: 1;
}

.pricing-card li {
  padding: 0.4rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.pricing-card li:last-child {
  border-bottom: none;
}

.pricing-card footer {
  padding: 0 1.5rem 1.5rem;
}

.pricing-note {
  text-align: center;
  color: #a8a8a8;
  margin-top: 2rem;
}

.pricing-asterisk {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  margin-left: 0.1em;
}

.pricing-asterisk:hover,
.pricing-asterisk:focus {
  text-decoration: underline;
}

.pricing-footnote {
  text-align: center;
  color: #a8a8a8;
  margin-top: 1.5rem;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

.pricing-footnote small {
  font-size: 0.8125rem;
  line-height: 1.5;
}

.pricing-grid--addon-stacked {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pricing-grid__featured {
  display: flex;
  justify-content: center;
}

.pricing-grid__featured .pricing-card {
  width: 100%;
  max-width: 400px;
}

.pricing-grid__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.pricing-price-gratis {
  margin: 0 0 0.35rem;
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1;
  color: var(--theme-dark);
  letter-spacing: -0.02em;
}

.pricing-card.featured .pricing-price-gratis {
  color: var(--white);
}

.pricing-price-small {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--muted);
}

.pricing-price-small span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.82rem;
  font-weight: 400;
}

.pricing-card.featured .pricing-price-small {
  color: rgba(255, 255, 255, 0.88);
}

.pricing-card.featured .pricing-price-small span {
  color: rgba(255, 255, 255, 0.72);
}

.pricing-card--starter h3 {
  margin-bottom: 0.75rem;
}

.pricing-card header .subtitle {
  margin-top: 0.85rem;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--theme);
  color: var(--white) !important;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  text-align: center;
}

.btn:hover {
  background: var(--theme-dark);
  color: var(--white) !important;
}

.btn-outline {
  background: transparent;
  color: var(--theme) !important;
  border: 2px solid var(--theme);
}

.btn-outline:hover {
  background: var(--theme);
  color: var(--white) !important;
}

.btn-block {
  display: block;
  width: 100%;
}

/* VoIP box */
.voip-box {
  max-width: 900px;
  margin: 2rem auto 0;
  padding: 2.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.voip-box h3 {
  margin: 0 0 1rem;
  color: var(--theme);
  font-size: 1.75rem;
}

.voip-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.voip-option {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: #f8fcfd;
  border-left: 4px solid var(--theme);
  border-radius: var(--radius);
  transition: transform 0.2s;
}

.voip-option:hover {
  transform: translateX(6px);
}

.voip-option .num {
  min-width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--theme);
  color: var(--white);
  font-weight: 700;
  border-radius: 50%;
}

.voip-option h4 {
  margin: 0 0 0.35rem;
}

.voip-option p {
  margin: 0;
  color: var(--muted);
}

/* Features row */
.features-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: center;
}

.feature-card {
  padding: 1.5rem;
}

.feature-card h3 {
  margin-top: 0;
}

/* FAQ */
.content-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: var(--light);
  border: none;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.faq-question .num {
  color: var(--theme);
  min-width: 1.5rem;
}

.faq-answer {
  display: none;
  padding: 0 1.25rem 1rem;
  color: var(--muted);
}

.faq-item.open .faq-answer {
  display: block;
}

.side-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.side-card img {
  display: block;
  width: 100%;
}

.side-card .body {
  padding: 1.25rem;
}

.contact-box {
  background: linear-gradient(rgba(60, 181, 208, 0.85), rgba(60, 181, 208, 0.85)),
    url("/static/img/get_in_touch.png") center/cover;
  color: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
}

.contact-box a {
  color: var(--white);
}

.contact-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-box li {
  margin-bottom: 0.75rem;
}

/* Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.benefit-card {
  text-align: center;
  padding: 1rem;
}

.benefit-card .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(60, 181, 208, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--theme);
  font-size: 1.5rem;
}

.benefit-card h4 {
  margin: 0 0 0.5rem;
  color: var(--white);
}

.benefit-card p {
  margin: 0;
  color: #bbb;
  font-size: 0.95rem;
}

/* Contact form */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.form-group.full {
  grid-column: 1 / -1;
}

label {
  font-weight: 600;
  font-size: 0.9rem;
}

input,
textarea {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.alert-success {
  background: #e8f7ef;
  color: #1e7e45;
  border: 1px solid #b8e6cb;
}

.alert-error {
  background: #fdecea;
  color: #b42318;
  border: 1px solid #f5c2be;
}

/* Footer */
.site-footer {
  background: #1f1f1f;
  color: #aaa;
  padding: 2rem 0;
  font-size: 0.9rem;
  text-align: center;
}

.site-footer a {
  color: #ccc;
}

/* Legal / generic page */
.page-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-content h2 {
  margin-top: 2rem;
}

.checkout-result {
  text-align: center;
  max-width: 640px;
  padding: 2rem 0 3rem;
}

.checkout-result__icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.75rem;
  font-weight: 700;
}

.checkout-result__icon--success {
  background: #e8f7ef;
  color: #1e7e45;
}

.checkout-result__icon--cancel {
  background: #fdecea;
  color: #b42318;
}

.checkout-result__meta {
  font-size: 0.85rem;
  color: var(--muted);
  word-break: break-all;
}

.checkout-result .btn {
  margin: 0.35rem;
}

/* Responsive */
@media (max-width: 992px) {
  .pricing-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid__row {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: none;
  }

  .content-split,
  .features-row,
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    position: relative;
    padding-top: 2.5rem;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    top: 1rem;
    right: 0;
  }

  .main-nav {
    display: none;
    width: 100%;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
  }

  .logo img {
    height: clamp(52px, 14vw, 72px);
  }

  .voip-option {
    flex-direction: column;
  }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
  padding: 1rem 0;
  animation: cookie-banner-in 0.35s ease;
}

.cookie-banner[hidden] {
  display: none;
}

@keyframes cookie-banner-in {
  from {
    opacity: 0;
    transform: translateY(100%);
  }

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

.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cookie-banner__content {
  flex: 1;
  min-width: 0;
}

.cookie-banner__title {
  margin: 0 0 0.25rem;
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
}

.cookie-banner__text {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

.cookie-banner__actions {
  flex-shrink: 0;
}

.cookie-banner__accept {
  white-space: nowrap;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cookie-banner__accept {
    width: 100%;
  }
}
