/*
Theme Name: Astra Child Tecnotel
Template: astra
Version: 4.0
*/

/* =========================
   TOKENS
========================= */
:root {
  --tec-bg: #ffffff;
  --tec-surface: #ffffff;
  --tec-surface-soft: #f8fafc;
  --tec-surface-alt: #f2f7f4;
  --tec-dark: #06111f;
  --tec-dark-2: #0e1c2b;
  --tec-heading: #0b1220;
  --tec-text: #334155;
  --tec-muted: #64748b;
  --tec-border: #e2e8f0;
  --tec-accent: #1385b8;
  --tec-accent-2: #1ea0d3;
  --tec-accent-hover: #0b4f82;
  --tec-white: #ffffff;
  --tec-shadow-sm: 0 10px 30px rgba(2, 8, 23, 0.05);
  --tec-shadow: 0 20px 60px rgba(2, 8, 23, 0.08);
  --tec-shadow-lg: 0 30px 80px rgba(2, 8, 23, 0.14);
  --tec-radius-sm: 16px;
  --tec-radius: 24px;
  --tec-radius-lg: 30px;
  --tec-container: 1240px;
  --tec-transition: 360ms cubic-bezier(.22,1,.36,1);
}

/* =========================
   BASE
========================= */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--tec-bg);
  color: var(--tec-text);
  font-family: Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body .site {
  background: var(--tec-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

p {
  margin: 0 0 18px;
  color: var(--tec-text);
  font-size: 1.04rem;
}

.container {
  width: min(var(--tec-container), calc(100% - 40px));
  margin-inline: auto;
}

/* =========================
   TYPOGRAPHY / ASTRA FIX
========================= */
body .site h1,
body .site h2,
body .site h3,
body .site h4,
body .site .entry-content h1,
body .site .entry-content h2,
body .site .entry-content h3,
body .site .entry-content h4,
body .site-main h1,
body .site-main h2,
body .site-main h3,
body .site-main h4,
body .tecnotel-home h1,
body .tecnotel-home h2,
body .tecnotel-home h3,
body .tecnotel-home h4 {
  color: var(--tec-heading) !important;
  margin: 0 0 18px;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

body .tecnotel-home .hero h1,
body .tecnotel-home .hero h2,
body .tecnotel-home .hero h3,
body .tecnotel-home .section-dark h1,
body .tecnotel-home .section-dark h2,
body .tecnotel-home .section-dark h3 {
  color: #ffffff !important;
}

h1 {
  font-weight: 800;
}

h2 {
  font-size: clamp(2.05rem, 3vw, 3.55rem);
  font-weight: 800;
}

h3 {
  font-size: 1.28rem;
  font-weight: 700;
}

.hero h2 {
  font-size: clamp(1.55rem, 2vw, 2.15rem);
}

.hero-lead {
  max-width: 780px;
  color: rgba(255,255,255,.88);
  font-size: 1.12rem;
  line-height: 1.78;
}

.section-heading {
  max-width: 860px;
  margin: 0 auto 54px;
}

.section-heading.center {
  text-align: center;
}

.section-heading p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--tec-muted);
}

.eyebrow,
.badge,
.mini-label,
.service-number,
.intro-icon {
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 800;
}

.eyebrow,
.mini-label {
  display: inline-block;
  color: var(--tec-accent);
  font-size: .78rem;
  margin-bottom: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.13);
  color: #fff;
  font-size: .78rem;
  margin-bottom: 22px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}

/* =========================
   HEADER WOW
========================= */
.ast-primary-header-bar,
.main-header-bar,
.site-header-primary-section-left,
.site-primary-header-wrap {
  transition: background-color .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}

body.home .main-header-bar {
  background: transparent;
  border-bottom: 1px solid transparent;
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 100;
}

body.home.is-scrolled .main-header-bar {
  position: fixed;
  background: rgba(8, 16, 28, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 30px rgba(2, 8, 23, 0.18);
}

body.home .main-header-menu .menu-link,
body.home .ast-builder-menu-1 .menu-link,
body.home .site-header .ast-builder-button-wrap .menu-toggle {
  color: #ffffff !important;
}

body.home.is-scrolled .main-header-menu .menu-link,
body.home.is-scrolled .ast-builder-menu-1 .menu-link,
body.home.is-scrolled .site-header .ast-builder-button-wrap .menu-toggle {
  color: #ffffff !important;
}

body.home .main-header-menu .current-menu-item > .menu-link,
body.home .main-header-menu .menu-item:hover > .menu-link {
  color: #9ed8f3 !important;
}

/* =========================
   PROGRESS BAR
========================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  z-index: 9999;
  background: linear-gradient(90deg, #1385b8, #1ea0d3);
  box-shadow: 0 0 18px rgba(19,133,184,.6);
  pointer-events: none;
}

/* =========================
   CURSOR GLOW
========================= */
.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(circle, rgba(19,133,184,.15) 0%, rgba(21,118,78,0) 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .3s ease;
  will-change: transform;
  filter: blur(40px);
}

body.cursor-active .cursor-glow {
  opacity: 1;
}

/* =========================
   BUTTONS
========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform var(--tec-transition), box-shadow var(--tec-transition), background var(--tec-transition), border-color var(--tec-transition), color var(--tec-transition);
  will-change: transform;
}

.btn.primary {
  background: linear-gradient(135deg, var(--tec-accent-2), var(--tec-accent));
  color: var(--tec-white);
  box-shadow: 0 14px 34px rgba(21,118,78,.28);
}

.btn.primary:hover {
  transform: translateY(-4px);
  background: linear-gradient(135deg, #29b77e, var(--tec-accent));
  box-shadow: 0 18px 42px rgba(21,118,78,.34);
}

.btn.secondary {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
}

.btn.secondary:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,.13);
}

.text-link {
  color: #fff;
  font-weight: 700;
  opacity: .92;
}

.text-link:hover {
  opacity: 1;
}

/* =========================
   LAYOUT
========================= */
.section {
  position: relative;
  padding: 118px 0;
  overflow: clip;
}

.section-dark {
  background:
          radial-gradient(circle at top right, rgba(19,133,184,.16), transparent 32%),
          linear-gradient(135deg, var(--tec-dark), var(--tec-dark-2));
  color: #fff;
}

.section-accent {
  background: linear-gradient(180deg, #eef5f7 0%, #f7fafc 100%);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-large {
  grid-template-columns: 1.05fr .95fr;
}

.split.reverse .content {
  order: 1;
}

.split.reverse .media {
  order: 2;
}

.media img {
  width: 100%;
  border-radius: 28px;
  box-shadow: var(--tec-shadow-lg);
  will-change: transform;
}

/* =========================
   HERO
========================= */
.hero {
  position: relative;
  min-height: clamp(620px, 80vh, 820px);
  padding: 120px 0 80px;
  display: flex;
  align-items: center;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
          radial-gradient(circle at 82% 18%, rgba(30,160,211,.18), transparent 24%),
          radial-gradient(circle at 18% 84%, rgba(255,255,255,.08), transparent 20%);
  pointer-events: none;
}

.hero-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .08;
  background-image:
          radial-gradient(circle at 20% 30%, rgba(255,255,255,.3) 1px, transparent 1px),
          radial-gradient(circle at 80% 60%, rgba(255,255,255,.22) 1px, transparent 1px);
  background-size: 18px 18px, 22px 22px;
  mix-blend-mode: screen;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, .82fr);
  gap: 44px;
  align-items: center;
}

.hero-content {
  max-width: 780px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.trust-item {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 18px;
  padding: 18px 18px 16px;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

.trust-item strong {
  display: block;
  color: #fff;
  font-size: 1.16rem;
  margin-bottom: 6px;
}

.trust-item span {
  display: block;
  color: rgba(255,255,255,.77);
  font-size: .92rem;
  line-height: 1.45;
}

.hero-panel {
  display: flex;
  justify-content: flex-end;
}

.hero-panel-card {
  width: 100%;
  max-width: 450px;
  background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.07));
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--tec-shadow-lg);
  backdrop-filter: blur(18px);
  will-change: transform;
}

.hero-panel-card p {
  color: rgba(255,255,255,.84);
}

.panel-list {
  list-style: none;
  margin: 24px 0;
  padding: 0;
}

.panel-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  color: rgba(255,255,255,.9);
}

.panel-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tec-accent);
}

/* =========================
   INTRO
========================= */
.intro-band {
  position: relative;
  z-index: 4;
  margin-top: -62px;
}

.intro-band-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.intro-card {
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(226,232,240,.95);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--tec-shadow);
  will-change: transform;
}

.intro-card h3 {
  margin-bottom: 10px;
}

.intro-card p {
  margin: 0;
  color: var(--tec-muted);
}

.intro-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e6f4fb, #d4ecf7);
  color: var(--tec-accent);
  font-size: .84rem;
  margin-bottom: 18px;
}

/* =========================
   STATS
========================= */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.stat-box {
  background: var(--tec-white);
  border: 1px solid var(--tec-border);
  border-radius: 20px;
  padding: 22px 18px;
  box-shadow: var(--tec-shadow-sm);
  will-change: transform;
}

.stat-box strong {
  display: block;
  color: var(--tec-heading);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.stat-box span {
  display: block;
  color: var(--tec-muted);
  font-size: .95rem;
  line-height: 1.4;
}

/* =========================
   SERVICES
========================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  padding: 32px 28px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid var(--tec-border);
  border-radius: 24px;
  box-shadow: var(--tec-shadow-sm);
  transition: transform var(--tec-transition), box-shadow var(--tec-transition), border-color var(--tec-transition);
  will-change: transform;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  border-radius: 0 0 24px 24px;
  background: linear-gradient(90deg, transparent, rgba(19,133,184,.6), transparent);
  opacity: 0;
  transition: opacity var(--tec-transition);
}

.service-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--tec-shadow-lg);
  border-color: rgba(21,118,78,.18);
}

.service-card:hover::after {
  opacity: 1;
}

.service-number {
  display: inline-block;
  font-size: .78rem;
  color: var(--tec-accent);
  margin-bottom: 16px;
}

.service-card p {
  margin: 0;
  color: var(--tec-muted);
}

/* =========================
   FEATURES
========================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-box {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  padding: 30px;
  backdrop-filter: blur(8px);
  transition: transform var(--tec-transition), background var(--tec-transition), border-color var(--tec-transition);
  will-change: transform;
}

.feature-box:hover {
  transform: translateY(-8px);
  background: rgba(255,255,255,.09);
}

.feature-box p {
  color: rgba(255,255,255,.76);
  margin: 0;
}

/* =========================
   LISTS
========================= */
.check-list,
.contact-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.check-list li,
.contact-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 14px;
  color: var(--tec-text);
}

.check-list li::before,
.contact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tec-accent);
}

.contact-list a {
  color: var(--tec-accent);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

/* =========================
   WORKS
========================= */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-card {
  overflow: hidden;
  background: var(--tec-white);
  border: 1px solid var(--tec-border);
  border-radius: 24px;
  box-shadow: var(--tec-shadow-sm);
  transition: transform var(--tec-transition), box-shadow var(--tec-transition);
  will-change: transform;
}

.work-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--tec-shadow-lg);
}

.work-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.22,1,.36,1);
  will-change: transform;
}

.work-card:hover img {
  transform: scale(1.08);
}

.work-card-content {
  padding: 24px;
}

.work-card-content p {
  margin: 0;
  color: var(--tec-muted);
}

/* =========================
   MAINTENANCE
========================= */
.maintenance-box {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 24px;
  align-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #fbfffd 100%);
  border: 1px solid #dcefe6;
  border-radius: 30px;
  padding: 38px;
  box-shadow: var(--tec-shadow);
  will-change: transform;
}

.maintenance-content p {
  max-width: 820px;
  margin-bottom: 0;
}

.maintenance-action {
  display: flex;
  justify-content: flex-end;
}

/* =========================
   TESTIMONIALS
========================= */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.testimonial-card {
  margin: 0;
  background: var(--tec-white);
  border: 1px solid var(--tec-border);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--tec-shadow-sm);
  will-change: transform;
}

.testimonial-card p {
  color: var(--tec-text);
  font-size: 1.02rem;
  line-height: 1.8;
}

.testimonial-card cite {
  display: block;
  margin-top: 18px;
  color: var(--tec-muted);
  font-style: normal;
  font-weight: 700;
}

/* =========================
   CONTACTS
========================= */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr .95fr;
  gap: 30px;
  align-items: start;
}

.contact-box {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid var(--tec-border);
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--tec-shadow);
  will-change: transform;
}

.form-placeholder {
  margin-top: 18px;
  padding: 22px;
  background: #fff;
  border: 2px dashed #d8e3ea;
  border-radius: 18px;
}

.form-placeholder p {
  margin: 0;
  color: var(--tec-muted);
}

/* =========================
   REVEALS
========================= */
..reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.22,1,.36,1);
}

.reveal.show,
.reveal-left.show,
.reveal-right.show {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {}
.delay-2 {}
.delay-3 {}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1180px) {
  .hero {
    min-height: auto;
    padding: 132px 0 96px;
    background-size: cover;
    background-position: center;
  }

  .hero-grid,
  .split,
  .contacts-grid,
  .maintenance-box {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 28px;
  }

  .hero-content,
  .hero-panel,
  .hero-panel-card {
    max-width: 100%;
    min-width: 0;
  }

  .hero-panel {
    justify-content: flex-start;
  }

  .hero h1 {
    max-width: 15ch;
    font-size: clamp(2.5rem, 5.4vw, 4.2rem);
  }

  .hero-lead {
    max-width: 100%;
  }

  .services-grid,
  .features-grid,
  .works-grid,
  .intro-band-grid,
  .stats-row,
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .maintenance-action {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .hero {
    padding: 124px 0 84px;
  }

  .badge {
    max-width: 100%;
    white-space: normal;
    line-height: 1.35;
    justify-content: center;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 18px;
  }

  .hero-actions .btn,
  .btn {
    width: 100%;
  }

  .hero-trust {
    grid-template-columns: 1fr;
    margin-top: 20px;
    gap: 10px;
  }

  .trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
  }

  .trust-item strong {
    min-width: 72px;
    font-size: 1rem;
    margin-bottom: 0;
  }

  .trust-item span {
    font-size: 0.85rem;
    line-height: 1.25;
  }

  .hero-panel {
    margin-top: 8px;
  }

  .hero-panel-card {
    padding: 26px;
    border-radius: 22px;
  }

  .services-grid,
  .features-grid,
  .works-grid,
  .intro-band-grid,
  .stats-row,
  .testimonials-grid,
  .maintenance-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .section {
    padding: 82px 0;
  }

  .hero {
    min-height: auto;
    padding: 112px 0 72px;
    background-position: center;
    background-size: cover;
  }

  .hero-grid {
    gap: 22px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2rem, 9vw, 2.8rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
  }

  .hero-lead {
    font-size: 1rem;
    line-height: 1.65;
  }

  .badge {
    min-height: auto;
    padding: 10px 14px;
    font-size: 0.72rem;
  }

  .hero-panel-card,
  .contact-box,
  .maintenance-box,
  .testimonial-card,
  .service-card,
  .feature-box,
  .work-card,
  .intro-card {
    border-radius: 22px;
  }

  .hero-panel-card {
    padding: 22px 18px;
  }

  .hero-panel-card h2 {
    font-size: clamp(1.3rem, 5.5vw, 1.8rem);
  }

  .panel-list li {
    padding-left: 18px;
    margin-bottom: 10px;
  }

  .intro-band {
    margin-top: -24px;
  }

  .container {
    width: min(var(--tec-container), calc(100% - 28px));
  }

  .cursor-glow {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero-trust .trust-item:nth-child(3) {
    display: none;
  }
}

/* =========================
   MOBILE MENU (CLEAN)
========================= */

.main-header-bar {
  position: relative;
  z-index: 100000;
}

/* MENU MOBILE */
@media (max-width: 921px) {

  .ast-header-break-point .main-header-bar-navigation {
    position: fixed !important;
    top: 79px;
    left: 0;
    width: 100%;
    height: calc(100vh - 90px);
    z-index: 9999;

    background: linear-gradient(135deg, #06111f, #0e1c2b);
    padding: 30px 24px;
    overflow-y: auto;

    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    transition: all 0.35s ease;
  }

  .ast-header-break-point .main-header-bar-navigation.toggle-on {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* LISTA */
  .ast-header-break-point .main-header-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: transparent !important;
  }

  /* ITEM */
  .ast-header-break-point .menu-item {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: transparent !important;
  }

  /* LINK */
  .ast-header-break-point .menu-link {
    display: block;
    width: 100%;
    padding: 16px 0;
    color: #ffffff !important;
    font-size: 1.3rem;
    font-weight: 600;
    background: transparent !important;
  }

  .ast-header-break-point .menu-link:hover {
    color: #4ade80 !important;
  }

  /* RIMUOVE BG ASTRA */
  :root {
    --ast-global-color-4: transparent;
  }

  .ast-builder-menu-mobile .main-navigation .main-header-menu,
  .ast-builder-menu-mobile .main-navigation .main-header-menu .menu-link,
  .ast-builder-menu-mobile .main-navigation .main-header-menu .sub-menu {
    background: transparent !important;
  }
}

/* =========================
   HAMBURGER → X ANIMATION (CLEAN)
========================= */

.menu-toggle {
  position: relative;
}

.menu-toggle .mobile-menu-toggle-icon {
  position: relative;
  width: 24px;
  height: 24px;
}

.menu-toggle .ast-menu-svg,
.menu-toggle .ast-close-svg {
  display: block !important;
  position: absolute;
  top: 0;
  left: 0;
  transition: all 0.4s cubic-bezier(.22,1,.36,1);
}

/* stato iniziale */
.menu-toggle .ast-close-svg {
  opacity: 0;
  transform: scale(0.7) rotate(-90deg);
}

/* stato attivo */
.menu-toggle[aria-expanded="true"] .ast-menu-svg {
  opacity: 0;
  transform: scale(0.7) rotate(90deg);
}

.menu-toggle[aria-expanded="true"] .ast-close-svg {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* =========================
   PAGE HERO (MANCAVA!)
========================= */

.page-hero {
  position: relative;
  padding: 160px 0 90px;
  background:
          linear-gradient(135deg, rgba(6,17,31,.92), rgba(14,28,43,.88)),
          url('../images/hero.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
          radial-gradient(circle at 80% 20%, rgba(30,163,109,.18), transparent 30%),
          radial-gradient(circle at 20% 80%, rgba(255,255,255,.06), transparent 25%);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  color: #fff !important;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  margin-bottom: 20px;
}

.page-hero .hero-lead {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(255,255,255,.85);
}

/* =========================
   FIX TESTI PAGINE
========================= */

/* paragrafi normali SEMPRE scuri */
.section p,
.site-main p {
  color: var(--tec-text);
}

/* eccezioni: sezioni scure */
.section-dark p,
.hero p,
.page-hero p {
  color: rgba(255,255,255,0.85);
}

/* =========================
   FEATURES LIGHT (PAGINE)
========================= */

.section-light .feature-box {
  background: #ffffff;
  border: 1px solid var(--tec-border);
  box-shadow: var(--tec-shadow-sm);
}

.section-light .feature-box:hover {
  transform: translateY(-8px);
  box-shadow: var(--tec-shadow);
}

/* testo */
.section-light .feature-box p {
  color: var(--tec-muted);
}

/* =========================
   FIX H1 HERO PAGINE
========================= */

#page .page-hero h1 {
  color: #ffffff !important;
}

/* =========================
   SERVICE ICON
========================= */
.service-card .service-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;

  background: rgba(255,255,255,0.18); /* più chiaro */
  border: 1px solid rgba(255,255,255,0.25);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 22px;
  color: #ffffff; /* icona bianca */

  margin-bottom: 18px;
}

.service-card:hover .service-icon {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.28);
}

/* =========================
   INTRO ICON
========================= */

.intro-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(30, 92, 163, 0.12);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 22px;
  color: var(--tec-accent);

  margin-bottom: 18px;
}

.intro-card:hover .intro-icon {
  transform: translateY(-4px);
  background: rgba(30, 116, 163, 0.18);
}

.parallax-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* effetto parallasse */
}

.parallax-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 40, 0.75); /* regola opacità */
  z-index: 1;
}

.parallax-section .container {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .parallax-section {
    background-attachment: scroll;
  }
}

.service-card {
  position: relative;
  overflow: hidden;
  color: #fff;

  background-size: cover;
  background-position: center;
}

/* overlay migliorato */
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
          linear-gradient(
                  to bottom,
                  rgba(6,17,31,0.85) 0%,
                  rgba(6,17,31,0.65) 50%,
                  rgba(6,17,31,0.85) 100%
          );

  z-index: 1;
}

/* contenuto sopra */
.service-card > * {
  position: relative;
  z-index: 2;
}

.service-card {
  position: relative;
  overflow: hidden;
  color: #fff;

  background-size: cover;
  background-position: center;
}

/* overlay migliorato */
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;

  /* 🔥 gradiente professionale */
  background: linear-gradient(
          180deg,
          rgba(6,17,31,0.4) 0%,
          rgba(6,17,31,0.7) 60%,
          rgba(6,17,31,0.9) 100%
  );

  z-index: 1;
}

/* contenuto sopra */
.service-card > * {
  position: relative;
  z-index: 2;
}

.service-card h3 {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.service-card p {
  color: rgba(255,255,255,0.9);
}

.service-card::before {
  backdrop-filter: blur(2px);
}

.service-card {
  position: relative;
  overflow: hidden;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  color: #fff;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(6,17,31,0.45); /* overlay leggero */
  z-index: 1;
}

.service-card > * {
  position: relative;
  z-index: 2;
}

body .tecnotel-home .service-card h3 {
  color: #ffffff !important;
}

.service-card p {
  color: rgba(255,255,255,0.9);
}

/* Target ultra specifico bottone Astra */
.ast-button-wrap .menu-toggle.main-header-menu-toggle:focus,
.ast-button-wrap .menu-toggle.main-header-menu-toggle:focus-visible,
.ast-button-wrap .menu-toggle.main-header-menu-toggle:active,
.ast-button-wrap .menu-toggle.main-header-menu-toggle:focus-within {
  outline: none !important;
  box-shadow: none !important;
}

/* Reset totale per sicurezza */
.ast-button-wrap button.menu-toggle.main-header-menu-toggle {
  outline: none !important;
  box-shadow: none !important;
}

/* Rimuove focus da TUTTO dentro il bottone */
.ast-button-wrap button *,
.ast-button-wrap button *:focus,
.ast-button-wrap button *:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* Anche il bottone */
.ast-button-wrap button,
.ast-button-wrap button:focus,
.ast-button-wrap button:focus-visible,
.ast-button-wrap button:active {
  outline: none !important;
  box-shadow: none !important;
}

/* SVG (QUESTO spesso è il vero colpevole) */
.ast-button-wrap svg,
.ast-button-wrap svg:focus,
.ast-button-wrap svg:focus-visible {
  outline: none !important;
}

/* Disabilita highlight su tutto il bottone e contenuto */
.ast-button-wrap button,
.ast-button-wrap button *,
.ast-button-wrap {
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

.main-header-menu .menu-link:focus,
.main-header-menu .menu-link:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.tec-footer {
  background: linear-gradient(135deg, #06111f, #0e1c2b);
  color: rgba(255,255,255,0.85);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-logo {
  max-width: 180px;
  margin-bottom: 20px;
}

.tec-footer .footer-col h3,
body .site .tec-footer .footer-col h3,
body .site-footer.tec-footer .footer-col h3 {
  color: #fff !important;
  margin-bottom: 16px;
}

/* LINK */
.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-list li {
  margin-bottom: 10px;
}

.footer-links-list a {
  color: #fff;
  opacity: 0.8;
}

.footer-links-list a:hover {
  opacity: 1;
}

/* CONTATTI */
.footer-contact span {
  display: block;
  margin-bottom: 10px;
}

.footer-contact a {
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

/* SUBFOOTER */
.subfooter {
  margin-top: 50px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.subfooter-grid {
  display: flex;
  justify-content: center;
  text-align: center;
}

.subfooter p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-contact span {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-contact i {
  color: var(--tec-accent);
  font-size: 14px;
  margin-top: 3px;
  min-width: 16px;
}

.footer-col p {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-contact span:hover i {
  color: #1ea0d3;
  transform: translateX(2px);
  transition: all 0.3s ease;
}

.home-slideshow {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.slideshow-track {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;

  opacity: 0;
  transform: scale(1);

  transition:
          opacity 1s ease,
          transform 6s linear;

  will-change: transform, opacity;
}

.slide.active {
  opacity: 1;
  transform: scale(1.12);
}

/* contenuto */
.slide-inner {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
}

/* overlay */
.slideshow-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* =========================
   HERO CONTENT BOX
========================= */

.home-slideshow .hero-content {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);

  padding: 32px 36px;
  border-radius: 20px;

  border: 1px solid rgba(255, 255, 255, 0.15);

  max-width: 720px;
}

.home-slideshow .hero-content h1 {
  color: #ffffff !important;
}

.home-slideshow .hero-content p {
  color: rgba(255, 255, 255, 0.82) !important;
}

.home-slideshow .hero-content .badge {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.home-slideshow .hero-actions {
  margin-top: 20px;
}

/* mobile */
@media (max-width: 768px) {
  .home-slideshow .hero-content p,
  .home-slideshow .hero-actions,
  .home-slideshow .badge {
    display: none;
  }

  .home-slideshow .slide {
    background-position: center center;
  }
}
