/* =============================================
   Civora Quota — Main Stylesheet
   Font: Sora (headings) + Inter (body)
   Brand colors: #0f766e (teal) + #f2994a (copper)
============================================= */


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

:root {
  --blue: #0f766e; /* teal-700 — primary */
  --blue-dark: #042f2e; /* teal-950 — deep */
  --blue-light: #14b8a6; /* teal-500 */
  --blue-50: #f0fdfa; /* teal-50 */
  --gold: #f2994a; /* copper — accent */
  --gold-dark: #d97b2a; /* copper dark */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'Inter', sans-serif; color: var(--gray-900); background: #fff; line-height: 1.6; overflow-x: hidden; }
h1,h2,h3,h4,h5,h6 { font-family: 'Sora', sans-serif; line-height: 1.25; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ---- HEADER ---- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 1rem;
}
.header__logo { display: flex; align-items: center; gap: .5rem; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--gray-900); }
.header__logo-icon { width: 36px; height: 36px; background: var(--blue); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.header__logo-icon svg { width: 20px; height: 20px; fill: #fff; }
.header__logo-sub { color: var(--blue); }
.header__nav { display: flex; align-items: center; gap: .25rem; }
.header__nav a { padding: .4rem .75rem; border-radius: 8px; font-size: .875rem; font-weight: 500; color: var(--gray-700); transition: background .15s, color .15s; }
.header__nav a:hover, .header__nav a.active { background: var(--blue-50); color: var(--blue); }
.header__actions { display: flex; align-items: center; gap: .75rem; }
.btn-ghost { background: none; border: none; font-size: .875rem; font-weight: 500; color: var(--gray-700); padding: .4rem .75rem; border-radius: 8px; transition: background .15s; }
.btn-ghost:hover { background: var(--gray-100); }
.btn-primary { background: var(--blue); color: #fff; border: none; padding: .5rem 1.25rem; border-radius: 10px; font-size: .875rem; font-weight: 600; transition: background .15s, transform .1s; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-primary:active { transform: scale(.97); }
.btn-primary-lg { background: var(--blue); color: #fff; border: none; padding: .75rem 2rem; border-radius: 12px; font-size: 1rem; font-weight: 700; transition: background .15s, transform .1s; display: inline-block; }
.btn-primary-lg:hover { background: var(--blue-dark); }
.btn-primary-lg:active { transform: scale(.97); }
.btn-white { background: #fff; color: var(--blue); border: none; padding: .75rem 2rem; border-radius: 12px; font-size: 1rem; font-weight: 700; transition: background .15s, transform .1s; display: inline-block; }
.btn-white:hover { background: var(--blue-50); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: .25rem; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--gray-700); border-radius: 2px; transition: .2s; }
.mobile-nav { display: none; flex-direction: column; gap: .25rem; padding: .75rem 1.5rem 1rem; border-top: 1px solid var(--gray-200); }
.mobile-nav a { padding: .6rem .75rem; border-radius: 8px; font-size: .9rem; font-weight: 500; color: var(--gray-700); }
.mobile-nav a:hover { background: var(--blue-50); color: var(--blue); }
.mobile-nav .btn-primary { margin-top: .5rem; text-align: center; color: #fff !important; }

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, #042f2e 0%, #115e59 55%, #0f766e 100%);
  color: #fff; padding: 5rem 0 4rem;
}
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero__title { font-size: 2.75rem; font-weight: 800; line-height: 1.15; margin-bottom: 1.25rem; }
.hero__title span { color: #f7b267; }
.hero__desc { color: #99f6e4; font-size: 1.05rem; margin-bottom: 1.75rem; }
.hero__sub { font-size: .85rem; color: #5eead4; margin-top: .75rem; }
.hero__form-card {
  background: #fff; border-radius: var(--radius-lg); padding: 2rem;
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
}
.hero__form-card h3, .hero__form-card h2 { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); margin-bottom: .25rem; }
.hero__form-card p { font-size: .8rem; color: var(--gray-500); margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.form-group { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .75rem; }
.form-group label { font-size: .7rem; font-weight: 700; color: var(--gray-500); letter-spacing: .05em; text-transform: uppercase; }
.form-group input {
  border: 1.5px solid var(--gray-200); border-radius: 8px; padding: .6rem .85rem;
  font-size: .9rem; font-family: inherit; color: var(--gray-900); outline: none;
  transition: border-color .15s;
}
.form-group input:focus { border-color: var(--blue); }
.hero__inner > *, .form-row > *, .phone-field > * { min-width: 0; }
.phone-field { display: flex; gap: .5rem; flex-wrap: wrap; }
.phone-field .error-message { flex-basis: 100%; }
.input-error { border-color: #dc2626 !important; }
.error-message { display: block; font-size: .75rem; color: #dc2626; margin-top: .3rem; }
.phone-code-fixed {
  flex: 0 0 auto; display: flex; align-items: center;
  border: 1.5px solid var(--gray-200); border-radius: 8px; padding: .6rem .75rem;
  font-size: .9rem; font-weight: 700; color: var(--gray-500);
  background: var(--gray-50, #f9fafb);
}
.phone-field .phone-number-input,
.phone-field input[type="tel"] { flex: 1 1 0; min-width: 0; width: auto; }
.form-submit { width: 100%; background: var(--blue); color: #fff; border: none; padding: .8rem; border-radius: 10px; font-size: 1rem; font-weight: 700; margin-top: .25rem; transition: background .15s, transform .1s; }
.form-submit:hover { background: var(--blue-dark); }
.form-submit:active { transform: scale(.98); }
.form-legal { font-size: .72rem; color: var(--gray-400); text-align: center; margin-top: .75rem; }
.form-legal a { color: var(--blue); }
.form-success { display: none; text-align: center; padding: 2rem 1rem; }
.form-success h4, .form-success h3 { font-size: 1.2rem; font-weight: 700; color: var(--gray-900); margin-bottom: .5rem; }
.form-success p { color: var(--gray-500); font-size: .9rem; }
.form-success .check { width: 56px; height: 56px; background: #ccfbf1; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }

/* ---- SECTION COMMON ---- */
.section { padding: 5rem 0; }
.section--gray { background: var(--gray-50); }
.section__header { text-align: center; margin-bottom: 3rem; }
.section__title { font-size: 2rem; font-weight: 700; color: var(--gray-900); margin-bottom: .75rem; }
.section__sub { color: var(--gray-500); font-size: 1rem; max-width: 560px; margin: 0 auto; }
.section__title--left { text-align: left; }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; padding: .25rem .75rem; border-radius: 999px; margin-bottom: .75rem; letter-spacing: .04em; text-transform: uppercase; }
.tag--blue { background: #ccfbf1; color: var(--blue); }
.tag--green { background: #fdeee0; color: #d97b2a; }
.tag--violet { background: #e8e2fb; color: #6d28d9; }

/* ---- VIDEO ---- */
.video-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* ---- STEPS ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step { text-align: center; }
.step__num { width: 52px; height: 52px; background: var(--blue); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Sora', sans-serif; font-size: 1.25rem; font-weight: 800; margin: 0 auto 1rem; }
.step__title { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.step__desc { color: var(--gray-500); font-size: .9rem; }

/* ---- FEATURES GRID ---- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; }
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.feature-card__icon { width: 52px; height: 52px; background: var(--blue-50); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.feature-card__icon svg { width: 26px; height: 26px; stroke: var(--blue); fill: none; }
.feature-card__title { font-size: .95rem; font-weight: 700; margin-bottom: .4rem; }
.feature-card__desc { font-size: .85rem; color: var(--gray-500); }

/* ---- STATS ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { text-align: center; }
.stat__num { font-family: 'Sora', sans-serif; font-size: 2.25rem; font-weight: 800; color: var(--blue); }
.stat__label { font-size: .85rem; color: var(--gray-500); margin-top: .25rem; }

/* ---- CALCULATOR ---- */
.calc-card { background: #fff; border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow-md); max-width: 560px; margin: 0 auto; }
.calc-slider-wrap { margin: 1.5rem 0; }
.calc-slider-wrap label { font-size: .8rem; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: .04em; display: flex; justify-content: space-between; margin-bottom: .5rem; }
.calc-slider-wrap label span { color: var(--blue); font-size: 1rem; }
input[type=range] { width: 100%; accent-color: var(--blue); height: 4px; }
.calc-result { background: linear-gradient(135deg, var(--blue), #0d9488); color: #fff; border-radius: var(--radius); padding: 1.25rem; text-align: center; margin-top: 1.5rem; }
.calc-result__label { font-size: .85rem; opacity: .8; margin-bottom: .25rem; }
.calc-result__amount { font-family: 'Sora', sans-serif; font-size: 2.5rem; font-weight: 800; }
.calc-result__sub { font-size: .8rem; opacity: .7; margin-top: .25rem; }

/* ---- TABLE ---- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; }
.compare-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); min-width: 400px; }
.compare-table th { background: var(--blue); color: #fff; padding: .85rem 1.25rem; font-size: .85rem; font-weight: 600; text-align: left; }
.compare-table td { padding: 1rem 1.25rem; font-size: .875rem; border-bottom: 1px solid var(--gray-100); color: var(--gray-700); vertical-align: middle; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td { background: var(--gray-50); }
.check-yes { color: #0f766e; font-weight: 700; }
.check-no { color: #dc2626; }

/* ---- TESTIMONIALS ---- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-md); transition: box-shadow .2s, transform .2s; }
.testimonial:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.testimonial__stars { color: #f2994a; font-size: 1rem; margin-bottom: .75rem; }
.testimonial__text { font-size: .875rem; color: var(--gray-700); line-height: 1.6; margin-bottom: 1rem; }
.testimonial__author { display: flex; align-items: center; gap: .75rem; }
.testimonial__avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; color: #fff; flex-shrink: 0; }
.testimonial__name { font-size: .875rem; font-weight: 600; }
.testimonial__location { font-size: .75rem; color: var(--gray-400); }

/* ---- VIDEO CASES ---- */
.video-cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

/* ---- CTA BANNER ---- */
.cta-banner { background: linear-gradient(135deg, #042f2e, #0f766e); color: #fff; border-radius: var(--radius-lg); padding: 3.5rem 2rem; text-align: center; }
.cta-banner h2 { font-size: 2rem; font-weight: 800; margin-bottom: .75rem; }
.cta-banner p { color: #99f6e4; margin-bottom: 2rem; }
.cta-banner__btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- ACCORDION (FAQ) ---- */
.accordion { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: .75rem; }
.accordion-item { border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; }
.accordion-btn { width: 100%; background: #fff; border: none; padding: 1.1rem 1.25rem; text-align: left; font-family: 'Sora', sans-serif; font-size: .95rem; font-weight: 600; color: var(--gray-900); display: flex; justify-content: space-between; align-items: center; gap: 1rem; transition: background .15s; }
.accordion-btn:hover { background: var(--gray-50); }
.accordion-btn .chevron { width: 18px; height: 18px; stroke: var(--gray-400); flex-shrink: 0; transition: transform .25s; }
.accordion-item.open .chevron { transform: rotate(180deg); }
.accordion-body { display: none; padding: 0 1.25rem 1.1rem; font-size: .9rem; color: var(--gray-500); line-height: 1.7; }
.accordion-item.open .accordion-body { display: block; }

/* ---- CONTACT FORM ---- */
.contact-form { max-width: 560px; margin: 0 auto; background: #fff; border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow-md); }

/* ---- BLOG ---- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.blog-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .2s, transform .2s; display: flex; flex-direction: column; }
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.blog-card__img { position: relative; height: 190px; overflow: hidden; }
.blog-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.blog-card:hover .blog-card__img img { transform: scale(1.04); }
.blog-card__cat { position: absolute; top: .75rem; left: .75rem; font-size: .7rem; font-weight: 700; padding: .25rem .65rem; border-radius: 999px; }
.blog-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.blog-card__meta { font-size: .75rem; color: var(--gray-400); margin-bottom: .6rem; }
.blog-card__title { font-family: 'Sora', sans-serif; font-size: .95rem; font-weight: 700; color: var(--gray-900); margin-bottom: .6rem; line-height: 1.4; flex: 1; }
.blog-card__excerpt { font-size: .82rem; color: var(--gray-500); line-height: 1.55; margin-bottom: 1rem; }
.blog-card__link { font-size: .82rem; font-weight: 600; color: var(--blue); display: flex; align-items: center; gap: .3rem; }

/* ---- ARTICLE ---- */
.article { max-width: 760px; margin: 0 auto; padding: 3.5rem 1.5rem; }
.breadcrumb { font-size: .75rem; color: var(--gray-400); margin-bottom: 1.5rem; display: flex; align-items: center; gap: .4rem; }
.breadcrumb a { color: var(--gray-400); } .breadcrumb a:hover { color: var(--blue); }
.article h1 { font-size: 2.2rem; font-weight: 800; color: var(--gray-900); margin-bottom: 1rem; line-height: 1.2; }
.article__meta { font-size: .85rem; color: var(--gray-400); margin-bottom: 2rem; display: flex; gap: .75rem; flex-wrap: wrap; }
.article__hero-img { width: 100%; height: 320px; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 2.5rem; }
.article__body { font-size: .95rem; color: var(--gray-700); line-height: 1.8; }
.article__body h2 { font-size: 1.4rem; font-weight: 700; color: var(--gray-900); margin: 2.5rem 0 .75rem; }
.article__body p { margin-bottom: 1.1rem; }
.article__body ul { padding-left: 1.5rem; margin-bottom: 1.1rem; }
.article__body li { margin-bottom: .5rem; }
.article__body strong { color: var(--gray-900); }
.article__cta { border-radius: var(--radius-lg); padding: 2.5rem; text-align: center; color: #fff; margin-top: 3rem; }
.article__cta h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: .5rem; }
.article__cta p { opacity: .85; margin-bottom: 1.5rem; }
.back-link { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--blue); margin-top: 2rem; }
.back-link:hover { text-decoration: underline; }

/* ---- OPINIONES ---- */
.rating-box { background: rgba(255,255,255,.12); border-radius: var(--radius-lg); padding: 1.75rem 2rem; display: flex; align-items: center; gap: 2.5rem; max-width: 520px; margin: 0 auto; }
.rating-big { text-align: center; }
.rating-big__num { font-family: 'Sora', sans-serif; font-size: 3.5rem; font-weight: 800; color: #fff; line-height: 1; }
.rating-big__stars { color: #f7b267; font-size: 1.3rem; margin: .25rem 0; }
.rating-big__count { font-size: .8rem; color: rgba(255,255,255,.7); }
.rating-bars { flex: 1; display: flex; flex-direction: column; gap: .4rem; }
.rating-bar { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: rgba(255,255,255,.8); }
.rating-bar__track { flex: 1; height: 6px; background: rgba(255,255,255,.2); border-radius: 3px; overflow: hidden; }
.rating-bar__fill { height: 100%; background: #f7b267; border-radius: 3px; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.review-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.5rem; }
.review-card__header { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.review-card__avatar { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; color: #fff; flex-shrink: 0; }
.review-card__name { font-weight: 600; font-size: .9rem; }
.review-card__loc { font-size: .75rem; color: var(--gray-400); }
.review-card__stars { color: #f2994a; font-size: .9rem; margin-bottom: .6rem; }
.review-card__text { font-size: .85rem; color: var(--gray-700); line-height: 1.6; }
.review-card__date { font-size: .75rem; color: var(--gray-400); margin-top: .75rem; }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero { background: linear-gradient(135deg, #042f2e, #0f766e); color: #fff; padding: 4rem 0 3.5rem; text-align: center; }
.page-hero h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: .75rem; }
.page-hero p { color: #99f6e4; font-size: 1rem; max-width: 560px; margin: 0 auto; }

/* ---- LEGAL ---- */
.legal-content { max-width: 760px; margin: 0 auto; padding: 3.5rem 1.5rem; }
.legal-content h2 { font-size: 1.3rem; font-weight: 700; margin: 2rem 0 .6rem; }
.legal-content p, .legal-content li { font-size: .9rem; color: var(--gray-700); line-height: 1.75; margin-bottom: .75rem; }
.legal-content ul { padding-left: 1.5rem; }

/* ---- FOOTER ---- */
.footer { background: var(--gray-900); color: #9ca3af; padding: 3.5rem 0 1.5rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer__brand { color: #fff; font-family: 'Sora', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: .75rem; display: flex; align-items: center; gap: .5rem; }
.footer__brand-icon { width: 32px; height: 32px; background: var(--blue); border-radius: 7px; display: flex; align-items: center; justify-content: center; }
.footer__brand-icon svg { width: 18px; height: 18px; fill: #fff; }
.footer__desc { font-size: .85rem; line-height: 1.65; max-width: 300px; }
.footer__col h4, .footer__col-title { color: #fff; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer__col ul li a { font-size: .85rem; color: #9ca3af; transition: color .15s; }
.footer__col ul li a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid #1f2937; padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; font-size: .8rem; }
.footer__bottom a { color: #9ca3af; } .footer__bottom a:hover { color: #fff; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .section--hide-mobile { display: none; }
  .header__nav, .header__actions { display: none; }
  .hamburger { display: flex; }
  .mobile-nav.open { display: flex; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__title { font-size: 2rem; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .video-cases { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .rating-box { flex-direction: column; gap: 1.25rem; }
  .page-hero h1 { font-size: 1.8rem; }
  .article h1 { font-size: 1.6rem; }
  .section__title { font-size: 1.6rem; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cta-banner h2 { font-size: 1.5rem; }
}

/* ===== ADDITIONAL BLOCKS ===== */

/* --- PARTNERS GRID --- */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}
.partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem 2.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  min-height: 100px;
  transition: box-shadow .2s, transform .2s;
  box-sizing: border-box;
  overflow: hidden;
}
.partner-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.13);
  transform: translateY(-2px);
}
.partner-card--dark {
  background: #2d2d2d;
}
.partner-card img {
  width: auto;
  max-width: 160px;
  max-height: 44px;
  height: auto;
  object-fit: contain;
  display: block;
}

/* --- TWO-COL TEXT --- */
.two-col-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 1.5rem;
}
.two-col-text h2 { text-align: left; }

/* --- TICKERS GRID --- */
.tickers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.ticker-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-md);
  height: 220px;
}
.ticker-item iframe {
  width: 100%;
  height: 220px;
  border: none;
  display: block;
}

/* --- ABOUT GRID --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.about-grid--reverse .about-grid__img { order: -1; }
.about-grid--mb { margin-bottom: 3rem; }
.about-grid__img img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

/* --- WHY CARDS --- */
.why-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.why-card {
  text-align: center;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
}
.why-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.why-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 1.25rem;
  display: block;
}
.why-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; color: var(--gray-900); }
.why-card p { font-size: .875rem; color: var(--gray-500); line-height: 1.6; }

/* --- DARK SECTION --- */
.section--dark {
  background: linear-gradient(135deg, #042f2e 0%, #0f766e 100%);
  padding: 5rem 0;
}
.section--dark .section__title { color: #fff; }
.section--dark .section__sub { color: rgba(255,255,255,.75); }

/* --- HOW GRID (dark section) --- */
.how-grid {
  display: grid;
  gap: 2rem;
}
.how-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.how-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.how-card {
  background: rgba(255,255,255,.95);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}
.how-card--featured {
  background: rgba(255,255,255,.95);
}
.how-card h4 { font-size: .95rem; font-weight: 700; margin-bottom: .5rem; color: var(--gray-900); }
.how-card p { font-size: .85rem; color: var(--gray-500); line-height: 1.6; }
.how-desc { color: rgba(255,255,255,.9); font-size: .95rem; line-height: 1.8; }

/* --- RISK BOX --- */
.risk-box {
  background: var(--blue-50);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
}
.risk-box h5 { font-size: .9rem; font-weight: 700; color: var(--blue-dark); margin-bottom: .4rem; }
.risk-box p { font-size: .85rem; color: #4b5563; }

/* --- TRADING TYPES --- */
.trading-types { display: flex; flex-direction: column; gap: 0; margin-top: 1.5rem; }
.trading-type {
  border-bottom: 1px solid var(--gray-200);
  padding: 1rem 0;
}
.trading-type:first-child { padding-top: 0; }
.trading-type:last-child { border-bottom: none; padding-bottom: 0; }
.trading-type h4 { font-size: .95rem; font-weight: 700; margin-bottom: .3rem; color: var(--gray-900); }
.trading-type p { font-size: .875rem; color: var(--gray-500); line-height: 1.6; }

/* --- OVERVIEW GRID (dark section) --- */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.overview-item {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: background .2s;
}
.overview-item:hover { background: rgba(255,255,255,.18); }
.overview-item img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}
.overview-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(242,153,74,.15);
  border-radius: 12px;
  flex-shrink: 0;
}
.overview-icon svg {
  width: 26px;
  height: 26px;
}
.overview-item h4 { font-size: 1rem; font-weight: 700; color: #fff; }
.overview-item p { font-size: .875rem; color: rgba(255,255,255,.8); line-height: 1.6; }

/* --- VIDEO CASES GRID (vertical aspect ratio) --- */
.video-cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.video-case {
  position: relative;
  padding-bottom: 177.78%; /* 9:16 vertical */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: var(--shadow-md);
}
.video-case iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* --- RATING SUMMARY (dark) --- */
.rating-summary { text-align: center; }
.trust-badge {
  display: inline-block;
  background: #0f766e;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: .25rem .75rem;
  border-radius: 999px;
  letter-spacing: .06em;
  margin-left: .75rem;
  vertical-align: middle;
}

/* --- FEATURES GRID OVERRIDE (5 cards) --- */
.features.features--5 {
  grid-template-columns: repeat(6, 1fr);
}
/* First 3 cards: 2 cols each */
.features.features--5 .feature-card:nth-child(1),
.features.features--5 .feature-card:nth-child(2),
.features.features--5 .feature-card:nth-child(3) {
  grid-column: span 2;
}
/* Last 2 cards: centered — start at col 2 and col 4 */
.features.features--5 .feature-card:nth-child(4) {
  grid-column: 2 / span 2;
}
.features.features--5 .feature-card:nth-child(5) {
  grid-column: 4 / span 2;
}

/* ===== RESPONSIVE NEW BLOCKS ===== */
@media (max-width: 1024px) {
  .video-cases-grid { grid-template-columns: repeat(2, 1fr); }
  .overview-grid { grid-template-columns: repeat(2, 1fr); }
  .tickers-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
  .about-grid { gap: 2.5rem; }
}
@media (max-width: 768px) {
  .partners-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .partner-card { padding: 1.5rem; }
  .two-col-text { grid-template-columns: 1fr; gap: 1.5rem; }
  .tickers-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-grid--reverse .about-grid__img { order: 0; }
  .why-cards { grid-template-columns: 1fr; }
  .how-main { grid-template-columns: 1fr; }
  .how-cards-row { grid-template-columns: 1fr; }
  .overview-grid { grid-template-columns: 1fr; }
  .video-cases-grid { grid-template-columns: repeat(2, 1fr); }
  .features.features--5 { grid-template-columns: 1fr; }
  .features.features--5 .feature-card:nth-child(1),
  .features.features--5 .feature-card:nth-child(2),
  .features.features--5 .feature-card:nth-child(3),
  .features.features--5 .feature-card:nth-child(4),
  .features.features--5 .feature-card:nth-child(5) {
    grid-column: auto;
    margin-left: 0;
    transform: none;
  }
}
@media (max-width: 480px) {
  .video-cases-grid { grid-template-columns: 1fr 1fr; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; width: 100%; box-sizing: border-box; }
  .partner-card { padding: 1.25rem 1rem; min-height: 80px; box-sizing: border-box; overflow: hidden; }
  .partner-card img { max-width: 100%; height: auto; }
}

/* Footer disclaimer */
.footer__disclaimer {
  border-top: 1px solid #374151;
  padding: 1.5rem 0 1rem;
  margin-top: .5rem;
}
.footer__disclaimer p {
  font-size: .78rem;
  line-height: 1.65;
  color: #6b7280;
  max-width: 900px;
}
.footer__disclaimer strong {
  color: #9ca3af;
}

/* CTA Register Block (replaces third form) */
.cta-register-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  border: 1px solid var(--gray-200);
}
.cta-register-block__text { flex: 1; }
.cta-register-block__action { flex-shrink: 0; text-align: center; }
@media (max-width: 768px) {
  .cta-register-block { flex-direction: column; gap: 2rem; text-align: center; }
  .cta-register-block__text .section__title--left { text-align: center; }
}

/* =============================================
   Civora Quota — stati interattivi
============================================= */

/* Header: ombra allo scroll */
.header.scrolled { box-shadow: 0 2px 10px rgba(4,47,46,.08); }

/* Hamburger animato */
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Form: textarea coerente con gli input */
.form-textarea {
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  padding: .6rem .85rem;
  font-size: .9rem;
  font-family: inherit;
  color: var(--gray-900);
  outline: none;
  min-height: 120px;
  resize: vertical;
  transition: border-color .15s;
}
.form-textarea:focus { border-color: var(--blue); }

/* Form: errori di validazione */
.form-group.has-error input,
.form-group.has-error textarea { border-color: #dc2626; }
.field-error {
  font-size: .72rem;
  color: #dc2626;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}

/* Form: stato inviato */
.reg-form.submitted .form-fields { display: none; }
.reg-form.submitted .form-success { display: block; }
.form-submit:disabled { opacity: .7; cursor: progress; }

/* Evidenziazione del modulo di registrazione dopo lo scroll */
#register-form.highlight {
  animation: cq-highlight 1.6s ease;
}
@keyframes cq-highlight {
  0%   { box-shadow: 0 20px 40px rgba(0,0,0,.25), 0 0 0 0 rgba(242,153,74,.65); }
  40%  { box-shadow: 0 20px 40px rgba(0,0,0,.25), 0 0 0 10px rgba(242,153,74,0); }
  100% { box-shadow: 0 20px 40px rgba(0,0,0,.25), 0 0 0 0 rgba(242,153,74,0); }
}

/* Focus visibile per l'accessibilità da tastiera */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(242,153,74,.6);
  outline-offset: 2px;
}

/* Testo riservato ai lettori di schermo */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Slider del simulatore */
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(90deg, #0f766e 0%, #0f766e 0%, #e5e7eb 0%, #e5e7eb 100%);
  border-radius: 999px;
  cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--blue);
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  cursor: pointer;
}
input[type=range]::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--blue);
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  cursor: pointer;
}

/* Menu mobile a pannello */
@media (max-width: 900px) {
  .mobile-nav.open {
    background: #fff;
    box-shadow: 0 12px 24px rgba(4,47,46,.12);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
}

/* Griglia recensioni */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.review-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: .85rem;
  transition: box-shadow .2s, transform .2s;
}
.review-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.review-card__header { display: flex; align-items: center; gap: .75rem; }
.review-card__avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: .85rem;
  flex-shrink: 0;
}
.review-card__name { font-size: .9rem; font-weight: 700; color: var(--gray-900); }
.review-card__loc { font-size: .75rem; color: var(--gray-400); }
.review-card__stars { color: #f2994a; font-size: 1rem; letter-spacing: .08em; }
.review-card__text { font-size: .875rem; color: var(--gray-700); line-height: 1.7; }
.review-card__date { font-size: .75rem; color: var(--gray-400); margin-top: auto; }

/* Riepilogo valutazioni */
.rating-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  max-width: 640px;
  margin: 0 auto;
}
.rating-big__num { font-family: 'Sora', sans-serif; font-size: 3rem; font-weight: 800; color: #fff; line-height: 1; }
.rating-big__stars { color: #f2994a; font-size: 1.15rem; letter-spacing: .1em; margin-top: .35rem; }
.rating-big__count { font-size: .78rem; color: rgba(255,255,255,.75); margin-top: .35rem; }
.rating-bars { display: flex; flex-direction: column; gap: .4rem; }
.rating-bar {
  display: grid;
  grid-template-columns: 28px 1fr 38px;
  align-items: center;
  gap: .6rem;
  font-size: .75rem;
  color: rgba(255,255,255,.85);
}
.rating-bar__track { height: 7px; background: rgba(255,255,255,.2); border-radius: 999px; overflow: hidden; }
.rating-bar__fill { height: 100%; background: #f2994a; border-radius: 999px; }

/* Layout pagina contatti */
.contacts-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-form {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

/* Articoli correlati nel blog */
.related-posts {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0;
}

@media (max-width: 1024px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .reviews-grid { grid-template-columns: 1fr; }
  .contacts-layout { grid-template-columns: 1fr; gap: 2rem; }
  .rating-box { grid-template-columns: 1fr; gap: 1.5rem; text-align: center; }
  .rating-bars { max-width: 320px; margin: 0 auto; }
}
