/* ============================================
   SITO SUBITO - Stylesheet principale
   ============================================
   Palette:
   - background:    #f8fafc
   - surface:       #ffffff
   - text primary:  #0f172a
   - text secondary:#475569
   - primary:       #ea580c
   - primary hover: #c2410c
   - soft accent:   #fff7ed
   - border:        #e2e8f0
   - success:       #16a34a
   ============================================ */

/* ----- Reset & Base ----- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #0f172a;
  background-color: #f8fafc;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: #ea580c;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #c2410c;
}

ul {
  list-style: none;
}

/* ----- Focus visible ----- */
:focus-visible {
  outline: 2px solid #ea580c;
  outline-offset: 2px;
}

/* ----- Container ----- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container--narrow {
  max-width: 780px;
}


/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 700;
  color: #0f172a;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 0.75rem;
}

.section__subtitle {
  font-size: 1.1rem;
  color: #475569;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.section__header {
  margin-bottom: 1rem;
}


/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background-color: #ea580c;
  color: #fff;
}

.btn--primary:hover {
  background-color: #c2410c;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
}

.btn--outline {
  background-color: transparent;
  color: #ea580c;
  border: 1.5px solid #ea580c;
}

.btn--outline:hover {
  background-color: #fff7ed;
  color: #c2410c;
  transform: translateY(-1px);
}

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

.btn--whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: #25d366;
  color: #fff;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.btn--whatsapp:hover {
  background-color: #1fb855;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}


/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.header--scrolled {
  border-bottom-color: #e2e8f0;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: #0f172a;
}

.header__logo:hover {
  color: #0f172a;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background-color: #ea580c;
  color: #fff;
  border-radius: 0.375rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.header__menu {
  display: flex;
  gap: 1.75rem;
}

.header__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: #475569;
  transition: color 0.2s ease;
  position: relative;
}

.header__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #ea580c;
  border-radius: 1px;
  transition: width 0.25s ease;
}

.header__link:hover,
.header__link.active {
  color: #ea580c;
}

.header__link:hover::after,
.header__link.active::after {
  width: 100%;
}

.header__cta {
  flex-shrink: 0;
}

/* Burger */
.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.header__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #0f172a;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.header__burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.header__burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 7rem 0 4rem;
  background-color: #fff;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.hero__secondary-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.hero__microcopy {
  font-size: 0.92rem;
  color: #64748b;
  font-weight: 500;
  line-height: 1.4;
}

.hero__microcopy:hover {
  color: #ea580c;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.hero__trust li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: #475569;
  font-weight: 500;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__mockup {
  position: relative;
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}


/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 5rem 0;
}

.section--alt {
  background-color: #fff;
}


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

.problem-card {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.problem-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.problem-card__icon {
  margin-bottom: 1rem;
}

.problem-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.problem-card__text {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.6;
}


/* ============================================
   SOLUTION STEPS (section 4)
   ============================================ */
.steps-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.step-card {
  background-color: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 2rem 1.5rem;
  text-align: center;
  flex: 1;
  max-width: 280px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.step-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: #fff7ed;
  color: #ea580c;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.step-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step-card__text {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.6;
}

.step-card__arrow {
  flex-shrink: 0;
  color: #cbd5e1;
}


/* ============================================
   PRICING
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1140px;
  margin: 0 auto;
}

.pricing-card {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.pricing-card--featured {
  border-color: #ea580c;
  box-shadow: 0 0 0 1px #ea580c;
}

.pricing-card__badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ea580c;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 1rem;
  border-radius: 2rem;
  white-space: nowrap;
}

.pricing-card__name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.pricing-card__target {
  font-size: 0.875rem;
  color: #475569;
  margin-bottom: 1.25rem;
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.pricing-card__from {
  font-size: 0.9rem;
  color: #475569;
}

.pricing-card__amount {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0f172a;
}

.pricing-card__desc {
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.pricing-card__features {
  margin-bottom: 2rem;
}

.pricing-card__features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  padding: 0.4rem 0;
  color: #0f172a;
}

.pricing-card__features li svg {
  flex-shrink: 0;
}

.pricing-card__notes {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.pricing-note {
  padding: 0.9rem 1rem;
  border: 1px solid #fed7aa;
  background-color: #fff7ed;
  border-radius: 0.75rem;
}

.pricing-note--muted {
  background-color: #ffffff;
  border-color: #e2e8f0;
}

.pricing-note__label {
  display: inline-block;
  margin-bottom: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c2410c;
}

.pricing-note--muted .pricing-note__label {
  color: #475569;
}

.pricing-note p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #475569;
}

.pricing-card__cta {
  width: 100%;
  text-align: center;
}

.pricing-disclaimer {
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 2rem;
  padding: 1.25rem;
  background-color: #f8fafc;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  line-height: 1.6;
}


/* ============================================
   PROCESS (Come funziona)
   ============================================ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.process-step {
  text-align: center;
  padding: 2rem 1.5rem;
  background-color: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.process-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.process-step__icon {
  margin-bottom: 0.75rem;
}

.process-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background-color: #fff7ed;
  color: #ea580c;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.process-step__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.process-step__text {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.6;
}

.process-closing {
  text-align: center;
  font-size: 1rem;
  color: #475569;
  max-width: 600px;
  margin: 0 auto;
}


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

.benefit-card {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.75rem 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.benefit-card__icon {
  margin-bottom: 0.75rem;
}

.benefit-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.benefit-card__text {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.6;
}


/* ============================================
   POST VENDITA
   ============================================ */
.postvendita-intro {
  text-align: center;
  font-size: 1rem;
  color: #475569;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.postvendita-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.postvendita-card {
  background-color: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.postvendita-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.postvendita-card__icon {
  margin-bottom: 1rem;
}

.postvendita-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.postvendita-card__text {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.6;
}

.postvendita-closing {
  text-align: center;
  font-size: 1rem;
  color: #475569;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

.postvendita-cta {
  text-align: center;
}


/* ============================================
   FAQ
   ============================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faq-item.open {
  border-color: #cbd5e1;
}

.faq-item__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.15rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  text-align: left;
  gap: 1rem;
  transition: color 0.2s ease;
}

.faq-item__question:hover {
  color: #ea580c;
}

.faq-item__icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: #94a3b8;
}

.faq-item.open .faq-item__icon {
  transform: rotate(180deg);
  color: #ea580c;
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item__answer p {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.925rem;
  color: #475569;
  line-height: 1.7;
}


/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
}

.form-input {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background-color: #fff;
  color: #0f172a;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.form-input::placeholder {
  color: #94a3b8;
}

.form-input:focus {
  outline: none;
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

.form-input.error {
  border-color: #ef4444;
}

.form-input.error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

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

.form-error {
  font-size: 0.8rem;
  color: #ef4444;
  min-height: 1.2em;
}

.form-group--checkbox {
  flex-direction: row;
  align-items: flex-start;
  flex-wrap: wrap;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.5;
}

.form-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.form-checkbox__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 0.25rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
  transition: all 0.2s ease;
  background-color: #fff;
}

.form-checkbox input:checked + .form-checkbox__mark {
  background-color: #ea580c;
  border-color: #ea580c;
}

.form-checkbox input:checked + .form-checkbox__mark::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -1px;
}

.form-checkbox input:focus-visible + .form-checkbox__mark {
  outline: 2px solid #ea580c;
  outline-offset: 2px;
}

.form-checkbox a {
  text-decoration: underline;
}

.form-submit {
  align-self: flex-start;
}

.form-success {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 0.5rem;
}

.form-success.visible {
  display: flex;
}

.form-success p {
  font-size: 0.9rem;
  color: #166534;
  font-weight: 500;
}

.form-success svg {
  flex-shrink: 0;
}

/* Contact info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  background-color: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
}

.contact-info__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.contact-info__text {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.6;
}

.contact-info__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-info__item svg {
  flex-shrink: 0;
}

.contact-info__link {
  font-size: 0.95rem;
  font-weight: 500;
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 3rem 0 2rem;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}

.footer__logo:hover {
  color: #fff;
}

.footer__logo .logo-icon {
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.85rem;
}

.footer__payoff {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: -0.5rem;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__links a {
  color: #94a3b8;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: #fff;
}

.footer__legal a {
  color: #64748b;
  font-size: 0.8rem;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.footer__legal a:hover {
  color: #94a3b8;
}

.footer__bottom {
  font-size: 0.8rem;
  color: #475569;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-top: 1px solid #1e293b;
  padding-top: 1.5rem;
  width: 100%;
  text-align: center;
}

.footer__bottom strong {
  color: #94a3b8;
}


/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 2.75rem;
  height: 2.75rem;
  background-color: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  color: #475569;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: #ea580c;
  color: #fff;
  border-color: #ea580c;
  transform: translateY(-2px);
}


/* ============================================
   REVEAL ANIMATION
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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


/* ============================================
   PREFERS REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__mockup {
    animation: none;
  }
}


/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__secondary-cta {
    align-items: center;
  }

  .hero__trust {
    justify-content: center;
  }

  .problems-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-row {
    flex-wrap: wrap;
  }

  .step-card__arrow {
    display: none;
  }

  .step-card {
    max-width: none;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .postvendita-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .postvendita-grid .postvendita-card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    justify-self: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
    padding: 5rem 2rem 2rem;
    transition: right 0.35s ease;
    z-index: 1000;
  }

  .header__nav.open {
    right: 0;
  }

  .header__menu {
    flex-direction: column;
    gap: 1.5rem;
  }

  .header__link {
    font-size: 1.05rem;
  }

  .header__cta {
    display: none;
  }

  .header__burger {
    display: flex;
  }

  .hero {
    padding: 6rem 0 3rem;
  }

  .hero__title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .section {
    padding: 3.5rem 0;
  }

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

  .steps-row {
    flex-direction: column;
    gap: 1rem;
  }

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

  .process-steps {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

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

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

  .postvendita-grid .postvendita-card:last-child {
    max-width: none;
  }

  .footer__links {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__secondary-cta {
    align-items: stretch;
  }

  .hero__microcopy {
    text-align: center;
  }

  .hero__trust {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .pricing-card {
    padding: 2rem 1.5rem;
  }

  .contact-info {
    padding: 1.5rem;
  }
}

/* Overlay per mobile menu */
.nav-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-overlay.visible {
  opacity: 1;
  visibility: visible;
}
