/* ============================================
   MARCO TRASLOCHI – style.css
   ============================================ */

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

:root {
  --primary:       #FF6B00;
  --primary-dark:  #D95A00;
  --primary-light: #FF8C33;
  --white:         #FFFFFF;
  --bg:            #F9F9F9;
  --bg-gray:       #F2F3F5;
  --dark:          #111827;
  --dark-2:        #1F2937;
  --text:          #1A1A1A;
  --muted:         #4A4A4A;
  --muted-light:   #6B7280;
  --border:        #E5E7EB;
  --radius:        12px;
  --radius-lg:     20px;
  --shadow:        0 4px 24px rgba(0,0,0,.08);
  --shadow-lg:     0 12px 48px rgba(0,0,0,.14);
  --font-head:     'Montserrat', sans-serif;
  --font-body:     'Inter', sans-serif;
  --max-w:         1200px;
  --transition:    .25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- UTILITY ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 5rem 0;
}
.section--dark { background: var(--dark); }
.section--gray { background: var(--bg-gray); }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(255,107,0,.1);
  padding: .35rem .9rem;
  border-radius: 100px;
  margin-bottom: .9rem;
}
.section-label--light { color: var(--primary-light); background: rgba(255,107,0,.2); }

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: .8rem;
}
.section-title--light { color: var(--white); }

.section-sub { font-size: 1.05rem; color: var(--muted); max-width: 600px; margin: 0 auto; }
.section-sub--light { color: rgba(255,255,255,.7); }

.section-header--light { text-align: center; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  padding: .65rem 1.4rem;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn--primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); }
.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--outline:hover { border-color: var(--primary); color: var(--primary); }
.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn--outline-white:hover { border-color: var(--white); background: rgba(255,255,255,.1); }
.btn--lg  { font-size: 1.05rem; padding: .85rem 2rem; }
.btn--xl  { font-size: 1.1rem; padding: 1rem 2.4rem; border-radius: var(--radius-lg); }

/* Pulse animation on primary CTAs */
.pulse {
  animation: pulseAnim 2.5s infinite;
}
@keyframes pulseAnim {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,0,.45); }
  50%       { box-shadow: 0 0 0 12px rgba(255,107,0,0); }
}

/* ---------- FADE-IN ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp .7s forwards;
}
.fade-in--delay-1 { animation-delay: .15s; }
.fade-in--delay-2 { animation-delay: .3s; }
.fade-in--delay-3 { animation-delay: .45s; }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- LOGO ---------- */
.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}
.logo--white { color: var(--white); }
.logo strong { color: var(--primary); }
.logo__icon { font-size: 1.5rem; }
.logo__img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}
/* Footer version: invert black to white so il testo diventa bianco sul dark bg */
.logo__img--white {
  filter: brightness(0) invert(1);
  opacity: .9;
}

/* ---------- HEADER ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
}
.nav {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav__link {
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted);
  padding: .4rem .75rem;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.nav__link:hover { color: var(--primary); background: rgba(255,107,0,.07); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: .5rem 0 1rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu__link {
  padding: .85rem 1.5rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-menu__link:last-of-type { border-bottom: none; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.45) 60%, rgba(255,107,0,.25) 100%);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.hero__badge {
  display: inline-block;
  background: rgba(255,107,0,.9);
  color: var(--white);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .4rem 1.1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.hero__title {
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.4rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.hero__title .highlight { color: var(--primary-light); }
.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: .9;
  margin-bottom: 2.4rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  font-size: .9rem;
  opacity: .85;
}
.hero__scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,.7);
  animation: bounce 1.8s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}
.hide-mobile { display: none; }

/* ---------- STATS BAR ---------- */
.stats-bar {
  background: var(--primary);
  padding: 1.75rem 0;
}
.stats-bar__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 1.5rem;
  text-align: center;
}
.stat__number {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.stat__label {
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* ---------- SERVICES ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.service-card--featured { border: 2px solid var(--primary); }

.service-card__img-wrap { position: relative; height: 220px; overflow: hidden; background: #e0e0e0; }
.service-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.service-card:hover .service-card__img { transform: scale(1.05); }
.service-card__badge {
  position: absolute;
  top: .9rem; left: .9rem;
  background: var(--primary);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border-radius: 100px;
}

.service-card__body { padding: 1.5rem; }
.service-card__icon { font-size: 2rem; margin-bottom: .5rem; }
.service-card__title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: .6rem;
  color: var(--text);
}
.service-card__desc { font-size: .95rem; color: var(--muted); margin-bottom: 1.2rem; line-height: 1.65; }
.service-card__cta {
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 700;
  color: var(--primary);
  transition: gap var(--transition), color var(--transition);
  display: inline-flex;
  align-items: center;
}
.service-card__cta:hover { color: var(--primary-dark); }

/* ---------- WHY US ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.why-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: background var(--transition), transform var(--transition);
}
.why-card:hover { background: rgba(255,107,0,.12); transform: translateY(-3px); }
.why-card__icon {
  width: 52px; height: 52px;
  background: var(--primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-bottom: 1rem;
}
.why-card__title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .4rem;
}
.why-card__desc { font-size: .92rem; color: rgba(255,255,255,.65); line-height: 1.6; }

/* ---------- REVIEWS ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}
.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.review-card--featured { border-color: var(--primary); border-width: 2px; }
.review-card__stars {
  font-size: 1.3rem;
  color: #FBBF24;
  margin-bottom: .9rem;
  letter-spacing: .04em;
}
.review-card__text {
  font-size: .97rem;
  color: var(--text);
  font-style: italic;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.review-card__author {
  display: flex;
  align-items: center;
  gap: .8rem;
}
.review-card__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.review-card__author strong { display: block; font-size: .95rem; }
.review-card__author span  { font-size: .8rem; color: var(--muted-light); }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.faq-item[open] { border-color: var(--primary); }
.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  user-select: none;
  transition: color var(--transition);
}
.faq-item__question::-webkit-details-marker { display: none; }
.faq-item[open] .faq-item__question { color: var(--primary); }
.faq-item__arrow {
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item[open] .faq-item__arrow { transform: rotate(180deg); }
.faq-item__answer {
  padding: 0 1.5rem 1.3rem;
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.7;
}
.faq-item__answer a { color: var(--primary); font-weight: 600; }
.faq-item__answer a:hover { text-decoration: underline; }

/* ---------- CTA SECTION ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 50%, rgba(255,107,0,.15) 100%);
  padding: 5.5rem 0;
  text-align: center;
}
.cta-section__title {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: .9rem;
}
.cta-section__sub { font-size: 1.05rem; color: rgba(255,255,255,.7); margin-bottom: 2.5rem; max-width: 540px; margin-left: auto; margin-right: auto; }
.cta-section__btns { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.8);
  padding: 4rem 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__tagline { font-size: .9rem; opacity: .6; margin-top: .75rem; line-height: 1.55; }
.footer__piva { font-size: .78rem; opacity: .4; margin-top: .5rem; }
.footer__heading {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}
.footer__list { display: flex; flex-direction: column; gap: .5rem; }
.footer__list li, .footer__list a { font-size: .9rem; opacity: .7; transition: opacity var(--transition); }
.footer__list a:hover { opacity: 1; color: var(--primary-light); }
.footer__bottom {
  background: rgba(0,0,0,.25);
  padding: 1.25rem 0;
}
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .82rem;
  opacity: .5;
}

/* ---------- WA FLOAT ---------- */
.wa-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 200;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  transition: transform var(--transition), box-shadow var(--transition);
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.65); }

/* ---------- RESPONSIVE ---------- */
@media (min-width: 768px) {
  .hide-mobile { display: inline; }
}

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .hamburger { display: flex; }

  .hero { min-height: 100svh; }
  .hero__ctas { flex-direction: column; align-items: center; }
  .hero__trust { gap: .8rem; }

  .section { padding: 3.5rem 0; }

  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }

  .stats-bar__grid { gap: 1rem; }
  .stat__number { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .btn--xl { padding: .9rem 1.5rem; font-size: 1rem; }
  .cta-section { padding: 3.5rem 0; }
  .cta-section__btns { flex-direction: column; align-items: center; }
}

/* ---------- SEO TEXT BLOCK ---------- */
.section--seo { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.seo-block {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3.5rem;
  align-items: start;
}
.seo-block__content h2 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.3;
}
.seo-block__content h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.5rem 0 .6rem;
}
.seo-block__content p {
  font-size: .97rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: .75rem;
}
.seo-block__content strong { color: var(--text); }
.seo-block__areas {
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: sticky;
  top: 80px;
}
.seo-block__areas h3 {
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--primary);
  margin-bottom: 1rem;
}
.areas-list { display: flex; flex-direction: column; gap: .55rem; }
.areas-list li { font-size: .92rem; color: var(--muted); }
.areas-list strong { color: var(--text); }

/* ---------- REVIEWS CTA ---------- */
.reviews-cta {
  text-align: center;
  margin-top: 2.5rem;
  font-size: .95rem;
  color: var(--muted);
}
.reviews-cta a { color: var(--primary); font-weight: 700; }
.reviews-cta a:hover { text-decoration: underline; }

/* ---------- CTA NOTE ---------- */
.cta-section__note {
  margin-top: 1.5rem;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  letter-spacing: .03em;
}

/* ---------- SERVICE BADGE VARIANT ---------- */
.service-card__badge--orange {
  background: var(--primary);
}

@media (max-width: 900px) {
  .seo-block { grid-template-columns: 1fr; }
  .seo-block__areas { position: static; }
}
