@media (prefers-reduced-motion: reduce) {
  .hero-glow {
    animation: none;
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }

  .hero-eyebrow {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-h1 {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-sub {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-cta-row {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-trust {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .cert-track {
    animation: none;
  }

  .certs-carousel {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .lfc-cookie-banner {
    transition: none;
  }

  .lfc-link-card {
    transition: none !important;
  }

  .lfc-post-card {
    transition: none !important;
  }

  .nav-btn-ghost {
    transition: none !important;
  }

  .lfc-nav-caret {
    transition: none !important;
  }

  .lfc-nav-parent::after {
    transition: none !important;
  }

  .lfc-tab {
    transition: none !important;
  }

  .lfc-link-card:hover {
    transform: none;
  }

  .lfc-post-card:hover {
    transform: none;
  }

  .sr {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .lfc-anim .sr {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .lfc-tabpanel:not([hidden]) {
    animation: none;
  }

  .lfc-tools-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 960px) {
  .tl-track {
    display: none;
  }

  .tl-progress {
    display: none;
  }

  .tl-grid {
    grid-template-columns: 1fr;
    row-gap: 0;
    position: relative;
  }

  .tl-grid::before {
    content: '';
    position: absolute;
    top: 6px;
    bottom: 26px;
    left: 17px;
    width: 1px;
    background: rgba(255,255,255,0.12);
  }

  .tl-item {
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 26px;
  }

  .tl-item:last-child {
    padding-bottom: 0;
  }

  .tl-node {
    margin-bottom: 0;
    margin-top: 8px;
  }

  .tl-card {
    flex: 1;
  }

  :root {
    --section-pad: 76px;
    --page-pad: 28px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 130px var(--page-pad) 70px;
  }

  .servizi {
    padding: 100px var(--page-pad) 90px;
  }

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

  .serv-card {
    padding: 22px;
    min-height: 0;
  }

  .metodo2 {
    padding: 100px var(--page-pad) 80px;
  }

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

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

  .ai-grid.ai-grid-3col {
    grid-template-columns: 1fr 1fr;
  }

  .ai-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .chi-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .chi-photo {
    max-width: 320px;
    margin: 0 auto;
  }

  .numeri {
    padding: 90px var(--page-pad);
  }

  .numeri-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .num-card {
    padding: 30px 22px;
    gap: 16px;
  }

  .num-card:last-child {
    grid-column: 1 / -1;
  }

  .form-inner-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  :root {
    --section-pad: 64px;
    --page-pad: 20px;
  }

  .nav-btn {
    display: none;
  }

  /* La regola sopra nasconde le CTA nella barra dell'header. Quelle
     dentro il menu a scomparsa devono restare visibili: senza questa
     eccezione il drawer mostrava solo Home e Blog. */
  .mobile-nav .nav-btn {
    display: inline-flex;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: 110px var(--page-pad) 60px;
  }

  .hero-h1 {
    letter-spacing: -1.2px;
  }

  .hero-sub {
    font-size: 17px;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-cta-row .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .hero-cta-row .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .servizi {
    padding: 80px var(--page-pad) 70px;
  }

  .serv-card {
    padding: 20px;
    min-height: 0;
  }

  .metodo2 {
    padding: 80px var(--page-pad) 64px;
  }

  .m2-header {
    text-align: left;
  }

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

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

  .ai-grid.ai-grid-3col {
    grid-template-columns: 1fr;
  }

  .ai-solutions {
    padding: 80px var(--page-pad) 70px;
  }

  .numeri {
    padding: 64px var(--page-pad);
  }

  .numeri-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .num-card {
    padding: 28px 22px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 28px 20px;
  }

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

  .cert-track {
    gap: 12px;
  }

  .cert-card {
    width: 156px;
    padding: 18px 12px;
  }

  .cert-logo {
    width: 46px;
    height: 46px;
    margin-bottom: 11px;
  }

  .certs-header h2 {
    white-space: normal;
  }

  .certs-header p {
    white-space: normal;
  }

  footer {
    padding: 32px var(--page-pad);
  }

  .lfc-cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 20px;
  }

  .lfc-cookie-actions {
    flex-direction: column;
  }

  .lfc-cookie-actions .lfc-cookie-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 700px) {
  .lfc-prose table {
    display: table;
    white-space: normal;
  }

  .lfc-page-content table {
    display: table;
    white-space: normal;
  }

  .lfc-cards > .lfc-card {
    flex-basis: calc(50% - 8px);
  }

  .lfc-post-row > .lfc-post-card {
    flex-basis: calc(50% - 8px);
  }

  .lfc-cards-5row > .lfc-card {
    flex-basis: calc(33.333% - 10px);
  }

  .lfc-cards-4 > .lfc-card {
    flex-basis: calc(50% - 8px);
  }

  .lfc-when-item {
    flex-basis: calc(50% - 6px);
  }

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

  .lfc-auto-grid > .lfc-auto-card {
    flex-basis: calc(50% - 12px);
  }
}

@media (max-width: 1100px) {
  .lfc-article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .lfc-toc {
    position: static;
  }

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

  .lfc-article-layout > * {
    min-width: 0;
  }
}

@media (max-width: 1024px) {
  .lfc-nav-actions {
    display: none;
  }

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

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

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

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

  .lfc-featured {
    grid-template-columns: 1fr;
  }

  .lfc-featured-body {
    padding: 24px;
  }

  .hamburger {
    min-width: 44px;
    min-height: 44px;
  }
}

@media (max-width: 760px) {
  .lfc-page-hero {
    padding-top: 56px;
    padding-bottom: 32px;
  }

  .lfc-section {
    padding: 44px var(--page-pad);
  }

  .lfc-cards {
    grid-template-columns: 1fr;
  }

  .lfc-auto-grid {
    grid-template-columns: 1fr;
  }

  .lfc-links-grid {
    grid-template-columns: 1fr;
  }

  .lfc-post-grid {
    grid-template-columns: 1fr;
  }

  .lfc-steps {
    grid-template-columns: 1fr;
  }

  .lfc-author-box {
    flex-direction: column;
  }

  .lfc-author-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .lfc-tab {
    min-height: 44px;
  }

  .lfc-cat-nav a {
    min-height: 44px;
  }

  .lfc-search-btn {
    min-height: 44px;
  }

  .lfc-faq-item summary {
    min-height: 44px;
    align-items: center;
  }

  .hero-sub {
    font-size: 17px;
    margin-top: 22px;
  }

  .lfc-serv-main {
    padding: 22px 22px;
  }

  .lfc-page-hero > .wrap {
    width: min(100% - 40px, 1180px);
  }

  .lfc-page-hero .lfc-hero-inner {
    width: min(100% - 40px, 1180px);
  }

  .hero > .wrap {
    width: min(100% - 40px, 1180px);
  }

  .hero-inner {
    width: min(100% - 40px, 1180px);
  }
}

@media (max-width: 420px) {
  .lfc-page-h1 {
    letter-spacing: -1px;
  }

  .lfc-intro {
    padding: 18px 18px;
  }

  .lfc-answer {
    padding: 18px 18px;
  }

  .lfc-card {
    padding: 20px 18px;
  }

  .lfc-auto-card {
    padding: 20px 18px;
  }

  .lfc-step {
    padding: 20px 18px;
  }

  .lfc-link-card {
    padding: 20px 18px;
  }
}

@media print {
  .navbar {
    display: none !important;
  }

  .mobile-nav {
    display: none !important;
  }

  .lfc-page-form {
    display: none !important;
  }

  .lfc-toc {
    display: none !important;
  }

  footer {
    display: none !important;
  }

  .lfc-skip-link {
    display: none !important;
  }

  .lfc-article-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .navbar-inner {
    gap: 10px;
  }

  .nav-logo {
    flex-shrink: 1;
    min-width: 0;
  }

  .nav-logo-text {
    min-width: 0;
    overflow: hidden;
  }

  .nav-logo-text .t1 {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-logo-text .t2 {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (min-width: 1000px) {
  .lfc-cards-3 > .lfc-card {
    flex-basis: calc(33.333% - 10px);
  }

  .lfc-cards-5 > .lfc-card {
    flex-basis: calc(33.333% - 10px);
  }

  .lfc-cards-4 > .lfc-card {
    flex-basis: calc(25% - 12px);
  }

  .lfc-steps-3 .lfc-step {
    position: relative;
  }

  .lfc-steps-3 .lfc-step + .lfc-step::before {
    content: '';
    position: absolute;
    top: 42px;
    left: -13px;
    width: 11px;
    height: 1px;
    background: rgba(255, 214, 1, 0.75);
  }

  .lfc-grid-sm > .lfc-card-sm {
    flex-basis: calc(33.333% - 10px);
  }

  .lfc-cards-3-2 > .lfc-card {
    flex-basis: calc(33.333% - 10px);
    max-width: calc(33.333% - 10px);
  }

  .lfc-post-row > .lfc-post-card {
    flex-basis: calc(33.333% - 10px);
  }

  .lfc-cards-compact > .lfc-card {
    flex-basis: calc(33.333% - 10px);
    max-width: calc(33.333% - 10px);
  }

  .lfc-auto-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1240px) {
  .lfc-cards-5 > .lfc-card {
    flex-basis: calc(20% - 12px);
  }

  .lfc-cards-5 > .lfc-card p {
    font-size: 13px;
  }

  .lfc-grid-sm > .lfc-card-sm {
    flex-basis: calc(25% - 11px);
  }

  #lfc-panel-personalizzate .lfc-auto-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 999px) {
  .lfc-steps-3 {
    grid-template-columns: 1fr;
  }
}

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

  .lfc-page-h1 {
    max-width: 100%;
  }
}

@media (min-width: 620px) {
  .lfc-grid-sm > .lfc-card-sm {
    flex-basis: calc(50% - 7px);
  }
}

@media (max-width: 620px) {
  .lfc-auto-line {
    font-size: 14px;
    gap: 8px;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: center;
  }

  .lfc-filters {
    margin-top: 44px;
    margin-bottom: 22px;
  }

  .lfc-author-avatar {
    width: 76px;
    height: 76px;
  }

  .lfc-auto-card .lfc-auto-ideal {
    margin-bottom: 22px !important;
  }
}

@media (min-width: 700px) and (max-width: 999px) {
  .lfc-post-row > .lfc-post-card:last-child {
    flex-basis: 100%;
  }
}

@media (max-width: 1200px) {
  .lfc-page-hero .lfc-page-sub {
    max-width: 100%;
  }
}

@media (max-width: 1000px) {
  .lfc-tl-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .lfc-filters {
    margin-top: 60px;
    margin-bottom: 28px;
  }
}

@media (max-width: 700px) {
  .lfc-tl-4 {
    grid-template-columns: 1fr;
    padding-left: 26px;
    padding-top: 6px;
  }

  .lfc-tl-3 {
    grid-template-columns: 1fr;
    padding-left: 26px;
    padding-top: 6px;
  }

  .lfc-tl-list::before {
    top: 0;
    bottom: 0;
    left: 6px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(to bottom, var(--c-accent), rgba(255,214,1,.25));
  }

  .lfc-tl-dot {
    top: 26px;
    left: -26px;
  }

  .lfc-timeline {
    padding: 54px 0;
  }
}

@media (min-width: 1100px) {
  .lfc-cards-5row > .lfc-card {
    flex-basis: calc(20% - 12px);
  }

  .lfc-cards-5row > .lfc-card p {
    font-size: 13.5px;
  }
}

@media (min-width: 1180px) {
  .lfc-cards-5:not(.lfc-cards-compact) > .lfc-card {
    flex-basis: calc(20% - 12px);
    max-width: calc(20% - 12px);
  }

  .lfc-cards-5:not(.lfc-cards-compact) > .lfc-card p {
    font-size: 13.5px;
  }
}

@media (min-width: 760px) and (max-width: 1179px) {
  .lfc-cards-5:not(.lfc-cards-compact) > .lfc-card {
    flex-basis: calc(33.333% - 10px);
    max-width: calc(33.333% - 10px);
  }
}

@media (min-width: 1080px) {
  .lfc-when-item {
    flex-basis: calc(25% - 9px);
  }
}

@media (min-width: 1024px) {
  .lfc-auto-grid > .lfc-auto-card {
    flex-basis: calc(33.333% - 16px);
  }
}

@media (max-width: 900px) and (max-height: 680px) {
  .mobile-nav.open {
    justify-content: flex-start;
    padding-top: 100px;
    padding-bottom: 40px;
  }
}
