:root {
  --primary: #ff6a00;        /* Arancione brillante */
  --primary-dark: #e55a00;   /* Arancione scuro */
  --primary-light: #ff8c42;  /* Arancione chiaro */

  --dark: #0b0b0b;           /* Sfondo principale */
  --light: #151515;          /* Sfondo sezioni / carte */
  --secondary: #1f1f1f;      /* Header / blocchi d'appoggio */
  --soft: #0e0e0e;           /* Input & superfici soft */

  --white: #ffffff;          /* Testo principale */
  --muted: #d9d9d9;          /* Testo secondario chiaro */
  --gray: #a7a7a7;           /* Testo terziario */
  --line: rgba(255,255,255,.08);

  --radius: 10px;
  --radius-lg: 30px;
  --shadow-s: 0 2px 10px rgba(0,0,0,.6);
  --shadow-m: 0 8px 24px rgba(0,0,0,.6);
  --shadow-l: 0 16px 48px rgba(0,0,0,.65);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--dark);
  color: var(--white);
  line-height: 1.6;
}

/* ====== Layout base ====== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header e Navigazione ===== */
header {
  background-color: var(--secondary);
  box-shadow: var(--shadow-s);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: .2px;
}

.logo i {
  margin-right: 10px;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--white);
  font-weight: 500;
  transition: color .25s ease, opacity .25s ease;
  opacity: .9;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  opacity: 1;
}

.nav-buttons {
  display: flex;
  align-items: center;
}

.btn {
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  text-decoration: none;
  display: inline-block;
  letter-spacing: .2px;
  will-change: transform;
}

.btn:active {
  transform: translateY(1px) scale(.99);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(255,106,0,.3);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 6px 16px rgba(229,90,0,.35);
}

.mobile-menu {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--white);
}

/* Arena Client = clone del bottone carrello, ma arancione */
.nos-arena-btn{
display:inline-flex;align-items:center;gap:.45rem;
padding:.5rem .8rem;border-radius:10px;font-weight:700;
text-decoration:none; border:1px solid rgba(255,255,255,.08);
background:linear-gradient(90deg,#ff6a00,#ffb300); color:#111;
transition:transform .15s ease, opacity .15s ease;
}
.nos-arena-btn:hover{ transform:translateY(-1px); opacity:.95; }
.nos-arena-btn .nos-cart-icon{ font-size:1rem; line-height:1; }

/* ===== Hero Section ===== */
.hero {
  padding: 100px 0;
  background:
    radial-gradient(1000px 500px at 20% -10%, rgba(255,106,0,.12), transparent 60%),
    radial-gradient(800px 400px at 80% 0%, rgba(255,140,66,.10), transparent 60%),
    linear-gradient(135deg, #000 0%, #121212 50%, #171717 100%);
  color: var(--white);
  text-align: center;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: inset 0 -1px 0 var(--line);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
  color: var(--muted);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.hero-buttons .btn {
  padding: 12px 30px;
  font-size: 1.05rem;
}

.btn-light {
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
}

.btn-light:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* ===== Page Content ===== */
.page-content {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 15px;
}

.section-title p {
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.content-card {
  background: var(--light);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-m);
  border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.content-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-l);
  border-color: rgba(255,106,0,.35);
}

.content-icon {
  width: 70px;
  height: 70px;
  background: rgba(255,106,0,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--primary);
  font-size: 1.8rem;
}

.content-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--white);
  text-align: center;
}

.content-card p {
  color: var(--gray);
  text-align: center;
}

/* ===== Domain Search ===== */
.domain-search {
  background: var(--light);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-m);
  margin-top: 40px;
  border: 1px solid var(--line);
}

.domain-search h3 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--white);
}

.search-form {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
}

.search-input {
  flex: 1;
  padding: 15px 20px;
  background: var(--soft);
  border: 1px solid #2a2a2a;
  color: var(--white);
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 1rem;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,106,0,.18);
}

.search-button {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 0 25px;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  font-weight: 700;
  transition: background .2s ease, box-shadow .2s ease;
}

.search-button:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 16px rgba(229,90,0,.35);
}

.domain-extensions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 30px;
}

.domain-extensions span {
  background: #101010;
  border: 1px solid #2a2a2a;
  padding: 8px 15px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--muted);
}

/* ===== Pricing Section ===== */
.pricing {
  padding: 100px 0;
  background-color: var(--dark);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.pricing-card {
  background: var(--light);
  border-radius: var(--radius);
  padding: 40px 30px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-m);
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-l);
  border-color: rgba(255,106,0,.3);
}

.pricing-card.popular {
  border: 2px solid var(--primary);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 40px rgba(255,106,0,.25);
}

.popular-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--primary);
  color: var(--white);
  padding: 5px 15px;
  font-size: .8rem;
  font-weight: 800;
  border-radius: 0 0 0 var(--radius);
  letter-spacing: .3px;
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--white);
}

.price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

.price span {
  font-size: 1rem;
  color: var(--gray);
}

.pricing-features {
  list-style: none;
  margin: 26px 0;
  text-align: left;
}

.pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid #262626;
  display: flex;
  align-items: center;
  color: var(--muted);
}

.pricing-features li i {
  color: var(--primary);
  margin-right: 10px;
}

/* ===== Contact Form ===== */
.contact-form {
  background: var(--light);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-m);
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--line);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--muted);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #2a2a2a;
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--soft);
  color: var(--white);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.form-control::placeholder {
  color: #8e8e8e;
}

.form-control:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,106,0,.18);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-row .form-group {
  flex: 1;
}

/* ===== Features Section ===== */
.features {
  padding: 100px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--light);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-m);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  text-align: center;
  border: 1px solid var(--line);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-l);
  border-color: rgba(255,106,0,.28);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: rgba(255,106,0,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--primary);
  font-size: 1.8rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--white);
}

.feature-card p {
  color: var(--gray);
}

/* ===== Testimonials ===== */
.testimonials {
  padding: 100px 0;
  background:
    radial-gradient(800px 400px at 85% 10%, rgba(255,140,66,.08), transparent 60%),
    radial-gradient(900px 450px at 15% 0%, rgba(255,106,0,.10), transparent 60%),
    linear-gradient(135deg, #0f0f0f 0%, #131313 60%, #171717 100%);
  color: var(--white);
}

.testimonials .section-title h2,
.testimonials .section-title p {
  color: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid rgba(255,255,255,.1);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
  color: var(--muted);
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #0f0f0f;
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 800;
  border: 1px solid var(--line);
}

.author-info h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--white);
}

.author-info p {
  opacity: .8;
  font-size: .9rem;
  color: var(--gray);
}

/* ===== CTA Section ===== */
.cta {
  padding: 100px 0;
  text-align: center;
  background: var(--dark);
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--white);
}

.cta p {
  max-width: 600px;
  margin: 0 auto 30px;
  color: var(--gray);
}

/* ===== Footer ===== */
footer {
  background: #0f0f0f;
  color: var(--white);
  padding: 70px 0 20px;
  border-top: 1px solid var(--line);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-column h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  color: var(--white);
}

.footer-column h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(2px);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--white);
  transition: all .2s ease;
}

.social-links a:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

/* ===== CART DRAWER STYLES ===== */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 400px;
  background: #101010;
  color: var(--white);
  box-shadow: -2px 0 18px rgba(0, 0, 0, 0.7);
  transform: translateX(100%);
  transition: transform .3s ease;
  z-index: 1000;
  border-left: 1px solid #222;
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 20px;
  border-bottom: 1px solid #222;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #141414;
}

.cart-drawer-header h3 {
  margin: 0;
  color: var(--white);
}

.close-cart {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray);
  transition: color .15s ease;
}

.close-cart:hover {
  color: var(--white);
}

.cart-drawer-items {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
}

.cart-drawer-footer {
  padding: 20px;
  border-top: 1px solid #222;
  background: #0f0f0f;
}

.cart-total {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: var(--white);
}

/* Cart Items */
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #222;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: 700;
  color: var(--white);
}

.cart-item-price {
  color: var(--primary);
  font-size: .95rem;
}

.remove-item {
  background: none;
  border: none;
  color: #ff6666;
  cursor: pointer;
  padding: 5px;
  transition: color .15s ease, transform .15s ease;
}

.remove-item:hover {
  color: #ff4444;
  transform: translateY(-1px);
}

/* Checkout Modal */
.checkout-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1001;
  align-items: center;
  justify-content: center;
}

.checkout-modal.open {
  display: flex;
}

.checkout-modal-content {
  background: #141414;
  color: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-l);
}

.checkout-modal-content h3 {
  margin-bottom: 20px;
  color: var(--white);
  text-align: center;
}

.checkout-form .form-group {
  margin-bottom: 15px;
}

.checkout-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  color: var(--muted);
}

.checkout-form input,
.checkout-form select {
  width: 100%;
  padding: 10px;
  border: 1px solid #2a2a2a;
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--soft);
  color: var(--white);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.checkout-form input:focus,
.checkout-form select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,106,0,.18);
}

.form-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.form-buttons .btn {
  flex: 1;
}

/* Empty Cart */
.empty-cart {
  text-align: center;
  padding: 40px 20px;
  color: var(--gray);
}

.empty-cart i {
  font-size: 3rem;
  margin-bottom: 15px;
  opacity: .6;
}

/* Overlay per il carrello */
.cart-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.cart-drawer.open + .cart-overlay {
  display: block;
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .pricing-card.popular {
    transform: translateY(-2px);
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-buttons {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
    margin-bottom: 10px;
  }

  .search-form {
    flex-direction: column;
  }

  .search-input {
    border-radius: var(--radius);
    margin-bottom: 10px;
  }

  .search-button {
    border-radius: var(--radius);
    padding: 15px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .cart-drawer {
    width: 100%;
  }

  .checkout-modal-content {
    margin: 20px;
    width: calc(100% - 40px);
  }

  .form-buttons {
    flex-direction: column;
  }
}