/* ===== Reset & base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #1a1516;
  --black-soft: #241c1c;
  --panel: #362826;
  --panel-deep: #2a1c19;
  --hero-deep: #0d0a0a;
  --red-dark: #3a0a0a;
  --red-mid: #6e0f0f;
  --red-bright: #b3121a;
  --red-glow: #ff2d3a;
  --gold: #d4af37;
  --text-main: #f7f2f0;
  --text-muted: #e3d7d3;
  --border: rgba(179, 18, 26, 0.35);
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: var(--black);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header / Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(26, 21, 22, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}

.nav-inner {
  max-width: 1150px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-main);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
}

.logo span {
  color: var(--red-bright);
}

.logo-img {
  height: 46px;
  width: 46px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  padding: 5px;
  border: 1px solid var(--border);
  display: block;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red-bright), var(--gold));
  transition: width 0.3s ease;
}

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

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

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 26px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-main);
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--red-glow);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--red-glow);
}

/* Mobile nav */
@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: min(80vw, 340px);
    background: linear-gradient(160deg, var(--black-soft) 0%, var(--red-dark) 140%);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    padding: 40px;
    transition: right 0.4s ease;
    border-left: 1px solid var(--border);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .hamburger {
    display: flex;
  }
}

@media (min-width: 861px) {
  .hamburger {
    display: none;
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(255, 45, 58, 0.35), transparent 60%),
    linear-gradient(180deg, rgba(13,10,10,0.5) 0%, rgba(13,10,10,0.8) 60%, var(--hero-deep) 100%),
    url('images/hero.png') center/cover no-repeat;
  padding: 120px 24px 80px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, var(--hero-deep) 100%);
  opacity: 0.7;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-eyebrow {
  display: inline-block;
  color: var(--red-glow);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 30px;
  background: rgba(179, 18, 26, 0.08);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 22px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.6);
}

.hero h1 .accent {
  background: linear-gradient(90deg, var(--red-glow), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 20px rgba(255, 45, 58, 0.35));
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 38px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red-bright), var(--red-dark));
  color: #fff;
  box-shadow: 0 6px 16px rgba(179, 18, 26, 0.28);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 45, 58, 0.32);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--red-glow);
  color: var(--red-glow);
}

/* ===== Section shared ===== */
section {
  padding: 100px 0;
  position: relative;
}

.section-tag {
  display: block;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--red-glow);
  margin-bottom: 12px;
}

.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 18px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 60px;
}

.divider {
  width: 70px;
  height: 3px;
  margin: 0 auto 20px;
  background: linear-gradient(90deg, var(--red-bright), var(--gold));
  border-radius: 3px;
}

/* ===== Chi sono ===== */
.about {
  background: linear-gradient(180deg, var(--black) 0%, var(--black-soft) 100%);
  padding-top: 40px;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.about-photo {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 14px 34px rgba(0,0,0,0.35);
}

.about-photo img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  filter: grayscale(15%) contrast(1.05);
}

.about-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(58,10,10,0.35) 100%);
}

.about-text h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.about-text .role {
  color: var(--red-glow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  margin-bottom: 24px;
  display: block;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 18px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 34px;
}

.stat {
  text-align: center;
  padding: 20px 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.stat .num {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--gold), var(--red-glow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== Servizi ===== */
.services {
  background: var(--black-soft);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  display: block;
  background: linear-gradient(160deg, var(--panel) 0%, var(--panel-deep) 100%);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 38px 28px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--red-glow);
  box-shadow: 0 14px 32px rgba(179, 18, 26, 0.18);
}

.service-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--red-bright), var(--red-dark));
  box-shadow: 0 6px 14px rgba(179, 18, 26, 0.22);
  flex-shrink: 0;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.service-subtitle {
  display: block;
  color: var(--red-glow);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.services-cta {
  text-align: center;
  margin-top: 56px;
}

/* ===== FAQ ===== */
.faq {
  background: linear-gradient(180deg, var(--black-soft) 0%, var(--black) 100%);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 16px;
  background: var(--panel);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.02rem;
  font-weight: 600;
  text-align: left;
}

.faq-question .icon {
  font-size: 1.4rem;
  color: var(--red-glow);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
}

.faq-item.active .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 26px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 26px 24px;
}

/* ===== Contatti ===== */
.contact {
  background: var(--black-soft);
  padding: 50px 0 70px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 620px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .contact-info-grid {
    grid-template-columns: 1fr;
  }
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.contact-item .ic {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-bright), var(--red-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item .ic svg {
  width: 16px;
  height: 16px;
}

.contact-item h4 {
  font-size: 0.85rem;
  margin-bottom: 2px;
}

.contact-item p, .contact-item a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.social-row {
  display: flex;
  gap: 14px;
  margin-top: 6px;
}

.social-row a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.social-row a:hover {
  background: var(--red-bright);
  border-color: var(--red-bright);
}

.contact-form {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 34px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red-glow);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

/* ===== Footer ===== */
footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 34px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

footer span {
  color: var(--text-muted);
}

.footer-links {
  margin-top: 8px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: underline;
}

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

.footer-sep {
  margin: 0 6px;
  opacity: 0.5;
}

/* ===== Offer page ===== */
.offer-hero {
  padding: 160px 0 80px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(179, 18, 26, 0.3), transparent 65%),
    var(--black);
  border-bottom: 1px solid var(--border);
}

.offer-hero .section-tag {
  margin-bottom: 16px;
}

.offer-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 18px;
}

.offer-hero p {
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

.offer-content {
  padding: 90px 0;
}

.offer-block {
  max-width: 850px;
  margin: 0 auto 100px;
}

.offer-block h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.offer-block h2::before {
  content: "";
  width: 34px;
  height: 3px;
  background: linear-gradient(90deg, var(--red-bright), var(--gold));
  display: inline-block;
}

.offer-block p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.offer-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  max-width: 1100px;
  margin: 0 auto 100px;
}

.offer-plans-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 640px;
}

.plan-duration {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.plan-card {
  background: linear-gradient(165deg, var(--panel), var(--panel-deep));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.plan-card > a.btn {
  margin-top: auto;
}

.plan-card.featured {
  border-color: var(--red-glow);
  box-shadow: 0 16px 38px rgba(179, 18, 26, 0.2);
  transform: scale(1.03);
}

.plan-card:hover {
  transform: translateY(-6px);
  border-color: var(--red-glow);
  box-shadow: 0 16px 38px rgba(179, 18, 26, 0.2);
}

.plan-card.featured:hover {
  transform: scale(1.03) translateY(-6px);
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--red-bright), var(--gold));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
  margin-top: 10px;
}

.plan-price {
  font-size: 2.4rem;
  font-weight: 800;
  margin: 16px 0;
  background: linear-gradient(90deg, var(--gold), var(--red-glow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.plan-price span {
  font-size: 0.95rem;
  color: var(--text-muted);
  -webkit-text-fill-color: var(--text-muted);
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin: 18px 0 2px;
}

.plan-price-row .plan-price {
  margin: 0;
}

.plan-price-old {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 1.3rem;
  font-weight: 600;
}

.plan-savings {
  color: var(--red-glow);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.plan-card ul {
  text-align: left;
  margin: 26px 0;
}

.plan-card ul li {
  color: var(--text-muted);
  padding: 8px 0;
  padding-left: 26px;
  position: relative;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.plan-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red-glow);
  font-weight: 700;
}

.plan-tagline {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-style: italic;
  margin-bottom: 24px;
}

.process-steps {
  max-width: 700px;
  margin: 0 auto 100px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
}

.process-steps::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 23px;
  width: 2px;
  background: linear-gradient(180deg, var(--red-bright), rgba(179, 18, 26, 0));
  opacity: 0.35;
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  position: relative;
}

.step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-bright), var(--red-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

.step h4 {
  margin-bottom: 6px;
  font-size: 1.05rem;
  margin-top: 10px;
}

.step p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.offer-cta {
  text-align: center;
  padding: 70px 24px;
  background: linear-gradient(135deg, var(--red-dark), var(--black));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.offer-cta h2 {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.offer-cta p {
  color: var(--text-muted);
  margin-bottom: 30px;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-photo img {
    height: 340px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .offer-plans {
    grid-template-columns: 1fr;
  }
  .plan-card.featured {
    transform: none;
  }
}

@media (max-width: 600px) {
  .stats {
    grid-template-columns: 1fr;
  }
  .offer-content {
    padding-bottom: 50px;
  }
  .offer-cta {
    padding: 50px 20px;
  }
  .offer-cta h2 {
    font-size: 1.5rem;
    line-height: 1.35;
  }
  .offer-cta p {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }
}

/* ===== Cookie Banner ===== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  background: var(--black-soft);
  border-top: 1px solid var(--border);
  padding: 26px 24px;
  max-height: 80vh;
  overflow-y: auto;
  transform: translateY(120%);
  transition: transform 0.4s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
  min-width: 280px;
}

.cookie-banner-text h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.cookie-banner-text p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.cookie-policy-link {
  color: var(--red-glow);
  text-decoration: underline;
  white-space: nowrap;
}

.cookie-policy-link:hover {
  color: var(--gold);
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-banner-actions .btn {
  padding: 10px 24px;
  font-size: 0.8rem;
}

@media (max-width: 700px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  .cookie-banner-actions {
    justify-content: center;
  }
}

/* Fade-in animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
