@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;700;800&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    margin: 0;
    padding-top:20px;
    background-color: #121212;
    color: #e0e0e0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.popup-open {
    overflow: hidden;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 50px;
    position: fixed;
    width: calc(100% - 100px);
    top: 0;
    z-index: 1001;
    background-color: #121212;
    border-bottom: 2px solid #e0e0e0;
}

.logo a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.2rem;
}

.logo img {
    max-height: 40px;
    width: auto;
    height: auto;
    padding-top: 6px;
}

.desktop-nav {
    display: flex;
}

.desktop-nav a {
    color: #e0e0e0;
    text-decoration: none;
    margin-left: 30px;
    font-weight: 700;
    position: relative;
    transition: color 0.3s ease;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #0000ff;
    bottom: -5px;
    left: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.desktop-nav a:hover {
    color: #ffffff;
}

.desktop-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    z-index: 1002;
    position: relative; /* Necessario per lo z-index */

}

.bar,
.hamburger-menu span,
.hamburger-menu div {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #e0e0e0;
    margin: 5px 0;
    transition: 0.4s;
    border-radius: 2px;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: -290px;
    width: 290px;
    height: 100%;
    background-color: #12151f;
    padding: 60px 18px 25px;
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1003;
    overflow-y: auto;
    box-sizing: border-box;
    border-right: 1px solid #232838;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.5);
}

.mobile-nav.open {
    left: 0 !important;
}

.close-menu-btn {
    color: #94a3b8;
    position: absolute;
    top: 16px;
    right: 18px;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.close-menu-btn:hover {
    color: #fbbc05;
    transform: rotate(90deg);
}

.mobile-nav a {
    text-decoration: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 1. Boxed Cards con linguetta laterale */
.mobile-nav a.mobile-nav-card {
    position: relative;
    padding: 13px 16px 13px 18px;
    margin: 0 0 8px 0;
    border-radius: 12px;
    color: #f8fafc;
    font-size: 0.98rem;
    font-weight: 700;
    background: #1c2232;
    border: 1px solid #2b334a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

/* Linguetta verticale colorata a sinistra */
.mobile-nav a.mobile-nav-card::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 5px;
    border-radius: 12px 0 0 12px;
}

/* Freccia chevron a destra per le card */
.mobile-nav a.mobile-nav-card::after {
    content: '\F285';
    font-family: 'bootstrap-icons';
    font-size: 0.85rem;
    font-weight: 800;
    margin-left: 8px;
    flex-shrink: 0;
}

/* Linguetta Blu (Consulente Seo) */
.mobile-nav a.mobile-nav-blue::before { background-color: #3b82f6; }
.mobile-nav a.mobile-nav-blue::after { color: #3b82f6; }

/* Linguetta Verde (Ecommerce & SEO per Ecommerce) */
.mobile-nav a.mobile-nav-green::before { background-color: #10b981; }
.mobile-nav a.mobile-nav-green::after { color: #10b981; }

/* Linguetta Gialla (AI Expert) */
.mobile-nav a.mobile-nav-yellow::before { background-color: #fbbf24; }
.mobile-nav a.mobile-nav-yellow::after { color: #fbbf24; }

.mobile-nav a.mobile-nav-card:hover,
.mobile-nav a.mobile-nav-card:active {
    background: #252d42;
    transform: translateX(3px);
}

/* Distacchi richiesti tra gruppi */
.mobile-nav a.mobile-nav-space {
    margin-bottom: 22px !important;
}

/* 2. Casi Studio & Contatti: senza linguetta colorata e senza box */
.mobile-nav a.mobile-nav-plain {
    padding: 10px 8px;
    margin: 4px 0;
    color: #cbd5e1;
    font-size: 1.02rem;
    font-weight: 600;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 8px;
}

.mobile-nav a.mobile-nav-plain::before {
    display: none !important;
}

.mobile-nav a.mobile-nav-plain::after {
    display: none !important;
}

.mobile-nav a.mobile-nav-plain:hover,
.mobile-nav a.mobile-nav-plain:active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05) !important;
    transform: translateX(3px);
}


#hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 50px;
    padding-top: 50px;
    background-color: #121212;
    border-bottom: 4px solid #e0e0e0;

}

.hero-text {
    width: 50%;
    padding-top: 30px;
    padding-bottom: 40px;
    padding-left: clamp(25px, 3.5vw, 65px);
    box-sizing: border-box;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 800;
    margin: 0;
    color: #fff;
}


.h2  {
    display: block;
    font-size: 1.5rem;
    margin-top: 20px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-text h2 {
    font-size: 1.4rem;
    color: #e0e0e0;
    text-decoration-line: underline;
    text-decoration-color: #0d11b7;
    text-underline-offset: 3px;
}


.hero-image {
    width: 45%;
}

.hero-image img {
    max-width: 100%;
    border-radius: 20px;
    animation: fadeInSlideUp 1s ease-out forwards;
}

.mobile-image {
    display: none;
}

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#portfolio {
    padding-top: 30px;
    padding-bottom: 40px;
    padding-left: 40px;
    padding-right: 40px;
}

#metodo {
    padding-top: 60px;
    padding-bottom: 40px;
    padding-left: 40px;
    padding-right: 40px;
}

#counter-section {
    padding-top: 10px;
    padding-bottom: 20px;
    padding-left: 40px;
    padding-right: 40px;
}


#chi-sono {
    padding-top: 60px;
    padding-bottom: 20px;
    padding-left: 40px;
    padding-right: 40px;
}


#testimonials {
    padding-top: 30px;
    padding-bottom: 40px;
    padding-left: 40px;
    padding-right: 40px;
}

#cta   {
    padding-top: 50px;
    padding-bottom: 80px;
    padding-left: 40px;
    padding-right: 40px;
}

#clientisoddisfatti {
    padding-top: 0px;
    padding-bottom: 40px;
    padding-left: 40px;
    padding-right: 40px;
}

.metodo-heading,
.chi-sono-heading {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-top: 0;
    margin-bottom: 24px;
    max-width: 1560px;
    margin-left: auto;
    margin-right: auto;
}

.metodo-content {
    display: flex;
    align-items: flex-start;
    gap: 48px;
    max-width: 1560px;
    margin: 0 auto;
}

.metodo-image {
    width: 40%;
    max-width: 620px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
}

.metodo-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.metodo-text {
    flex: 1;
    min-width: 0;
    width: auto;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
}

.metodo-paragraphs {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.metodo-paragraphs p {
    font-size: 0.98rem;
    line-height: 1.55;
    margin-bottom: 8px;
    color: #d1d5db;
}

.metodo-paragraphs p:last-child {
    margin-bottom: 0;
}

.metodo-text a {
    color: #fbbc05;
    text-decoration: none;
}


.portfolio-container {
  text-align: center;
  margin-top: 60px;
  padding: 40px 20px;
    padding-top: 40px;
    padding-bottom: 40px;
  background-color: #1a1a1a;
  border-radius: 15px;
  border: 1px solid #333;
  padding-top: 0px;
  padding-bottom: 40px;
}

.review-container {
  text-align: center;
  margin-top: 40px;
  padding: 40px 20px;
    padding-top: 40px;
    padding-bottom: 40px;
  background-color: #1a1a1a;
  border-radius: 15px;
  border: 1px solid #333;
  padding-top: 0px;
  padding-bottom: 26px;
}

.counter-container {
    text-align: center;
    margin-top: 40px;
    padding: 40px 20px;
    background-color: #1a1a1a;
    border-radius: 15px;
    border: 1px solid #333;
    max-width: 1560px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.counter-text {
    font-size: 1.5rem;
    color: #ccc;
    font-weight: 700;
}

.counter-year {
    color: #fbbc05;
    font-size: 1.6rem; /* Leggermente più grande per enfasi */
}

#counter-number {
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    display: block;
    margin: 10px 0;
}

#counter-caption {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fbbc05; /* Giallo Google per richiamare le recensioni */
}

/*#testimonials {
    background-color: #1a1a1a;
}*/

/* Stile per lo slider di loghi */
.logo-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding-top: 40px;
    padding-bottom: 4px;
    padding-left: 0px;
    padding-right: 0px;
    background-color: #1a1a1a;
    border-radius: 15px;
    border: 1px solid #333;
}

.logo-slider::before,
.logo-slider::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.logo-slider::before {
    left: 0;
    background: linear-gradient(to right, #1a1a1a, transparent);
}

.logo-slider::after {
    right: 0;
    background: linear-gradient(to left, #1a1a1a, transparent);
}

.logo-track {
    display: flex;
    width: max-content;
    animation: scroll 65s linear infinite;
}

.logo-track:hover {
    animation-play-state: paused;
}

.slide {
    width: 260px;
    flex-shrink: 0;
    text-align: center;
    padding: 0 16px;
    box-sizing: border-box;
}

.slide img {
    height: 90px;
    max-width: 100%;
    object-fit: contain;
    padding: 0 10px;
    border-radius: 14px;
    margin: 0 auto 14px;
    filter: grayscale(1) opacity(0.75);
    transition: filter 0.3s ease;
}

.slide:hover img {
    filter: grayscale(0) opacity(1);
}

.slide h3 {
    font-size: 0.88rem;
    line-height: 1.45;
    color: #94a3b8;
    margin: 0 auto;
    font-weight: 500;
    letter-spacing: 0.01em;
    word-break: normal;
    overflow-wrap: break-word;
}





.titolo-calltoaction {
  font-size: 1.8rem;
  font-weight: 900;
  color: #e0e0e0;
  text-decoration-line: underline;
  text-decoration-color: #0d11b7;
  text-underline-offset: 3px;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%); /* Loop continuo e fluido su metà lista duplicata */
    }
}

/* ======================================================================
   ATENA GOOGLE REVIEWS SECTION (Identico a shop.atenasolution.it e atenasolution.it)
   ====================================================================== */
.atena-google-reviews-section {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    position: relative;
    padding: 44px 0 48px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    font-family: inherit;
    color: #1e293b;
}

.atena-gr-container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto;
    padding: 0 35px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .atena-gr-container {
        padding: 0 16px;
    }
    .atena-google-reviews-section {
        padding: 30px 0 34px;
        border-radius: 14px;
    }
}

.atena-gr-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.atena-gr-header-left {
    flex: 1 1 500px;
}

.atena-gr-meta-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.atena-gr-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 9999px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(15,23,42,0.04);
    color: #0f172a;
    font-size: 0.88rem;
}

.atena-gr-rating-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.atena-gr-rating-number {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
}

.atena-gr-stars-gold {
    color: #eab308;
    display: inline-flex;
    gap: 2px;
    font-size: 0.95rem;
}

.atena-gr-count {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
}

.atena-gr-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
    letter-spacing: -0.4px;
    text-align: left;
}

.atena-gr-subtitle {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
    text-align: left;
}

.atena-gr-header-right {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.atena-gr-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 9999px;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(15,23,42,0.06);
    transition: all 0.2s ease;
    box-sizing: border-box;
    cursor: pointer;
}

.atena-gr-btn-primary {
    background: #fbbc05;
    color: #0f172a !important;
    border: 1px solid #e0a800;
}

.atena-gr-btn-primary:hover {
    background: #e0a800;
    color: #ffffff !important;
}

.atena-gr-btn-outline {
    background: #ffffff;
    color: #2563eb !important;
    border: 1px solid #cbd5e1;
}

.atena-gr-btn-outline:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

/* Slider Wrapper & Track */
.atena-gr-slider-wrapper {
    position: relative;
    padding: 8px 0;
    width: 100%;
    box-sizing: border-box;
}

.atena-gr-track {
    display: flex;
    gap: 20px;
    min-height: 220px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 10px 4px 18px 4px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.atena-gr-track::-webkit-scrollbar {
    height: 6px;
}

.atena-gr-track::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

/* Card Responsive Widths */
.atena-gr-card-item {
    flex: 0 0 calc(25% - 15px);
    min-width: 270px;
    max-width: 360px;
    scroll-snap-align: start;
    box-sizing: border-box;
}

@media (max-width: 1200px) {
    .atena-gr-card-item {
        flex: 0 0 calc(33.333% - 14px);
        min-width: 260px;
    }
}

@media (max-width: 899px) {
    .atena-gr-card-item {
        flex: 0 0 calc(50% - 10px);
        min-width: 250px;
    }
}

@media (max-width: 576px) {
    .atena-gr-card-item {
        flex: 0 0 88%;
        min-width: 240px;
    }
}

/* Card Design */
.atena-gr-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 22px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 16px rgba(15,23,42,0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
}

.atena-gr-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15,23,42,0.1);
}

.atena-gr-author-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.atena-gr-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.atena-gr-avatar {
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    width: 46px;
    height: 46px;
}

.atena-gr-avatar-initials {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 800;
    flex-shrink: 0;
}

.atena-gr-author-name {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.95rem;
    max-width: 170px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.atena-gr-verified-line {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: #64748b;
}

.atena-gr-review-text {
    font-size: 0.9rem;
    line-height: 1.55;
    color: #475569;
    margin: 0 0 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.25s ease;
}

.atena-gr-review-text.expanded {
    display: block !important;
    -webkit-line-clamp: unset !important;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
}

.atena-gr-readmore-btn {
    background: transparent;
    border: none;
    padding: 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: #2563eb;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    margin-top: 4px;
}

.atena-gr-readmore-btn:hover {
    text-decoration: underline;
}

.atena-gr-card-footer {
    padding-top: 14px;
    margin-top: 16px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.atena-gr-footer-pub {
    font-size: 0.76rem;
    color: #64748b;
    display: inline-flex;
    align-items: center;
}

.atena-gr-badge-verified {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    border-radius: 9999px;
    padding: 2px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
}

/* Nav Arrows */
.atena-gr-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 10;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(15,23,42,0.12);
    transition: all 0.2s ease;
}

.atena-gr-nav-btn:hover {
    background: #fbbc05; color: #121212 !important;
    color: #ffffff;
    border-color: #2563eb;
}

.atena-gr-prev { left: -16px; }
.atena-gr-next { right: -16px; }

@media (max-width: 768px) {
    .atena-gr-nav-btn { display: none; }
}

.google-logo {
    height: 100px;
    width: auto;
}

#cta {
    text-align: center;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #fff;
    color: #121212;
    text-decoration: none;
    border: 3px solid #0000ff;
    border-radius: 10px;
    font-weight: 700;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-button:hover {
    background-color: #e0e0e0;
}

footer {
    padding-top: 0px;
    padding-bottom: 16px; 
    padding-left: 50px;
    padding-right: 50px;
    text-align: center;
    border-top: 2px solid #e0e0e0;
    border-bottom: 2px solid #e0e0e0;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #1a1a1a;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    border: 1px solid #333;
    max-height: 80vh;
    overflow-y: auto;
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #fff;
}

/* Stili per la sezione Chi Sono */
.chi-sono-content {
    display: flex;
    align-items: flex-start;
    gap: 48px;
    max-width: 1560px;
    margin: 0 auto;
}

.chi-sono-image {
    width: 38%;
    max-width: 580px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
}

.chi-sono-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    display: block;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.chi-sono-text {
    flex: 1;
    min-width: 0;
    width: auto;
    padding-top: 0;
    box-sizing: border-box;
}

.chi-sono-text p {
    font-size: 0.98rem;
    line-height: 1.62;
    margin-bottom: 1.15em;
}

.chi-sono-text a {
    color: #fbbc05;
    text-decoration: none;
}



.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1440px; /* desktop */
  margin: 40px auto 0;
  aspect-ratio: 16 / 9;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

footer a,
footer a:visited {
  color: #fff;
}


footer a:hover,
footer a:focus {
  color: #0000ff;
}

.hero-text .h3-title { 
font-size: 1.4rem;
  color: #e0e0e0;
  text-decoration-line: underline;
  text-decoration-color: #0d11b7;
  text-underline-offset: 3px;
}



.footer-partner-sites {
  font-size: 12px;
  opacity: 0.7;
  text-align: center;
  padding: 6px 10px;
  background-color: #fff;
  color: #000;
}

.footer-partner-sites a {
  text-decoration: none;
}

.footer-partner-sites a:hover {
  text-decoration: underline;
}

/* Sezione FAQ per utenti ed AI (GEO) */
#faq {
    padding: 60px 40px;
    max-width: 960px;
    margin: 0 auto;
}

#faq h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    margin-bottom: 35px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background-color: #1a1a1a;
    border: 1px solid #2e2e2e;
    border-radius: 8px;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.faq-item[open] {
    border-color: #555555;
    background-color: #1f1f1f;
}

.faq-question {
    padding: 18px 22px;
    font-size: 1.08rem;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 400;
    color: #9e9e9e;
    transition: transform 0.2s ease;
    margin-left: 15px;
    flex-shrink: 0;
}

.faq-item[open] .faq-question::after {
    content: '−';
    color: #ffffff;
}

.faq-answer {
    padding: 0 22px 20px 22px;
    color: #cccccc;
    font-size: 0.96rem;
    line-height: 1.7;
}

.faq-answer p {
    margin: 0;
}

.faq-answer strong {
    color: #ffffff;
}

/*modifiche solo a cellulari*/

@media (max-width: 768px) {
    main {
        padding-top: 24px;
    }

    header {
        padding: 20px;
        width: calc(100% - 40px);
    }

    .desktop-nav {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .mobile-nav {
        display: block;
    }

    #hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-left: 14px;
		padding-right: 14px;
    }

    .hero-text, .hero-image {
        width: 100%;
        padding-right: 0;
        padding-left: 0;
    }

    .desktop-image {
        display: none;
    }

    .mobile-image {
        display: block;
        margin-top: 10px;
        margin-bottom: 30px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-text h2 {
        font-size: 1.2rem;
    }

    .hero-text .h3-title {
        font-size: 1.2rem;
    }

    .h2  {
    font-size: 1.1rem;
    }

    #testimonials {
        padding: 24px 20px;
    }

    #cta {
        padding: 46px 20px;
    }

    #portfolio  {
    padding-top: 0px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    }

    #metodo  {
        padding-top: 40px;
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 14px;
    }


    .portfolio-container {
        padding-bottom: 24px;
    }

    .metodo-content {
        flex-direction: column;
        gap: 10px;
    }


    .metodo-image, .metodo-text {
        width: 100%;
        position: static;
    }
    .metodo-text {
        padding-top: 0;
    }

    .metodo-text {
        padding-top: 0px;
        padding-bottom: 0px;
    }

    .chi-sono-content {
        flex-direction: column;
        gap: 10px;
    }

    .chi-sono-image, .chi-sono-text {
        width: 100%;
        position: static;
    }

    .chi-sono-text {
        padding-top: 0px;
        padding-bottom: 0px;
    }



    .counter-container {
        margin-top: 10px;
    }

    #counter-section {
        padding-top: 10px;
        padding-bottom: 10px;
        padding-left: 20px;
        padding-right: 20px;
    }

    #chi-sono  {
   	    padding-top: 40px;
        padding-left: 20px;
        padding-right: 20px;
	    padding-bottom: 0px;
    }

   .review-container {
        margin-top: 10px;
    }

    .review-slider {
        padding-top: 20px;
        padding-bottom: 20px;
    }

   footer  {
		padding-left: 20px;
        padding-right: 20px;
        font-size: 14px !important;
    }


/* Video Mobile: full width ma con 20px di margine laterale */
  .video-wrapper {
    max-width: calc(100vw - 40px); /* 20px per lato */
    width: calc(100vw - 40px);
    margin: 0 auto; /* centra il blocco */
  }

/* FAQ Mobile */
    #faq {
        padding: 40px 20px;
    }

    #faq h2 {
        font-size: 1.4rem;
        margin-bottom: 24px;
    }

    .faq-question {
        padding: 15px 16px;
        font-size: 0.98rem;
    }

    .faq-answer {
        padding: 0 16px 16px 16px;
        font-size: 0.92rem;
    }

}

/* ======================================================================
   BOX RISULTATI TANGIBILI (ALLINEATO ESATTAMENTE AL PANNELLO 2 IN BASSO)
   ====================================================================== */
.metodo-results-box {
    background: linear-gradient(145deg, #181818 0%, #111111 100%);
    border: 1px solid #2e2e2e;
    border-radius: 12px;
    padding: 12px 16px;
    margin-top: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
}

.metodo-results-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.metodo-results-header i {
    font-size: 1.15rem;
    color: #fbbc05;
}

.metodo-results-header h3 {
    font-size: 1.02rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.2px;
}

.metodo-cases-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 8px;
}

@media (max-width: 900px) {
    #counter-section {
        padding-left: 20px;
        padding-right: 20px;
    }
    .metodo-content {
        flex-direction: column;
        gap: 20px;
    }
    .metodo-image, .metodo-text {
        width: 100%;
        position: static;
    }
    .metodo-text {
        padding-top: 0;
    }
    .metodo-results-box {
        margin-top: 16px;
        padding: 14px 14px;
    }
    .metodo-cases-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .metodo-paragraphs p {
        font-size: 0.90rem;
        line-height: 1.55;
        margin-bottom: 10px;
    }
}

.metodo-case-card {
    background: #191919;
    border: 1px solid #2d2d2d;
    border-radius: 8px;
    padding: 9px 11px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.metodo-case-card:hover {
    border-color: #444444;
    transform: translateY(-2px);
}

.metodo-case-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 22px;
    line-height: 1;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #fbbc05;
    background: rgba(251, 188, 5, 0.08);
    border: 1px solid rgba(251, 188, 5, 0.2);
    padding: 0 8px;
    border-radius: 4px;
    margin-bottom: 6px;
    width: fit-content;
    box-sizing: border-box;
}

.metodo-case-card .kpi-num {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fbbc05;
    letter-spacing: -0.5px;
    line-height: 1.1;
    margin-bottom: 2px;
}

.metodo-case-card .kpi-sub {
    font-size: 0.76rem;
    font-weight: 700;
    color: #34A853;
    margin-bottom: 5px;
}

.metodo-case-desc {
    font-size: 0.78rem !important;
    color: #b0b8c4 !important;
    line-height: 1.42 !important;
    margin: 0 !important;
}

.metodo-case-desc strong {
    color: #ffffff;
}

.metodo-results-footer {
    font-size: 0.76rem !important;
    color: #94a3b8 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding-top: 6px;
    border-top: 1px solid #222222;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.metodo-results-footer i {
    font-size: 0.95rem;
    color: #34A853;
    flex-shrink: 0;
    margin-top: 1px;
}

.metodo-results-footer strong {
    color: #ffffff;
}

/* ======================================================================
   PILLAR PAGES & ADVANCED COMPONENTS
   ====================================================================== */
.desktop-nav a.active,
.mobile-nav a.active {
    color: #fbbc05 !important;
}

.desktop-nav a.active::after {
    transform: scaleX(1);
    background-color: #fbbc05;
}

/* Breadcrumbs */
.breadcrumbs-wrapper {
    background-color: #171717;
    border-bottom: 1px solid #282828;
    padding: 14px 50px;
    font-size: 0.88rem;
}

.breadcrumbs-nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumbs-nav a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.breadcrumbs-nav a:hover {
    color: #fbbc05;
}

.breadcrumbs-nav .separator {
    color: #555;
    font-size: 0.75rem;
}

.breadcrumbs-nav .current {
    color: #ffffff;
    font-weight: 700;
}

/* Pillar Hero */
.pillar-hero {
    padding: 65px 50px 55px;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid #282828;
}

.pillar-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 32px;
    line-height: 1;
    background: rgba(251, 188, 5, 0.1);
    border: 1px solid rgba(251, 188, 5, 0.3);
    color: #fbbc05;
    padding: 0 16px;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.pillar-hero h1 {
    font-size: 2.85rem;
    font-weight: 800;
    line-height: 1.18;
    color: #ffffff;
    margin: 0 0 22px 0;
    letter-spacing: -0.5px;
}

.pillar-lead {
    font-size: 1.15rem;
    line-height: 1.65;
    color: #cbd5e1;
    margin-bottom: 24px;
    max-width: 980px;
}

.pillar-trust-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 36px;
}

.pillar-trust-item {
    background: #191919;
    border: 1px solid #2d2d2d;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.pillar-trust-item i {
    font-size: 1.8rem;
    color: #fbbc05;
    flex-shrink: 0;
}

.pillar-trust-item strong {
    display: block;
    color: #ffffff;
    font-size: 0.98rem;
    margin-bottom: 2px;
}

.pillar-trust-item span {
    font-size: 0.82rem;
    color: #94a3b8;
}

/* Pillar Content Sections */
.pillar-section {
    padding: 65px 50px;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid #242424;
}

.pillar-section-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 45px;
}

.pillar-section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 14px;
    letter-spacing: -0.4px;
}

.pillar-section-header p {
    font-size: 1.05rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
}

/* Services Grid */
.pillar-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pillar-service-card {
    background: #191919;
    border: 1px solid #2d2d2d;
    border-radius: 16px;
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.pillar-service-card:hover {
    transform: translateY(-5px);
    border-color: #3b82f6;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.pillar-service-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.3);
    color: #60a5fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.pillar-service-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px;
    line-height: 1.35;
}

.pillar-service-card p {
    font-size: 0.94rem;
    line-height: 1.6;
    color: #94a3b8;
    margin: 0 0 18px;
    flex-grow: 1;
}

.pillar-service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #262626;
    padding-top: 14px;
}

.pillar-service-list li {
    font-size: 0.86rem;
    color: #cbd5e1;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.pillar-service-list li:last-child {
    margin-bottom: 0;
}

.pillar-service-list li i {
    color: #34A853;
    font-size: 0.95rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Process Steps Grid */
.pillar-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.pillar-step-card {
    background: #191919;
    border: 1px solid #2d2d2d;
    border-radius: 16px;
    padding: 28px 22px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pillar-step-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fbbc05;
    opacity: 0.9;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.pillar-step-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px;
}

.pillar-step-card p {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #94a3b8;
    margin: 0;
}

/* Case Study Cards */
.pillar-cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.pillar-case-card {
    background: #191919;
    border: 1px solid #2d2d2d;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.pillar-case-card:hover {
    transform: translateY(-4px);
    border-color: #444;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}

.pillar-case-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    background: #111;
    border-bottom: 1px solid #292929;
}

.pillar-case-body {
    padding: 26px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pillar-case-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 28px;
    line-height: 1;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fbbc05;
    background: rgba(251, 188, 5, 0.08);
    border: 1px solid rgba(251, 188, 5, 0.2);
    padding: 0 10px;
    border-radius: 6px;
    margin-bottom: 14px;
    width: fit-content;
    box-sizing: border-box;
}

.pillar-case-body h3 {
    font-size: 1.32rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 16px;
    line-height: 1.3;
}

.pillar-case-kpis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    background: #121212;
    border: 1px solid #272727;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.pillar-kpi-item .kpi-val {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fbbc05;
    line-height: 1.1;
    margin-bottom: 4px;
}

.pillar-kpi-item .kpi-lbl {
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.35;
}

.pillar-case-body p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin: 0 0 20px;
    flex-grow: 1;
}

.pillar-case-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: #fbbc05;
    color: #0f172a !important;
    border: 1px solid #e0a800;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none !important;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.pillar-case-btn:hover {
    background: #e0a800;
    transform: translateY(-1px);
}

/* Responsive Pillar Media Queries */
@media (max-width: 1024px) {
    .pillar-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .pillar-process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .breadcrumbs-wrapper {
        padding: 12px 20px;
    }
    .pillar-hero {
        padding: 40px 20px 35px;
    }
    .pillar-hero h1 {
        font-size: 2.1rem;
    }
    .pillar-lead {
        font-size: 1.02rem;
    }
    .pillar-section {
        padding: 45px 20px;
    }
    .pillar-section-header h2 {
        font-size: 1.7rem;
    }
    .pillar-grid-3,
    .pillar-process-grid,
    .pillar-cases-grid {
        grid-template-columns: 1fr;
    }
    .pillar-case-kpis {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   CASI STUDIO & HUB - STILE GRAFICO IDENTICO ALLA HOMEPAGE
   ========================================================================== */

/* Breadcrumbs Standard */
.cs-breadcrumb, .breadcrumbs-wrapper {
    max-width: 1200px;
    margin: 25px auto 0;
    padding: 0 20px;
}
.cs-breadcrumb-nav, .breadcrumbs-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: #94a3b8;
    flex-wrap: wrap;
}
.cs-breadcrumb-nav a, .breadcrumbs-nav a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}
.cs-breadcrumb-nav a:hover, .breadcrumbs-nav a:hover {
    color: #fbbc05;
}
.cs-breadcrumb-nav .separator, .breadcrumbs-nav .separator {
    color: #4b5563;
    font-size: 0.72rem;
}
.cs-breadcrumb-nav .current, .breadcrumbs-nav .current {
    color: #fbbc05;
    font-weight: 700;
}

/* Hub Hero */
.hub-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 35px;
    text-align: center;
}
.hub-hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    line-height: 1;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fbbc05;
    background: rgba(251, 188, 5, 0.08);
    border: 1px solid rgba(251, 188, 5, 0.2);
    padding: 0 14px;
    border-radius: 999px;
    margin-bottom: 20px;
    box-sizing: border-box;
}
.hub-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 18px;
    letter-spacing: -0.5px;
}
.hub-hero .lead {
    font-size: 1.15rem;
    color: #cbd5e1;
    max-width: 840px;
    margin: 0 auto 35px;
    line-height: 1.65;
}

/* Hub KPI Bar */
.hub-kpi-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto 45px;
    padding: 0 20px;
}
.hub-kpi-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 14px;
    padding: 24px 16px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: transform 0.25s, border-color 0.25s;
}
.hub-kpi-card:hover {
    border-color: #fbbc05;
    transform: translateY(-3px);
}
.hub-kpi-val {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fbbc05;
    letter-spacing: -0.5px;
    line-height: 1.1;
    margin-bottom: 6px;
}
.hub-kpi-lbl {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}
.hub-kpi-sub {
    font-size: 0.78rem;
    color: #34A853;
    font-weight: 700;
}

/* Hub Filters */
.hub-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    padding: 0 20px;
}
.hub-filter-btn {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #cbd5e1;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.hub-filter-btn:hover, .hub-filter-btn.active {
    background: #fbbc05;
    color: #121212;
    border-color: #fbbc05;
}

/* Hub Pillar Headers & Grid */
.hub-pillar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 50px auto 22px;
    padding: 0 20px;
    border-bottom: 1px solid #2e2e2e;
    padding-bottom: 14px;
}
.hub-pillar-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}
.hub-pillar-title i {
    color: #fbbc05;
}
.hub-pillar-link {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fbbc05;
    text-decoration: underline;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.hub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

/* Case Study Cards (.cs-card) */
.cs-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.cs-card:hover {
    border-color: #444;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}
.cs-card-img-wrap {
    position: relative;
    background: #ffffff;
    padding: 24px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    border-bottom: 1px solid #282828;
}
.cs-card-img-wrap a,
.cs-card-img-wrap picture {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.cs-card-img-wrap img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 120px !important;
    object-fit: contain !important;
}
.cs-card-pill {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    line-height: 1;
    background: rgba(18, 18, 18, 0.9);
    color: #fbbc05;
    border: 1px solid rgba(251, 188, 5, 0.4);
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-sizing: border-box;
}
.cs-card-body {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.cs-card-client {
    font-size: 0.8rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.cs-card-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px;
    line-height: 1.3;
}
.cs-card-desc {
    font-size: 0.92rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}
.cs-card-kpis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    background: #121212;
    border: 1px solid #282828;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 22px;
}
.cs-card-kpi-item .kpi-num {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fbbc05;
    line-height: 1.1;
    margin-bottom: 4px;
}
.cs-card-kpi-item .kpi-lbl {
    font-size: 0.76rem;
    color: #94a3b8;
    line-height: 1.3;
}
.cs-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}
.cs-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    gap: 8px;
    background: #fbbc05;
    color: #121212 !important;
    font-weight: 800;
    font-size: 0.88rem;
    line-height: 1;
    padding: 0 20px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.15s;
    box-sizing: border-box;
}
.cs-card-btn:hover {
    background: #e0a800;
    transform: translateY(-2px);
}

/* Case Study Detail Hero */
.cs-detail-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 25px;
}
.cs-hero-top-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 16px;
}
.cs-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(251, 188, 5, 0.08);
    border: 1px solid rgba(251, 188, 5, 0.25);
    color: #fbbc05;
    padding: 0 14px;
    height: 34px;
    line-height: 1;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-sizing: border-box;
    vertical-align: middle;
}
.cs-card-footer .cs-tag {
    height: 42px;
    padding: 0 16px;
    font-size: 0.78rem;
    margin: 0;
}
.cs-tag.green {
    background: rgba(16, 185, 129, 0.12) !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    color: #10b981 !important;
}
.cs-tag.highlight {
    background: rgba(251, 188, 5, 0.15) !important;
    border: 1px solid #fbbc05 !important;
    color: #fbbc05 !important;
}
.cs-detail-title {
    font-size: 2.85rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.18;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
}
.cs-detail-lead {
    font-size: 1.18rem;
    color: #cbd5e1;
    line-height: 1.65;
    margin-bottom: 30px;
    max-width: 960px;
}
.cs-project-meta-box {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 18px 24px;
    margin-bottom: 35px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.cs-meta-cell .meta-lbl {
    font-size: 0.72rem;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.cs-meta-cell .meta-val {
    font-size: 0.98rem;
    font-weight: 700;
    color: #ffffff;
}

/* Featured Image */
.cs-featured-image {
    max-width: 1200px;
    margin: 0 auto 35px;
    padding: 0 20px;
}
.cs-featured-image img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #333;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
    display: block;
}

/* KPI Highlights Grid */
.cs-kpi-highlight-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto 50px;
    padding: 0 20px;
}
.cs-kpi-highlight-card {
    background: linear-gradient(145deg, #181818 0%, #111111 100%);
    border: 1px solid #333;
    border-radius: 14px;
    padding: 22px 18px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s, border-color 0.2s;
}
.cs-kpi-highlight-card.green-border {
    border-color: #34A853;
}
.cs-kpi-highlight-card .kpi-num {
    font-size: 2rem;
    font-weight: 800;
    color: #fbbc05;
    margin-bottom: 6px;
    line-height: 1.1;
}
.cs-kpi-highlight-card .kpi-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}
.cs-kpi-highlight-card .kpi-detail {
    font-size: 0.78rem;
    color: #34A853;
    margin: 0;
    font-weight: 600;
}

/* Case Study Body */
.cs-body-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}
.cs-section {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 36px 38px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.cs-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    border-bottom: 1px solid #282828;
    padding-bottom: 16px;
}
.cs-section-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(251, 188, 5, 0.1);
    border: 1px solid rgba(251, 188, 5, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fbbc05;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.cs-section-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.3px;
}
.cs-section-content {
    font-size: 1.02rem;
    line-height: 1.75;
    color: #d1d5db;
}
.cs-section-content p {
    margin-bottom: 1.2em;
}
.cs-section-content strong {
    color: #ffffff;
}
.cs-section-content ul {
    margin: 16px 0 24px 20px;
    padding-left: 10px;
}
.cs-section-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}
.cs-callout {
    background: #121212;
    border-left: 4px solid #fbbc05;
    border-radius: 0 10px 10px 0;
    padding: 18px 22px;
    margin: 24px 0;
    border-top: 1px solid #252525;
    border-right: 1px solid #252525;
    border-bottom: 1px solid #252525;
}
.cs-callout.solution {
    border-left-color: #34A853;
}
.cs-callout-title {
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.cs-callout.solution .cs-callout-title i {
    color: #34A853;
}
.cs-callout-title i {
    color: #fbbc05;
}
.cs-table-wrap {
    overflow-x: auto;
    margin: 24px 0;
    border-radius: 12px;
    border: 1px solid #333;
}
.cs-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}
.cs-table th {
    background: #121212;
    color: #fbbc05;
    padding: 14px 18px;
    font-weight: 700;
    border-bottom: 1px solid #333;
}
.cs-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #262626;
    color: #cbd5e1;
}
.cs-table tr:last-child td {
    border-bottom: none;
}
.cs-table .val-highlight {
    color: #34A853;
    font-weight: 700;
}
.cs-table .val-before {
    color: #ef4444;
}
.cs-stack-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 24px 0;
}
.cs-stack-item {
    background: #121212;
    border: 1px solid #2d2d2d;
    border-radius: 10px;
    padding: 16px;
}
.cs-stack-item .stack-cat {
    font-size: 0.72rem;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.cs-stack-item .stack-tech {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fbbc05;
    margin-bottom: 4px;
}
.cs-stack-item .stack-detail {
    font-size: 0.8rem;
    color: #cbd5e1;
    line-height: 1.4;
}
.cs-quote-box {
    background: linear-gradient(145deg, #181818 0%, #131313 100%);
    border: 1px solid #333;
    border-radius: 14px;
    padding: 28px 32px;
    position: relative;
    margin: 28px 0 10px;
}
.cs-quote-box .quote-icon {
    font-size: 2.2rem;
    color: #fbbc05;
    opacity: 0.5;
    margin-bottom: 8px;
}
.cs-quote-text {
    font-size: 1.1rem;
    font-style: italic;
    color: #e2e8f0;
    line-height: 1.65;
    margin-bottom: 16px;
}
.cs-quote-author {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
}
.cs-quote-role {
    font-size: 0.82rem;
    color: #94a3b8;
}
.cs-pillar-banner {
    background: #141414;
    border: 1px solid #2e2e2e;
    border-radius: 14px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 20px 0;
}
.cs-pillar-tag {
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #fbbc05;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.cs-pillar-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px;
}
.cs-pillar-desc {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.45;
}
.cs-pillar-btn {
    background: #fbbc05;
    color: #121212 !important;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s;
}
.cs-pillar-btn:hover {
    background: #e0a800;
    transform: translateY(-2px);
}
.cs-related-section {
    max-width: 1200px;
    margin: 60px auto 40px;
    padding: 0 20px;
}
.cs-related-heading {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 24px;
    text-align: center;
}
.cs-related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.cs-cta-section {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 50px 30px;
    text-align: center;
    margin: 40px 0;
}
.cs-cta-section h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px;
}
.cs-cta-section p {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin: 0 0 28px;
}
.cs-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.cs-cta-phone {
    font-size: 0.95rem;
    color: #94a3b8;
}
.cs-cta-phone a {
    color: #fbbc05;
    font-weight: 700;
    text-decoration: underline;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.cs-cta-phone a i {
    color: #25D366;
    font-size: 1.15rem;
}

/* Responsive Case Studies */
@media (max-width: 1024px) {
    .hub-kpi-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    .hub-grid {
        grid-template-columns: 1fr;
    }
    .cs-project-meta-box {
        grid-template-columns: repeat(2, 1fr);
    }
    .cs-kpi-highlight-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cs-stack-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cs-pillar-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}
@media (max-width: 768px) {
    .hub-hero h1 {
        font-size: 2.2rem;
    }
    .hub-kpi-bar {
        grid-template-columns: 1fr;
    }
    .cs-detail-title {
        font-size: 2rem;
    }
    .cs-project-meta-box {
        grid-template-columns: 1fr;
    }
    .cs-kpi-highlight-grid {
        grid-template-columns: 1fr;
    }
    .cs-stack-grid {
        grid-template-columns: 1fr;
    }
    .cs-related-grid {
        grid-template-columns: 1fr;
    }
    .cs-section {
        padding: 24px 20px;
    }
}


/* Breadcrumbs Standard & Unified (Flex & Reset) */
.breadcrumbs-wrapper, .cs-breadcrumb-nav, .cs-breadcrumb-wrapper {
    max-width: 1200px;
    margin: 25px auto 0;
    padding: 0 20px;
    box-sizing: border-box;
    display: block;
    width: 100%;
}
.breadcrumbs-nav, ul.cs-breadcrumb, ol.cs-breadcrumb, .cs-breadcrumb {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 0.88rem !important;
    color: #94a3b8 !important;
    flex-wrap: wrap !important;
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.breadcrumbs-nav li, ul.cs-breadcrumb li, ol.cs-breadcrumb li {
    list-style: none !important;
    list-style-type: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
}
.breadcrumbs-nav a, ul.cs-breadcrumb a, .cs-breadcrumb a {
    color: #94a3b8 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
}
.breadcrumbs-nav a:hover, ul.cs-breadcrumb a:hover, .cs-breadcrumb a:hover {
    color: #fbbc05 !important;
}
.breadcrumbs-nav .separator, ul.cs-breadcrumb .separator, .cs-breadcrumb .separator {
    color: #4b5563 !important;
    font-size: 0.72rem !important;
    display: inline-flex !important;
    align-items: center !important;
}
.breadcrumbs-nav .current, ul.cs-breadcrumb .current, .cs-breadcrumb .current {
    color: #fbbc05 !important;
    font-weight: 700 !important;
}


/* ==========================================================================
   COOKIE BANNER A NORMATIVA GARANTE PRIVACY 2021 & GDPR
   ========================================================================== */
.fg-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 2px solid #fbbc05;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.7);
    z-index: 999999;
    padding: 24px 20px;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #e2e8f0;
    animation: fgSlideUp 0.35s ease-out;
}
@keyframes fgSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.fg-cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
@media (min-width: 992px) {
    .fg-cookie-banner-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 32px;
    }
}
.fg-cookie-close-x {
    position: absolute;
    top: -12px;
    right: 0;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 4px;
}
.fg-cookie-close-x:hover {
    color: #fbbc05;
}
.fg-cookie-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    line-height: 1;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    padding: 0 10px;
    border-radius: 999px;
    margin-bottom: 8px;
    box-sizing: border-box;
}
.fg-cookie-banner-text h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px 0;
}
.fg-cookie-banner-text p {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #cbd5e1;
    margin: 0;
}
.fg-cookie-banner-text a {
    color: #fbbc05;
    text-decoration: underline;
    font-weight: 600;
}
.fg-cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}
.fg-btn {
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-align: center;
}
.fg-btn-primary {
    background: #fbbc05;
    color: #121212;
}
.fg-btn-primary:hover {
    background: #e5ab04;
    transform: translateY(-1px);
}
.fg-btn-secondary {
    background: #27272a;
    color: #ffffff;
    border-color: #3f3f46;
}
.fg-btn-secondary:hover {
    background: #3f3f46;
}
.fg-btn-outline {
    background: transparent;
    color: #fbbc05;
    border-color: #fbbc05;
}
.fg-btn-outline:hover {
    background: rgba(251, 188, 5, 0.1);
}

/* Modale Preferenze Cookie */
.fg-cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.fg-cookie-modal.active {
    display: flex;
}
.fg-cookie-modal-dialog {
    background: #18181b;
    border: 1px solid #3f3f46;
    border-radius: 16px;
    max-width: 680px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.9);
    animation: fgZoomIn 0.25s ease-out;
}
@keyframes fgZoomIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.fg-cookie-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #27272a;
}
.fg-cookie-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #ffffff;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}
.fg-cookie-modal-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 26px;
    cursor: pointer;
}
.fg-cookie-modal-close:hover {
    color: #ffffff;
}
.fg-cookie-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
}
.fg-ck-pref-card {
    background: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.fg-ck-pref-info h4 {
    margin: 0 0 6px 0;
    font-size: 1rem;
    color: #ffffff;
    font-weight: 700;
}
.fg-badge-always {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    line-height: 1;
    font-size: 0.72rem;
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
    padding: 0 8px;
    border-radius: 999px;
    margin-left: 6px;
    vertical-align: middle;
    box-sizing: border-box;
}
.fg-ck-pref-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #a1a1aa;
    line-height: 1.5;
}
.fg-ck-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 4px;
}
.fg-ck-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.fg-ck-switch label {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #3f3f46;
    transition: .3s;
    border-radius: 24px;
}
.fg-ck-switch label:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}
.fg-ck-switch input:checked + label {
    background-color: #fbbc05;
}
.fg-ck-switch input:checked + label:before {
    transform: translateX(20px);
}
.fg-ck-switch input:disabled + label {
    background-color: #10b981;
    cursor: not-allowed;
}
.fg-cookie-modal-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 18px 24px;
    border-top: 1px solid #27272a;
    background: #18181b;
    border-radius: 0 0 16px 16px;
}

/* Pulsante Galleggiante Shield */
.fg-cookie-floating-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 46px;
    height: 46px;
    background: #18181b;
    border: 2px solid #fbbc05;
    color: #fbbc05;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    z-index: 99998;
    transition: all 0.25s ease;
}
.fg-cookie-floating-btn:hover {
    background: #fbbc05;
    color: #121212;
    transform: scale(1.1);
}

/* ==========================================================================
   STILI PAGINE LEGALI (PRIVACY, COOKIE, TERMINI)
   ========================================================================== */
.legal-page-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}
.legal-hero {
    text-align: center;
    margin-bottom: 45px;
}
.legal-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    line-height: 1;
    gap: 6px;
    background: rgba(251, 188, 5, 0.1);
    color: #fbbc05;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 16px;
    box-sizing: border-box;
}
.legal-hero h1 {
    font-size: clamp(1.9rem, 3.8vw, 2.8rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 16px;
}
.legal-hero h1 span {
    color: #fbbc05;
}
.legal-lead {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #94a3b8;
    max-width: 800px;
    margin: 0 auto 28px;
}
.legal-nav-pill-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}
.legal-nav-pill-group a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 999px;
    color: #cbd5e1;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.legal-nav-pill-group a:hover, .legal-nav-pill-group a.active {
    background: #fbbc05;
    color: #121212;
    border-color: #fbbc05;
}

.legal-card-body {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 16px;
    padding: 40px;
    color: #cbd5e1;
    font-size: 0.98rem;
    line-height: 1.8;
}
@media (max-width: 768px) {
    .legal-card-body {
        padding: 24px 18px;
    }
}
.legal-card-body h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin: 36px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #27272a;
}
.legal-card-body h2:first-of-type {
    margin-top: 0;
}
.legal-info-box {
    background: #1e1e24;
    border-left: 4px solid #fbbc05;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 20px 0;
}
.legal-details-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.legal-details-list li {
    padding: 6px 0;
    font-size: 0.92rem;
    border-bottom: 1px dashed rgba(255,255,255,0.07);
}
.legal-details-list li:last-child {
    border-bottom: none;
}
.legal-details-list strong {
    color: #ffffff;
    min-width: 220px;
    display: inline-block;
}
.legal-details-list a {
    color: #fbbc05;
    text-decoration: underline;
}
.legal-details-list code {
    background: #121212;
    padding: 2px 6px;
    border-radius: 4px;
    color: #fbbc05;
}

.legal-action-box {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
@media (min-width: 768px) {
    .legal-action-box {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
.legal-action-box h3 {
    margin: 0 0 6px;
    font-size: 1.15rem;
    color: #ffffff;
}
.legal-action-box p {
    margin: 0;
    font-size: 0.9rem;
    color: #94a3b8;
}
.legal-btn {
    background: #fbbc05;
    color: #121212;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.legal-btn:hover {
    background: #e5ab04;
}

.legal-cookie-cat {
    background: #1e1e24;
    border: 1px solid #27272a;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 16px;
}
.legal-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}
.legal-cat-header h4 {
    margin: 0;
    font-size: 1.05rem;
    color: #ffffff;
    font-weight: 700;
}
.legal-badge-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    line-height: 1;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0 10px;
    border-radius: 999px;
    text-transform: uppercase;
    box-sizing: border-box;
}
.legal-badge-pill.green {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}
.legal-badge-pill.yellow {
    background: rgba(251, 188, 5, 0.15);
    color: #fbbc05;
}

.legal-table-responsive {
    overflow-x: auto;
    margin: 24px 0;
    border: 1px solid #27272a;
    border-radius: 10px;
}
.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
}
.legal-table th, .legal-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #27272a;
}
.legal-table th {
    background: #27272a;
    color: #ffffff;
    font-weight: 700;
}
.legal-table tr:last-child td {
    border-bottom: none;
}
.legal-table tr:nth-child(even) td {
    background: rgba(255,255,255,0.02);
}
.badge-tech {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    line-height: 1;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    padding: 0 8px;
    border-radius: 4px;
    font-weight: 700;
    box-sizing: border-box;
    vertical-align: middle;
}
.badge-opt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    line-height: 1;
    background: rgba(251, 188, 5, 0.15);
    color: #fbbc05;
    padding: 0 8px;
    border-radius: 4px;
    font-weight: 700;
    box-sizing: border-box;
    vertical-align: middle;
}
.badge-prof {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    line-height: 1;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    padding: 0 8px;
    border-radius: 4px;
    font-weight: 700;
    box-sizing: border-box;
    vertical-align: middle;
}

.legal-rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 20px;
}
.legal-right-item {
    background: #1e1e24;
    border: 1px solid #27272a;
    border-radius: 10px;
    padding: 16px;
}
.legal-right-item strong {
    display: block;
    color: #fbbc05;
    font-size: 0.95rem;
    margin-bottom: 6px;
}
.legal-right-item span {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.5;
    display: block;
}

/* ======================================================================
   SEZIONE CASI STUDIO IN EVIDENZA (HOMEPAGE)
   ====================================================================== */
.cs-showcase-section {
    padding: 60px 20px;
    background-color: #121216;
    border-top: 1px solid #23232c;
    border-bottom: 1px solid #23232c;
}

.cs-showcase-container {
    max-width: 1560px;
    margin: 0 auto;
}

.cs-showcase-header {
    text-align: center;
    margin-bottom: 40px;
}

.cs-showcase-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 32px;
    line-height: 1;
    background: rgba(251, 188, 5, 0.1);
    border: 1px solid rgba(251, 188, 5, 0.3);
    color: #fbbc05;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
    box-sizing: border-box;
}

.cs-showcase-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px 0;
    line-height: 1.25;
}

.cs-showcase-subtitle {
    font-size: 1.05rem;
    color: #9ca3af;
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.6;
}

.cs-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cs-showcase-card {
    background: #1a1a22;
    border: 1px solid #2c2c38;
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.cs-showcase-card:hover {
    transform: translateY(-4px);
    border-color: #fbbc05;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

.cs-showcase-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.cs-showcase-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    line-height: 1;
    font-size: 0.74rem;
    font-weight: 700;
    color: #cbd5e1;
    background: #252532;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid #363646;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-sizing: border-box;
}

.cs-showcase-stat {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fbbc05;
    letter-spacing: -0.3px;
}

.cs-showcase-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 10px 0;
}

.cs-showcase-card-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cs-showcase-card-title a:hover {
    color: #fbbc05;
}

.cs-showcase-card-desc {
    font-size: 0.90rem;
    color: #c4c8d0;
    line-height: 1.55;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.cs-showcase-card-footer {
    padding-top: 14px;
    border-top: 1px solid #282836;
}

.cs-showcase-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #fbbc05;
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}

.cs-showcase-btn:hover {
    gap: 10px;
    color: #ffffff;
}

.cs-showcase-cta {
    text-align: center;
    margin-top: 45px;
}

.cs-showcase-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fbbc05;
    color: #121212 !important;
    font-size: 1.05rem;
    font-weight: 800;
    padding: 15px 32px;
    border-radius: 10px;
    text-decoration: none !important;
    box-shadow: 0 6px 22px rgba(251, 188, 5, 0.3);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.cs-showcase-cta-btn:hover {
    background: #e5a700;
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(251, 188, 5, 0.45);
}

@media (max-width: 992px) {
    .cs-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    .cs-showcase-title {
        font-size: 1.9rem;
    }
}

@media (max-width: 640px) {
    .cs-showcase-grid {
        grid-template-columns: 1fr;
    }
    .cs-showcase-title {
        font-size: 1.55rem;
    }
    .cs-showcase-section {
        padding: 40px 16px;
    }
}


/* ======================================================================
   OTTIMIZZAZIONE PER MONITOR GRANDI ED EXTRA-WIDE (SCHERMI 32", 1440p, 4K)
   ====================================================================== */
@media (min-width: 1600px) {
    .metodo-heading,
    .chi-sono-heading,
    .metodo-content,
    .chi-sono-content,
    .counter-container,
    .cs-showcase-container {
        max-width: 1680px;
    }
    .video-wrapper {
        max-width: 1500px;
    }
    .metodo-paragraphs p,
    .chi-sono-text p {
        font-size: 1.04rem;
        line-height: 1.62;
    }
    .metodo-heading,
    .chi-sono-heading {
        font-size: 2.7rem;
    }
    .cs-showcase-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 2000px) {
    .metodo-heading,
    .chi-sono-heading,
    .metodo-content,
    .chi-sono-content,
    .counter-container,
    .cs-showcase-container {
        max-width: 1820px;
    }
    .video-wrapper {
        max-width: 1600px;
    }
    .metodo-image {
        width: 38%;
        max-width: 660px;
    }
    .chi-sono-image {
        width: 36%;
        max-width: 620px;
    }
    .metodo-paragraphs p,
    .chi-sono-text p {
        font-size: 1.08rem;
        line-height: 1.65;
    }
    .metodo-heading,
    .chi-sono-heading {
        font-size: 2.9rem;
    }
    .cs-showcase-title {
        font-size: 2.7rem;
    }
}


/* ======================================================================

/* ======================================================================
   SEZIONE MODULO CONTATTI (#contattaci) & THANK YOU PAGE
   Design coerente: Dark #121212, Card Grafite #1a1a1a, Dettagli Blue #0000ff
   ====================================================================== */
#contattaci {
    scroll-margin-top: 100px;
}

.contact-section {
    padding: 75px 40px 85px;
    background-color: #121212;
    border-top: 1px solid #222222;
    border-bottom: 1px solid #222222;
}

.contact-container {
    max-width: 960px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 36px;
}

.contact-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    line-height: 1;
    gap: 8px;
    background: #1c1c1c;
    color: #e0e0e0;
    border: 1px solid #333333;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
    box-sizing: border-box;
}

.contact-badge i {
    color: #0000ff;
    font-size: 0.95rem;
}

.contact-title {
    color: #ffffff;
    font-size: 2.3rem;
    font-weight: 800;
    margin: 0 0 14px;
    line-height: 1.2;
}

.contact-subtitle {
    color: #a0a0a0;
    font-size: 1.02rem;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 760px;
}

.contact-subtitle a {
    color: #ffffff;
    text-decoration: underline;
    transition: color 0.2s;
}

.contact-subtitle a:hover {
    color: #0000ff;
}

.contact-card {
    background-color: #1a1a1a;
    border: 1px solid #2d2d2d;
    border-radius: 14px;
    padding: 42px 48px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-label {
    color: #e0e0e0;
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-label .req {
    color: #ef4444;
}

.form-label .optional {
    color: #71717a;
    font-weight: 400;
    font-size: 0.8rem;
    margin-left: 4px;
}

.form-input,
.form-textarea {
    width: 100%;
    box-sizing: border-box;
    background-color: #121212;
    border: 1.5px solid #333333;
    border-radius: 8px;
    color: #ffffff;
    font-family: 'Manrope', sans-serif;
    font-size: 0.98rem;
    padding: 13px 16px;
    transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #0000ff;
    box-shadow: 0 0 0 3px rgba(0, 0, 255, 0.25);
    background-color: #151515;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #666666;
}

.form-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 4px;
    text-align: left;
}

.form-checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    cursor: pointer;
    accent-color: #0000ff;
    flex-shrink: 0;
}

.form-checkbox-label {
    color: #9ca3af;
    font-size: 0.88rem;
    line-height: 1.5;
    cursor: pointer;
}

.form-checkbox-label a {
    color: #e0e0e0;
    text-decoration: underline;
}

.form-checkbox-label a:hover {
    color: #ffffff;
}

.contact-submit-wrapper {
    text-align: center;
    margin-top: 8px;
}

.contact-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 36px;
    background-color: #ffffff;
    color: #121212;
    border: 3px solid #0000ff;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1.05rem;
    font-family: 'Manrope', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.contact-submit-btn:hover:not(:disabled) {
    background-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 255, 0.25);
}

.contact-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.spin-icon {
    display: inline-block;
    animation: contactSpin 1s linear infinite;
}

@keyframes contactSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.contact-trust-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #282828;
}

.contact-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a0a0a0;
    font-size: 0.88rem;
    font-weight: 600;
}

.contact-trust-item i {
    color: #0000ff;
    font-size: 1rem;
}

.contact-alert {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: left;
}

.contact-alert.error {
    background-color: rgba(239, 68, 68, 0.12);
    border: 1px solid #ef4444;
    color: #fca5a5;
}

.contact-alert.success {
    background-color: rgba(34, 197, 94, 0.12);
    border: 1px solid #22c55e;
    color: #86efac;
}

/* THANK YOU PAGE STYLING */
.thankyou-wrapper {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 80px;
    background-color: #121212;
}

.thankyou-card {
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
    background-color: #1a1a1a;
    border: 1px solid #2d2d2d;
    border-radius: 14px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
}

.thankyou-icon-wrapper {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background-color: rgba(0, 0, 255, 0.12);
    border: 2px solid #0000ff;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
}

.thankyou-title {
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 14px;
}

.thankyou-text {
    color: #a0a0a0;
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 auto 30px;
}

.thankyou-timeline {
    text-align: left;
    margin-bottom: 35px;
}

.thankyou-timeline-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.thankyou-timeline-title i {
    color: #0000ff;
}

.thankyou-steps {
    list-style: none;
    padding: 20px;
    margin: 0;
    background-color: #141414;
    border: 1px solid #262626;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}

.thankyou-step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: #d4d4d8;
    line-height: 1.5;
}

.thankyou-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #0000ff;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.thankyou-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-thankyou-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    background-color: #ffffff;
    color: #121212 !important;
    border: 3px solid #0000ff;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-thankyou-primary:hover {
    background-color: #e0e0e0;
}

.btn-thankyou-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    background-color: transparent;
    color: #ffffff !important;
    border: 2px solid #444444;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.btn-thankyou-secondary:hover {
    border-color: #ffffff;
}

@media (max-width: 768px) {
    .contact-card {
        padding: 30px 20px;
    }
    .form-row-2col {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .contact-title {
        font-size: 1.8rem;
    }
    .contact-trust-row {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    .thankyou-card {
        padding: 35px 20px;
    }
    .thankyou-title {
        font-size: 1.7rem;
    }
}

/* Anti-Spam Decoy Trap (Offscreen reale) */
.form-decoy-wrap {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
    z-index: -100 !important;
}


/* ======================================================================
   FOOTER 3-COLUMN LAYOUT & REVIEWS SUMMARY (FIXED & RESPONSIVE)
   ====================================================================== */
footer,
footer *,
.footer-top-grid,
.footer-top-grid * {
    box-sizing: border-box !important;
}

footer {
    width: 100% !important;
    max-width: 100% !important;
    padding: 45px 30px 24px 30px !important;
    background-color: #121212;
    border-top: 1px solid #282828 !important;
    border-bottom: 1px solid #282828 !important;
    text-align: left;
    overflow-x: hidden !important;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.15fr 1.05fr 1.15fr;
    gap: 32px;
    max-width: 1240px;
    margin: 0 auto 35px auto;
    align-items: start;
    text-align: left;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-logo img {
    max-height: 40px;
    width: auto;
    height: auto;
    margin-bottom: 14px;
}

.footer-brand-desc {
    color: #94a3b8;
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.footer-brand-contact {
    margin-top: 4px;
}

.footer-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fbbc05 !important;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-contact-link:hover {
    color: #ffffff !important;
    transform: translateX(3px);
}

.footer-col-title {
    margin: 0 0 16px 0;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fbbc05;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}


.footer-links-list li a {
    color: #cbd5e1 !important;
    font-size: 0.92rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links-list li a i {
    font-size: 0.75rem;
    color: #fbbc05;
}

.footer-links-list li a:hover {
    color: #ffffff !important;
    transform: translateX(4px);
}

.footer-google-card {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    width: 100%;
    max-width: 100%;
}

.footer-gr-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-gr-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.footer-gr-brand-text strong {
    color: #ffffff;
    font-size: 0.92rem;
}

.footer-gr-brand-text span {
    color: #94a3b8;
    font-size: 0.75rem;
}

.footer-gr-rating-block {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.footer-gr-score {
    font-size: 2.1rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.footer-gr-stars-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-gr-stars {
    color: #fbbc05;
    font-size: 1rem;
    letter-spacing: 2px;
    line-height: 1;
}

.footer-gr-reviews-count {
    color: #94a3b8;
    font-size: 0.78rem;
}

.footer-gr-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-gr-btn {
    flex: 1 1 120px;
    min-width: 110px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
}

.footer-gr-btn-view {
    background: #1a73e8;
    color: #ffffff !important;
}

.footer-gr-btn-view:hover {
    background: #1557b0;
    color: #ffffff !important;
}

.footer-gr-btn-write {
    background: #27272a;
    color: #e2e8f0 !important;
    border: 1px solid #3f3f46;
}

.footer-gr-btn-write:hover {
    background: #3f3f46;
    color: #ffffff !important;
}


.footer-cs-block {
    margin-top: 18px;
    width: 100%;
}

.footer-cs-block .footer-col-title {
    margin-bottom: 10px;
}

.footer-cs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 16px;
    background: #fbbc05;
    color: #121212 !important;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(251, 188, 5, 0.2);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.footer-cs-btn:hover {
    background: #ffffff;
    color: #121212 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.25);
}

.footer-cs-btn i {
    font-size: 0.95rem;
    color: #121212;
}

.footer-google-card {
    display: block;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.footer-google-card:hover {
    border-color: #3f3f46;
    transform: translateY(-1px);
}

.footer-divider {
    height: 1px;
    background: #27272a;
    max-width: 1200px;
    margin: 0 auto 24px auto;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-bottom p {
    margin: 6px 0;
    color: #94a3b8;
    font-size: 0.88rem;
}

.footer-bottom p a {
    color: #e2e8f0;
}

.footer-bottom p a:hover {
    color: #fbbc05;
}

@media (max-width: 1100px) and (min-width: 769px) {
    .footer-top-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px 40px;
    }
}

@media (max-width: 768px) {
    footer {
        padding: 30px 16px 20px 16px !important;
    }
    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: left;
    }
    .footer-col-brand,
    .footer-col-services,
    .footer-col-seo-geo,
    .footer-col-reviews {
        width: 100%;
        max-width: 100%;
    }
}



/* ======================================================================
   MENU SEO A TENDINA (desktop) + voci annidate (mobile)
   ====================================================================== */
.desktop-nav .nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 30px;
}

.desktop-nav .nav-dropdown > a.nav-dropdown-toggle {
    margin-left: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.desktop-nav .nav-caret {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 0.25s ease;
}

.desktop-nav .nav-dropdown:hover .nav-caret,
.desktop-nav .nav-dropdown:focus-within .nav-caret {
    transform: rotate(180deg);
}

.desktop-nav .nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    min-width: 260px;
    padding: 8px;
    background-color: #1a1a1a;
    border: 1px solid #2f2f2f;
    border-radius: 10px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1100;
}

/* ponte invisibile: evita che la tendina si chiuda muovendo il mouse dal link al pannello */
.desktop-nav .nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
}

.desktop-nav .nav-dropdown:hover .nav-dropdown-menu,
.desktop-nav .nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.desktop-nav .nav-dropdown-menu a {
    display: block;
    margin-left: 0;
    padding: 11px 14px;
    border-radius: 6px;
    white-space: nowrap;
}

.desktop-nav .nav-dropdown-menu a::after {
    display: none !important;
}

.desktop-nav .nav-dropdown-menu a:hover {
    background-color: #262626;
    color: #ffffff;
}

/* mobile: gruppo SEO con le due pagine sotto */
.mobile-nav .mobile-nav-group {
    display: block;
    padding: 15px 20px 6px;
    color: #8a8a8a;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mobile-nav .mobile-nav-group.active {
    color: #fbbc05;
}

.mobile-nav a.sub {
    margin-left: 20px;
    padding: 10px 20px 10px 16px;
    font-size: 1.1rem;
    border-left: 2px solid #333;
}

/* ======================================================================
   THEME TOGGLE SWITCH & LIGHT MODE SYSTEM (COMPLETE & ULTRA-PRECISE)
   ====================================================================== */

/* ======================================================================
   IPHONE / iOS NATIVE SWITCH TOGGLE (Dark / Light Mode)
   ====================================================================== */

@media (min-width: 769px) {
    .desktop-nav {
        display: flex;
        align-items: center;
    }
}

/* Base button reset */
.theme-toggle-btn {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 0 0 26px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    outline: none !important;
    flex-shrink: 0 !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
}

/* iOS Pill Track (51px x 31px) */
.theme-toggle-track {
    position: relative;
    width: 51px;
    height: 31px;
    background-color: #334155;
    border-radius: 9999px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    padding: 2px;
    transition: background-color 0.3s cubic-bezier(0.25, 0.1, 0.25, 1),
                border-color 0.3s cubic-bezier(0.25, 0.1, 0.25, 1),
                box-shadow 0.3s ease;
    border: 1.5px solid #475569;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

.theme-toggle-btn:hover .theme-toggle-track {
    border-color: #64748b;
    background-color: #3b4b61;
}

/* iOS Circular Knob (25px x 25px) */
.theme-toggle-thumb {
    position: relative;
    width: 25px;
    height: 25px;
    background-color: #ffffff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.28), 0 1px 2px rgba(0, 0, 0, 0.18);
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1),
                background-color 0.2s ease,
                box-shadow 0.25s ease;
    transform: translateX(0);
}

.theme-toggle-thumb i {
    font-size: 12px;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.theme-toggle-thumb .icon-moon {
    color: #1e293b;
    display: inline-flex !important;
}

.theme-toggle-thumb .icon-sun {
    color: #d97706;
    display: none !important;
}

/* Switch Mobile Drawer */
.mobile-theme-wrap {
    margin-top: 22px;
    padding: 16px 0 0;
    border-top: 1px solid #252c3f;
    display: flex;
    justify-content: center;
    align-items: center;
}

.theme-toggle-btn-mobile {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    width: auto !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.theme-toggle-btn-mobile:active {
    transform: scale(0.99);
}

.theme-mobile-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #e2e8f0;
}

/* ======================================================================
   LIGHT THEME OVERRIDES (.light-theme / html.light-theme / body.light-theme)
   Pieno contrasto, nessuna sezione scura residua, accessibilità AAA/AA
   ====================================================================== */
html.light-theme,
html.light-theme body,
body.light-theme,
.light-theme {
    background-color: #f8fafc !important;
    color: #1e293b !important;
}

/* 1. Header & Navigation */
.light-theme header {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
}

.light-theme .logo a {
    color: #0f172a !important;
}

.light-theme .desktop-nav a {
    color: #334155 !important;
}

.light-theme .desktop-nav a:hover {
    color: #0f172a !important;
}

.light-theme .desktop-nav a::after {
    background-color: #2563eb !important;
}

.light-theme .desktop-nav .nav-caret {
    border-top-color: #334155 !important;
}

.light-theme .desktop-nav .nav-dropdown-menu {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08) !important;
}

.light-theme .desktop-nav .nav-dropdown-menu a {
    color: #334155 !important;
}

.light-theme .desktop-nav .nav-dropdown-menu a:hover {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

.light-theme .mobile-nav {
    background-color: #ffffff !important;
    border-right: 1px solid #e2e8f0 !important;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.08) !important;
}

.light-theme .close-menu-btn {
    color: #64748b !important;
}

.light-theme .close-menu-btn:hover {
    color: #0f172a !important;
}

.light-theme .mobile-nav a.mobile-nav-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    color: #0f172a !important;
}

.light-theme .mobile-nav a.mobile-nav-card:hover,
.light-theme .mobile-nav a.mobile-nav-card:active {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    transform: translateX(3px);
}

/* Linguette Light Theme */
.light-theme .mobile-nav a.mobile-nav-blue::before { background-color: #2563eb !important; }
.light-theme .mobile-nav a.mobile-nav-blue::after { color: #2563eb !important; }

.light-theme .mobile-nav a.mobile-nav-green::before { background-color: #10b981 !important; }
.light-theme .mobile-nav a.mobile-nav-green::after { color: #10b981 !important; }

.light-theme .mobile-nav a.mobile-nav-yellow::before { background-color: #d97706 !important; }
.light-theme .mobile-nav a.mobile-nav-yellow::after { color: #d97706 !important; }

/* Plain Links Light Theme (senza linguetta e senza box) */
.light-theme .mobile-nav a.mobile-nav-plain {
    color: #334155 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.light-theme .mobile-nav a.mobile-nav-plain:hover,
.light-theme .mobile-nav a.mobile-nav-plain:active {
    color: #0f172a !important;
    background: #f1f5f9 !important;
    transform: translateX(3px);
}

.light-theme .hamburger-menu .bar {
    background-color: #0f172a !important;
}

.light-theme .theme-toggle-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.light-theme .theme-toggle-track {
    background-color: #34c759 !important;
    border-color: #2fb350 !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15) !important;
}

.light-theme .theme-toggle-btn:hover .theme-toggle-track {
    background-color: #2fb350 !important;
}

.light-theme .theme-toggle-thumb {
    transform: translateX(20px) !important;
    background-color: #ffffff !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22), 0 1px 2px rgba(0, 0, 0, 0.12) !important;
}

.light-theme .theme-toggle-thumb .icon-moon {
    display: none !important;
}

.light-theme .theme-toggle-thumb .icon-sun {
    display: inline-flex !important;
    color: #f59e0b !important;
}

.light-theme .mobile-theme-wrap {
    border-top: 1px solid #e2e8f0 !important;
}

.light-theme .theme-toggle-btn-mobile {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.light-theme .theme-mobile-label {
    color: #0f172a !important;
}

/* 2. Global Headings & Typography */
.light-theme h1,
.light-theme h2,
.light-theme h3,
.light-theme h4,
.light-theme h5,
.light-theme h6,
.light-theme .hero-text h1,
.light-theme .hero-text h2,
.light-theme .hero-text .h3-title,
.light-theme .metodo-heading,
.light-theme .chi-sono-heading,
.light-theme .titolo-calltoaction,
.light-theme .pillar-hero h1,
.light-theme .pillar-section-header h2,
.light-theme .pillar-service-card h3,
.light-theme .pillar-step-card h3,
.light-theme .pillar-case-body h3,
.light-theme .hub-hero h1,
.light-theme .hub-pillar-title,
.light-theme .cs-card-title,
.light-theme .cs-detail-title,
.light-theme .cs-section-header h2,
.light-theme .cs-cta-section h2,
.light-theme .cs-pillar-title,
.light-theme .cs-related-heading,
.light-theme .cs-showcase-title,
.light-theme .cs-showcase-card-title,
.light-theme .cs-showcase-card-title a,
.light-theme .legal-hero h1,
.light-theme .legal-card-body h2,
.light-theme .legal-action-box h3,
.light-theme .legal-cat-header h4,
.light-theme .thankyou-title,
.light-theme .thankyou-timeline-title,
.light-theme .metodo-results-header h3,
.light-theme #faq h2,
.light-theme .faq-question,
.light-theme .contact-title,
.light-theme .footer-col-title {
    color: #0f172a !important;
}

.light-theme .legal-hero h1 span {
    color: #2563eb !important;
}

.light-theme p,
.light-theme .hero-text p,
.light-theme .metodo-paragraphs p,
.light-theme .pillar-lead,
.light-theme .pillar-service-card p,
.light-theme .pillar-step-card p,
.light-theme .pillar-case-body p,
.light-theme .pillar-service-list li,
.light-theme .hub-hero .lead,
.light-theme .cs-card-desc,
.light-theme .cs-detail-lead,
.light-theme .cs-section-content,
.light-theme .cs-cta-section p,
.light-theme .cs-pillar-desc,
.light-theme .cs-quote-text,
.light-theme .cs-showcase-card-desc,
.light-theme .legal-lead,
.light-theme .legal-card-body,
.light-theme .legal-card-body p,
.light-theme .legal-action-box p,
.light-theme .thankyou-text,
.light-theme .metodo-case-desc,
.light-theme .faq-answer,
.light-theme .contact-subtitle {
    color: #334155 !important;
}

.light-theme strong,
.light-theme .metodo-case-desc strong,
.light-theme .metodo-results-footer strong,
.light-theme .pillar-trust-item strong,
.light-theme .cs-section-content strong,
.light-theme .cs-meta-cell .meta-val,
.light-theme .cs-kpi-highlight-card .kpi-label,
.light-theme .cs-callout-title,
.light-theme .cs-quote-author,
.light-theme .legal-details-list strong,
.light-theme .faq-answer strong {
    color: #0f172a !important;
}

/* Secondary muted texts & subtitles */
.light-theme .pillar-trust-item span,
.light-theme .pillar-section-header p,
.light-theme .pillar-kpi-item .kpi-lbl,
.light-theme .cs-breadcrumb-nav,
.light-theme .breadcrumbs-nav,
.light-theme .cs-breadcrumb-nav a,
.light-theme .breadcrumbs-nav a,
.light-theme .cs-card-client,
.light-theme .cs-card-kpi-item .kpi-lbl,
.light-theme .cs-meta-cell .meta-lbl,
.light-theme .cs-stack-item .stack-cat,
.light-theme .cs-quote-role,
.light-theme .cs-showcase-subtitle,
.light-theme .contact-trust-item,
.light-theme .counter-text,
.light-theme .slide h3 {
    color: #475569 !important;
    font-weight: 600 !important;
}

/* In-body Links */
.light-theme .hero-text p a,
.light-theme .metodo-paragraphs p a,
.light-theme .metodo-text a,
.light-theme .chi-sono-text a,
.light-theme .chi-sono-paragraphs p a,
.light-theme .faq-answer a,
.light-theme .pillar-lead a,
.light-theme .cs-section-content a,
.light-theme .contact-subtitle a {
    color: #2563eb !important;
    text-decoration: underline !important;
}

.light-theme .hero-text p a:hover,
.light-theme .metodo-paragraphs p a:hover,
.light-theme .metodo-text a:hover,
.light-theme .chi-sono-text a:hover,
.light-theme .chi-sono-paragraphs p a:hover,
.light-theme .faq-answer a:hover,
.light-theme .pillar-lead a:hover,
.light-theme .cs-section-content a:hover,
.light-theme .contact-subtitle a:hover {
    color: #1d4ed8 !important;
}

/* 3. Homepage Sections & Cards */
.light-theme #hero {
    background-color: transparent !important;
}

.light-theme .counter-container,
.light-theme .portfolio-container,
.light-theme .review-container,
.light-theme .logo-slider {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

.light-theme #counter-number {
    color: #2563eb !important;
}

.light-theme #counter-caption {
    color: #0f172a !important;
}

.light-theme .counter-year {
    color: #2563eb !important;
}

.light-theme .metodo-results-box {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05) !important;
}

.light-theme .metodo-case-card {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

.light-theme .logo-slider::before {
    background: linear-gradient(to right, #f8fafc, transparent) !important;
}

.light-theme .logo-slider::after {
    background: linear-gradient(to left, #f8fafc, transparent) !important;
}

/* Showcase Casi Studio Homepage */
.light-theme .cs-showcase-section {
    background-color: #f1f5f9 !important;
    border-top: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.light-theme .cs-showcase-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
}

.light-theme .cs-showcase-stat {
    color: #2563eb !important;
}

.light-theme .cs-showcase-card-footer {
    border-top: 1px solid #e2e8f0 !important;
}

.light-theme .cs-showcase-btn {
    color: #2563eb !important;
}

.light-theme .cs-showcase-btn:hover {
    color: #1d4ed8 !important;
}

.light-theme .cs-showcase-tag {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
}

/* FAQ Accordion */
.light-theme .faq-item {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}

.light-theme .faq-item[open] {
    background-color: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

.light-theme .faq-question::after {
    color: #64748b !important;
}

.light-theme .faq-item[open] .faq-question::after {
    color: #0f172a !important;
}

/* 4. Section CTA (#cta) */
.light-theme #cta {
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.light-theme #cta .titolo-calltoaction {
    color: #0f172a !important;
    text-decoration-color: #2563eb !important;
}

.light-theme #cta p {
    color: #475569 !important;
}

.light-theme .cta-button {
    background-color: #0f172a !important;
    color: #ffffff !important;
    border: 2px solid #0f172a !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12) !important;
    transition: all 0.25s ease !important;
}

.light-theme .cta-button:hover {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}

/* 5. Pillar Pages (SEO, eCommerce PrestaShop, AI) */
.light-theme .breadcrumbs-wrapper {
    background-color: #f1f5f9 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.light-theme .breadcrumbs-nav .separator {
    color: #94a3b8 !important;
}

.light-theme .breadcrumbs-nav .current,
.light-theme .cs-breadcrumb-nav .current {
    color: #0f172a !important;
}

.light-theme .pillar-hero {
    border-bottom: 1px solid #e2e8f0 !important;
}

.light-theme .pillar-section {
    border-bottom: 1px solid #e2e8f0 !important;
}

.light-theme .pillar-step-num {
    color: #2563eb !important;
    opacity: 0.95 !important;
}

.light-theme .pillar-trust-item,
.light-theme .pillar-service-card,
.light-theme .pillar-step-card,
.light-theme .pillar-case-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
}

.light-theme .pillar-service-list {
    border-top: 1px solid #e2e8f0 !important;
}

.light-theme .pillar-case-img {
    background: #f1f5f9 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.light-theme .pillar-case-kpis {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

/* 6. Casi Studio Hub & Detail Pages */
.light-theme .hub-hero-badge {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

.light-theme .hub-kpi-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

.light-theme .hub-kpi-val {
    color: #2563eb !important;
}

.light-theme .hub-kpi-lbl {
    color: #0f172a !important;
}

.light-theme .hub-filter-btn {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}

.light-theme .hub-filter-btn:hover,
.light-theme .hub-filter-btn.active {
    background: #fbbc05 !important;
    color: #121212 !important;
    border-color: #fbbc05 !important;
}

.light-theme .hub-pillar-header {
    border-bottom: 1px solid #e2e8f0 !important;
}

.light-theme .hub-pillar-title i {
    color: #2563eb !important;
}

.light-theme .hub-pillar-link {
    color: #2563eb !important;
}

.light-theme .hub-pillar-link:hover {
    color: #1d4ed8 !important;
}

.light-theme .cs-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
}

.light-theme .cs-card-img-wrap {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.light-theme .cs-card-pill {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.light-theme .cs-card-kpis {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

.light-theme .cs-project-meta-box,
.light-theme .cs-section,
.light-theme .cs-cta-section {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

.light-theme .cs-section-header {
    border-bottom: 1px solid #e2e8f0 !important;
}

.light-theme .cs-section-icon {
    background: rgba(37, 99, 235, 0.1) !important;
    color: #2563eb !important;
}

.light-theme .cs-section-icon i {
    color: #2563eb !important;
}

.light-theme .cs-featured-image img {
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08) !important;
}

.light-theme .cs-kpi-highlight-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
}

.light-theme .cs-callout {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 4px solid #2563eb !important;
}

.light-theme .cs-callout-title i {
    color: #2563eb !important;
}

.light-theme .cs-table-wrap {
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
}

.light-theme .cs-table th {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-bottom: 2px solid #cbd5e1 !important;
}

.light-theme .cs-table td {
    color: #334155 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.light-theme .cs-table tr:hover td {
    background: #f8fafc !important;
}

.light-theme .cs-stack-item {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

.light-theme .cs-stack-item .stack-detail {
    color: #334155 !important;
}

/* Quote box nei casi studio */
.light-theme .cs-quote-box {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06) !important;
}

.light-theme .cs-quote-box .quote-icon {
    color: #2563eb !important;
    opacity: 0.35 !important;
}

.light-theme .cs-quote-text {
    color: #1e293b !important;
}

.light-theme .cs-quote-author {
    color: #0f172a !important;
}

.light-theme .cs-quote-role {
    color: #64748b !important;
}

.light-theme .cs-tag {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}

.light-theme .cs-tag.highlight {
    background: rgba(37, 99, 235, 0.08) !important;
    border-color: #2563eb !important;
    color: #1d4ed8 !important;
}

.light-theme .cs-pillar-banner {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

.light-theme .cs-pillar-tag {
    color: #2563eb !important;
}

.light-theme .cs-cta-phone a {
    color: #2563eb !important;
}

/* 7. Form Contatti (#contattaci) */
.light-theme .contact-section,
.light-theme #contattaci {
    background-color: #f1f5f9 !important;
    border-top: 1px solid #e2e8f0 !important;
}

.light-theme .contact-badge {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

.light-theme .contact-card {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06) !important;
}

.light-theme .contact-trust-row {
    border-top: 1px solid #e2e8f0 !important;
}

.light-theme .form-label,
.light-theme .contact-label {
    color: #1e293b !important;
}

.light-theme .form-input,
.light-theme .form-textarea,
.light-theme .contact-input,
.light-theme .contact-textarea,
.light-theme .contact-select,
.light-theme input[type="text"],
.light-theme input[type="email"],
.light-theme input[type="tel"],
.light-theme textarea,
.light-theme select {
    background-color: #f8fafc !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}

.light-theme .form-input:focus,
.light-theme .form-textarea:focus,
.light-theme .contact-input:focus,
.light-theme .contact-textarea:focus,
.light-theme .contact-select:focus {
    border-color: #2563eb !important;
    background-color: #ffffff !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

.light-theme .form-input::placeholder,
.light-theme .form-textarea::placeholder {
    color: #94a3b8 !important;
}

.light-theme .form-checkbox-label {
    color: #475569 !important;
}

.light-theme .form-checkbox-label a {
    color: #2563eb !important;
}

.light-theme .contact-submit-btn {
    background-color: #0f172a !important;
    color: #ffffff !important;
    border: 1px solid #0f172a !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25) !important;
}

.light-theme .contact-submit-btn:hover:not(:disabled) {
    background-color: #1e293b !important;
    color: #ffffff !important;
}

/* 8. Footer in Light Theme */
.light-theme footer {
    background-color: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.light-theme .footer-col-title {
    color: #0f172a !important;
}

.light-theme .footer-brand-desc {
    color: #475569 !important;
}

.light-theme .footer-contact-link {
    color: #2563eb !important;
}

.light-theme .footer-contact-link:hover {
    color: #1d4ed8 !important;
}

.light-theme .footer-links-list li a {
    color: #334155 !important;
}

.light-theme .footer-links-list li a:hover {
    color: #0f172a !important;
}

.light-theme .footer-google-card {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
}

.light-theme .footer-gr-brand-text strong {
    color: #0f172a !important;
}

.light-theme .footer-gr-brand-text span {
    color: #64748b !important;
}

.light-theme .footer-gr-score {
    color: #0f172a !important;
}

.light-theme .footer-gr-stars {
    color: #d97706 !important;
}

.light-theme .footer-gr-reviews-count {
    color: #64748b !important;
}

.light-theme .footer-cs-btn {
    background: #fbbc05 !important;
    color: #0f172a !important;
}

.light-theme .footer-cs-btn:hover {
    background: #e0a800 !important;
    color: #0f172a !important;
}

.light-theme .footer-divider {
    background: #e2e8f0 !important;
}

.light-theme .footer-bottom p {
    color: #64748b !important;
}

.light-theme .footer-bottom p a {
    color: #0f172a !important;
}

.light-theme .footer-bottom p a:hover {
    color: #2563eb !important;
}

.light-theme .footer-partner-sites {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    border-top: 1px solid #e2e8f0 !important;
}

.light-theme .footer-partner-sites a {
    color: #2563eb !important;
}

/* 9. Cookie Banner & Modal GDPR */
.light-theme .fg-cookie-banner {
    background: rgba(255, 255, 255, 0.98) !important;
    border-top: 1px solid #cbd5e1 !important;
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08) !important;
}

.light-theme .fg-cookie-banner-text h3 {
    color: #0f172a !important;
}

.light-theme .fg-cookie-banner-text p {
    color: #334155 !important;
}

.light-theme .fg-cookie-banner-text a {
    color: #2563eb !important;
}

.light-theme .fg-btn-secondary {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

.light-theme .fg-btn-secondary:hover {
    background: #cbd5e1 !important;
}

.light-theme .fg-cookie-modal-dialog {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15) !important;
}

.light-theme .fg-cookie-modal-header {
    border-bottom: 1px solid #e2e8f0 !important;
}

.light-theme .fg-cookie-modal-header h3 {
    color: #0f172a !important;
}

.light-theme .fg-cookie-modal-close {
    color: #64748b !important;
}

.light-theme .fg-cookie-modal-close:hover {
    color: #0f172a !important;
}

.light-theme .fg-cookie-modal-body p {
    color: #334155 !important;
}

.light-theme .fg-ck-pref-card {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

.light-theme .fg-ck-pref-info h4 {
    color: #0f172a !important;
}

.light-theme .fg-ck-pref-info p {
    color: #64748b !important;
}

.light-theme .fg-cookie-modal-footer {
    border-top: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
}

/* 10. Legal Pages & Modals / Popups */
.light-theme .legal-card-body {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

.light-theme .legal-nav-pill-group a {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}

.light-theme .legal-nav-pill-group a:hover,
.light-theme .legal-nav-pill-group a.active {
    background: #fbbc05 !important;
    color: #121212 !important;
}

.light-theme .legal-info-box,
.light-theme .legal-cookie-cat,
.light-theme .legal-right-item {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

.light-theme .legal-details-list code {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.light-theme .legal-table th {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

.light-theme .legal-table td {
    color: #334155 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.light-theme .popup-content {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    color: #1e293b !important;
}

.light-theme .close-btn {
    color: #64748b !important;
}

.light-theme .close-btn:hover {
    color: #0f172a !important;
}

/* 11. Thank You page */
.light-theme .thankyou-wrapper {
    background-color: #f8fafc !important;
}

.light-theme .thankyou-card {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06) !important;
}

.light-theme .thankyou-icon-wrapper {
    background: rgba(37, 99, 235, 0.1) !important;
}

.light-theme .thankyou-step-num {
    background-color: #2563eb !important;
    color: #ffffff !important;
}

.light-theme .thankyou-steps {
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

.light-theme .thankyou-step-item {
    color: #334155 !important;
}

.light-theme .btn-thankyou-primary {
    background-color: #0f172a !important;
    color: #ffffff !important;
}

.light-theme .btn-thankyou-secondary {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

/* Brand Slider Mobile Readability Fix */
@media (max-width: 768px) {
    .logo-slider {
        padding-top: 28px !important;
        padding-bottom: 24px !important;
    }
    .logo-slider::before,
    .logo-slider::after {
        width: 32px !important;
    }
    .slide {
        width: 240px !important;
        padding: 0 12px !important;
    }
    .slide img {
        height: 75px !important;
        margin: 0 auto 10px !important;
    }
    .slide h3 {
        font-size: 0.82rem !important;
        line-height: 1.45 !important;
        padding: 0 4px !important;
    }
}

/* Mobile Navigation & Hamburger Guard */
@media (max-width: 768px) {
    .desktop-nav {
        display: none !important;
    }
    .hamburger-menu {
        display: block !important;
    }
}

/* ======================================================================
   MOBILE TYPOGRAPHY, UX & SEO ENHANCEMENTS
   ====================================================================== */

/* 1. Prevent iOS Safari auto-zoom on input focus */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="url"],
    input[type="number"],
    input[type="search"],
    textarea,
    select {
        font-size: 16px !important;
        line-height: 1.4 !important;
    }
}

/* 2. Micro-badges, tags and pills (minimum 12.5px for Google Mobile-First Indexing) */
.metodo-case-badge span {
    font-size: 0.78rem !important; /* ~12.5px instead of 10.5px */
    letter-spacing: 0.04em !important;
}

.cs-showcase-tag {
    font-size: 0.78rem !important; /* ~12.5px instead of 11.8px */
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
}

.cs-card-pill {
    font-size: 0.78rem !important; /* ~12.5px instead of 11.5px */
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
}

/* 3. Heading line-heights on mobile to avoid cramped lines */
@media (max-width: 768px) {
    h1 {
        line-height: 1.25 !important;
    }
    h2 {
        line-height: 1.28 !important;
    }
    h3 {
        line-height: 1.34 !important;
    }
    .cs-showcase-card-title h3,
    .cs-showcase-card-title a {
        line-height: 1.3 !important;
    }
}


/* ======================================================================
   SEZIONE SERVIZI DI CONSULENZA IN HOME (4 BOX GRID)
   ====================================================================== */
.home-services-section {
    padding: 75px 20px;
    background-color: #121216;
    border-top: 1px solid #23232c;
    border-bottom: 1px solid #23232c;
}

.home-services-container {
    max-width: 1560px;
    margin: 0 auto;
}

.home-services-header {
    text-align: center;
    margin-bottom: 45px;
}

.home-services-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 32px;
    line-height: 1;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.35);
    color: #60a5fa;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
    box-sizing: border-box;
}

.home-services-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 14px 0;
    line-height: 1.25;
    letter-spacing: -0.4px;
}

.home-services-subtitle {
    font-size: 1.05rem;
    color: #9ca3af;
    max-width: 820px;
    margin: 0 auto;
    line-height: 1.6;
}

.home-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.home-service-card {
    background: #1a1a22;
    border: 1px solid #2c2c38;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.home-service-card:hover {
    transform: translateY(-5px);
    border-color: #3b82f6;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}

.home-service-img-wrap {
    width: 100%;
    height: 205px;
    background: #0f131c;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #282834;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
}

.home-service-img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    border: 1px solid #283144;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-service-card:hover .home-service-img {
    transform: scale(1.04);
}

.home-service-body {
    padding: 22px 20px 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.home-service-tag {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    height: 24px;
    line-height: 1;
    font-size: 0.74rem;
    font-weight: 700;
    color: #60a5fa;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.25);
    padding: 0 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 12px;
}

.home-service-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    line-height: 1.35;
}

.home-service-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.home-service-title a:hover {
    color: #60a5fa;
}

.home-service-desc {
    font-size: 0.92rem;
    line-height: 1.55;
    color: #94a3b8;
    margin: 0 0 18px 0;
    flex-grow: 1;
}

.home-service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 8px 0;
    border-top: 1px solid #282834;
    padding-top: 14px;
}

.home-service-features li {
    font-size: 0.84rem;
    color: #cbd5e1;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.home-service-features li i {
    color: #38bdf8;
    font-size: 0.95rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.home-service-footer {
    padding: 16px 20px;
    border-top: 1px solid #282834;
    background: rgba(20, 20, 28, 0.6);
}

.home-service-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 0.88rem;
    font-weight: 700;
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.home-service-btn i {
    transition: transform 0.2s ease;
}

.home-service-card:hover .home-service-btn {
    color: #93c5fd;
}

.home-service-card:hover .home-service-btn i {
    transform: translateX(4px);
}

/* Light Theme Overrides */
.light-theme .home-services-section,
html.light-theme .home-services-section,
body.light-theme .home-services-section {
    background-color: #f1f5f9 !important;
    border-top: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.light-theme .home-services-title,
html.light-theme .home-services-title,
body.light-theme .home-services-title {
    color: #0f172a !important;
}

.light-theme .home-services-subtitle,
html.light-theme .home-services-subtitle,
body.light-theme .home-services-subtitle {
    color: #475569 !important;
}

.light-theme .home-services-badge,
html.light-theme .home-services-badge,
body.light-theme .home-services-badge {
    background: rgba(37, 99, 235, 0.08) !important;
    border-color: rgba(37, 99, 235, 0.25) !important;
    color: #2563eb !important;
}

.light-theme .home-service-card,
html.light-theme .home-service-card,
body.light-theme .home-service-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
}

.light-theme .home-service-card:hover,
html.light-theme .home-service-card:hover,
body.light-theme .home-service-card:hover {
    border-color: #2563eb !important;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12) !important;
}

.light-theme .home-service-img-wrap,
html.light-theme .home-service-img-wrap,
body.light-theme .home-service-img-wrap {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.light-theme .home-service-tag,
html.light-theme .home-service-tag,
body.light-theme .home-service-tag {
    background: #eff6ff !important;
    border-color: #dbeafe !important;
    color: #2563eb !important;
}

.light-theme .home-service-title a,
html.light-theme .home-service-title a,
body.light-theme .home-service-title a {
    color: #0f172a !important;
}

.light-theme .home-service-title a:hover,
html.light-theme .home-service-title a:hover,
body.light-theme .home-service-title a:hover {
    color: #2563eb !important;
}

.light-theme .home-service-desc,
html.light-theme .home-service-desc,
body.light-theme .home-service-desc {
    color: #475569 !important;
}

.light-theme .home-service-features,
html.light-theme .home-service-features,
body.light-theme .home-service-features {
    border-top-color: #e2e8f0 !important;
}

.light-theme .home-service-features li,
html.light-theme .home-service-features li,
body.light-theme .home-service-features li {
    color: #334155 !important;
}

.light-theme .home-service-features li i,
html.light-theme .home-service-features li i,
body.light-theme .home-service-features li i {
    color: #2563eb !important;
}

.light-theme .home-service-footer,
html.light-theme .home-service-footer,
body.light-theme .home-service-footer {
    border-top-color: #e2e8f0 !important;
    background: #f8fafc !important;
}

.light-theme .home-service-btn,
html.light-theme .home-service-btn,
body.light-theme .home-service-btn {
    color: #2563eb !important;
}

.light-theme .home-service-card:hover .home-service-btn,
html.light-theme .home-service-card:hover .home-service-btn,
body.light-theme .home-service-card:hover .home-service-btn {
    color: #1d4ed8 !important;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    .home-services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

@media (max-width: 768px) {
    .home-services-section {
        padding: 44px 16px !important;
    }

    .home-services-header {
        margin-bottom: 28px !important;
        text-align: center !important;
    }

    .home-services-badge {
        font-size: 0.78rem !important;
        height: 28px !important;
        padding: 0 13px !important;
        margin-bottom: 12px !important;
        letter-spacing: 0.04em !important;
    }

    .home-services-title {
        font-size: 1.55rem !important;
        line-height: 1.28 !important;
        margin-bottom: 10px !important;
        letter-spacing: -0.02em !important;
    }

    .home-services-subtitle {
        font-size: 0.94rem !important;
        line-height: 1.55 !important;
        padding: 0 4px !important;
        margin-bottom: 0 !important;
    }

    .home-services-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Card container */
    .home-service-card {
        border-radius: 16px !important;
        overflow: hidden !important;
        position: relative !important;
        transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    }

    /* Light mode card */
    html.light-theme .home-service-card {
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.03) !important;
    }

    /* Dark mode card */
    html:not(.light-theme) .home-service-card {
        background: #161a26 !important;
        border: 1px solid #282f42 !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
    }

        /* Image showcase non tagliate per mobile */
    .home-service-img-wrap {
        height: 195px !important;
        position: relative !important;
        border-bottom: 1px solid #e2e8f0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 12px !important;
        box-sizing: border-box !important;
    }
    html:not(.light-theme) .home-service-img-wrap {
        border-bottom-color: #242c3f !important;
        background: #0f131c !important;
    }

    .home-service-img {
        width: auto !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
        display: block !important;
        border-radius: 8px !important;
    }

    /* Body area */
    .home-service-body {
        padding: 20px 18px 14px !important;
    }

    /* Tag badge categoria (allineato ai colori del menu: Blu per SEO, Verde per Ecommerce, Giallo per AI) */
    .home-service-tag {
        font-size: 0.74rem !important;
        font-weight: 800 !important;
        letter-spacing: 0.05em !important;
        text-transform: uppercase !important;
        padding: 5px 11px !important;
        border-radius: 6px !important;
        margin-bottom: 10px !important;
        display: inline-flex !important;
        align-items: center !important;
        height: auto !important;
        line-height: 1 !important;
    }

    /* Light Mode Tags */
    html.light-theme .home-services-grid > article:nth-child(1) .home-service-tag {
        color: #2563eb !important;
        background: rgba(37, 99, 235, 0.1) !important;
        border: 1px solid rgba(37, 99, 235, 0.25) !important;
    }
    html.light-theme .home-services-grid > article:nth-child(2) .home-service-tag,
    html.light-theme .home-services-grid > article:nth-child(3) .home-service-tag {
        color: #059669 !important;
        background: rgba(16, 185, 129, 0.1) !important;
        border: 1px solid rgba(16, 185, 129, 0.25) !important;
    }
    html.light-theme .home-services-grid > article:nth-child(4) .home-service-tag {
        color: #d97706 !important;
        background: rgba(245, 158, 11, 0.1) !important;
        border: 1px solid rgba(245, 158, 11, 0.25) !important;
    }

    /* Dark Mode Tags */
    html:not(.light-theme) .home-services-grid > article:nth-child(1) .home-service-tag {
        color: #60a5fa !important;
        background: rgba(59, 130, 246, 0.16) !important;
        border: 1px solid rgba(59, 130, 246, 0.35) !important;
    }
    html:not(.light-theme) .home-services-grid > article:nth-child(2) .home-service-tag,
    html:not(.light-theme) .home-services-grid > article:nth-child(3) .home-service-tag {
        color: #34d399 !important;
        background: rgba(16, 185, 129, 0.16) !important;
        border: 1px solid rgba(16, 185, 129, 0.35) !important;
    }
    html:not(.light-theme) .home-services-grid > article:nth-child(4) .home-service-tag {
        color: #fbbf24 !important;
        background: rgba(245, 158, 11, 0.16) !important;
        border: 1px solid rgba(245, 158, 11, 0.35) !important;
    }

    /* Card Title */
    .home-service-title {
        font-size: 1.22rem !important;
        font-weight: 800 !important;
        line-height: 1.32 !important;
        margin-bottom: 8px !important;
    }

    /* Card Description */
    .home-service-desc {
        font-size: 0.91rem !important;
        line-height: 1.52 !important;
        margin-bottom: 14px !important;
    }

    /* Features List */
    .home-service-features {
        margin: 0 !important;
        padding-top: 14px !important;
        border-top: 1px solid #e2e8f0 !important;
    }
    html:not(.light-theme) .home-service-features {
        border-top-color: #242c3f !important;
    }

    .home-service-features li {
        font-size: 0.86rem !important;
        margin-bottom: 8px !important;
        line-height: 1.4 !important;
        gap: 8px !important;
    }
    .home-service-features li:last-child {
        margin-bottom: 0 !important;
    }

    /* Icone caratteristiche colorate per categoria */
    .home-services-grid > article:nth-child(1) .home-service-features li i {
        color: #2563eb !important;
    }
    .home-services-grid > article:nth-child(2) .home-service-features li i,
    .home-services-grid > article:nth-child(3) .home-service-features li i {
        color: #10b981 !important;
    }
    .home-services-grid > article:nth-child(4) .home-service-features li i {
        color: #f59e0b !important;
    }

    /* Card Footer & Vero Bottone CTA per Mobile */
    .home-service-footer {
        padding: 12px 18px 18px !important;
        background: transparent !important;
        border-top: none !important;
    }

    .home-service-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        width: 100% !important;
        height: 46px !important;
        border-radius: 12px !important;
        font-size: 0.94rem !important;
        font-weight: 700 !important;
        text-decoration: none !important;
        box-sizing: border-box !important;
        transition: transform 0.15s ease, opacity 0.15s ease !important;
    }

    /* Light Mode Button (Colori coerenti col menu) */
    html.light-theme .home-services-grid > article:nth-child(1) .home-service-btn {
        background: #2563eb !important;
        color: #ffffff !important;
        box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28) !important;
    }
    html.light-theme .home-services-grid > article:nth-child(2) .home-service-btn,
    html.light-theme .home-services-grid > article:nth-child(3) .home-service-btn {
        background: #059669 !important;
        color: #ffffff !important;
        box-shadow: 0 4px 14px rgba(5, 150, 105, 0.28) !important;
    }
    html.light-theme .home-services-grid > article:nth-child(4) .home-service-btn {
        background: #d97706 !important;
        color: #ffffff !important;
        box-shadow: 0 4px 14px rgba(217, 119, 6, 0.28) !important;
    }

    /* Dark Mode Button */
    html:not(.light-theme) .home-services-grid > article:nth-child(1) .home-service-btn {
        background: #2563eb !important;
        color: #ffffff !important;
        box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
    }
    html:not(.light-theme) .home-services-grid > article:nth-child(2) .home-service-btn,
    html:not(.light-theme) .home-services-grid > article:nth-child(3) .home-service-btn {
        background: #059669 !important;
        color: #ffffff !important;
        box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35) !important;
    }
    html:not(.light-theme) .home-services-grid > article:nth-child(4) .home-service-btn {
        background: #d97706 !important;
        color: #ffffff !important;
        box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35) !important;
    }

    .home-service-btn:active {
        transform: scale(0.98) !important;
        opacity: 0.95 !important;
    }
}

@media (min-width: 1600px) {
    .home-services-container {
        max-width: 1680px !important;
    }
}


/* Global Safety for Home Services */
.home-services-section {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: clip !important;
    box-sizing: border-box !important;
}

.home-services-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.home-services-grid {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.home-service-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.home-service-img-wrap {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.home-service-img {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    box-sizing: border-box !important;
}

/* Light theme showcase for home services */

.light-theme .home-service-img-wrap,
html.light-theme .home-service-img-wrap,
body.light-theme .home-service-img-wrap {
    background: #f1f5f9 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.light-theme .home-service-img,
html.light-theme .home-service-img,
body.light-theme .home-service-img {
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08) !important;
}

.light-theme .home-service-card:hover .home-service-img,
html.light-theme .home-service-card:hover .home-service-img,
body.light-theme .home-service-card:hover .home-service-img {
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12) !important;
}

/* Quick Nav / In-Page Table of Contents (Pills) */
.pillar-quick-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 28px auto 6px;
    max-width: 960px;
    padding: 0 12px;
}
.quick-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 9999px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #e2e8f0;
    transition: all 0.2s ease;
}
.quick-pill:hover {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(59, 130, 246, 0.5);
    color: #38bdf8;
    transform: translateY(-1px);
}
.quick-pill i {
    font-size: 0.95rem;
    color: #38bdf8;
}
.quick-pill-primary {
    background: #0284c7 !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
}
.quick-pill-primary i {
    color: #ffffff !important;
}
.quick-pill-primary:hover {
    background: #0369a1 !important;
    border-color: #0369a1 !important;
    color: #ffffff !important;
}

/* Light mode adaptation with .light-theme */
body.light-theme .quick-pill,
.light-theme .quick-pill {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #1e293b;
    box-shadow: 0 2px 5px rgba(0,0,0,0.06);
}
body.light-theme .quick-pill:hover,
.light-theme .quick-pill:hover {
    background: #f0f9ff;
    border-color: #0284c7;
    color: #0284c7;
}
body.light-theme .quick-pill-primary,
.light-theme .quick-pill-primary {
    background: #0284c7 !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
}

/* ======================================================================
   BLOG HUB & TECHNICAL ARTICLES SYSTEM (SEO & GEO FIRST)
   ====================================================================== */
.blog-hub-hero {
    padding: 70px 24px 45px 24px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.blog-hub-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.18;
    margin: 18px 0 16px 0;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.blog-hub-hero p {
    font-size: 1.12rem;
    color: #94a3b8;
    line-height: 1.65;
    margin: 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 30px auto 70px auto;
    padding: 0 24px;
}

.blog-card {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: #38bdf8;
    box-shadow: 0 12px 32px rgba(56, 189, 248, 0.15);
}

/* Blog Card Media Image */
.blog-card-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    background-color: #0d1527;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    flex-shrink: 0;
}

.blog-card-media picture,
.blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.blog-card:hover .blog-card-media img {
    transform: scale(1.05);
}

.blog-card-media-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(30, 41, 59, 0.4);
    color: #64748b;
    border: 1.5px dashed rgba(100, 116, 139, 0.35);
}

.blog-card-media-placeholder i {
    font-size: 2.2rem;
    color: #64748b;
}

.blog-card-media-placeholder span {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}


.blog-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    margin-bottom: 16px;
    width: fit-content;
}

.blog-card h2 {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.35;
    color: #f1f5f9;
    margin: 0 0 14px 0;
    transition: color 0.2s ease;
}

.blog-card:hover h2 {
    color: #38bdf8;
}

.blog-card p {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.blog-card-meta {
    font-size: 0.82rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #27272a;
    padding-top: 16px;
    margin-top: auto;
}

.blog-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Article Page Layout */
.article-header {
    max-width: 860px;
    margin: 0 auto;
    padding: 60px 24px 30px 24px;
    text-align: left;
}

.article-header h1 {
    font-size: 2.65rem;
    font-weight: 800;
    line-height: 1.22;
    color: #ffffff;
    margin: 20px 0 18px 0;
    letter-spacing: -0.02em;
}

.article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    color: #94a3b8;
    font-size: 0.88rem;
    padding-bottom: 24px;
    border-bottom: 1px solid #27272a;
    margin-bottom: 30px;
}

.article-meta-bar a {
    color: #38bdf8;
    text-decoration: underline;
    font-weight: 600;
}

.article-content {
    max-width: 860px;
    margin: 0 auto 60px auto;
    padding: 0 24px;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #cbd5e1;
    overflow-x: clip;
}
pre {
    max-width: 100%;
    overflow-x: auto;
}

.article-content h2 {
    font-size: 1.85rem;
    font-weight: 800;
    color: #ffffff;
    margin: 48px 0 18px 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
    padding-bottom: 10px;
    border-bottom: 1px solid #27272a;
}

.article-content h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #f1f5f9;
    margin: 32px 0 14px 0;
    line-height: 1.35;
}

.article-content p {
    margin: 0 0 20px 0;
}

.article-content strong {
    color: #ffffff;
    font-weight: 700;
}

.article-content ul, .article-content ol {
    margin: 0 0 24px 0;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 10px;
    line-height: 1.65;
}

/* AI Executive Summary Box */
.article-ai-summary {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.08) 0%, rgba(30, 41, 59, 0.4) 100%);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-left: 5px solid #38bdf8;
    border-radius: 12px;
    padding: 24px 28px;
    margin: 28px 0 36px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.article-ai-summary-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 800;
    color: #38bdf8;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.article-ai-summary ul {
    margin: 0;
    padding-left: 20px;
}

.article-ai-summary li {
    font-size: 0.98rem;
    line-height: 1.6;
    color: #e2e8f0;
    margin-bottom: 8px;
}

.article-ai-summary li:last-child {
    margin-bottom: 0;
}

/* Code Snippet Box */
.code-box {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 10px;
    margin: 24px 0;
    overflow: hidden;
}

.code-box-header {
    background: #161b22;
    padding: 10px 16px;
    font-size: 0.8rem;
    font-family: monospace;
    color: #8b949e;
    border-bottom: 1px solid #30363d;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-box pre {
    padding: 16px 20px;
    margin: 0;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.55;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    color: #e6edf3;
}

/* Light Theme Support */
.light-theme .blog-hub-hero h1 { color: #0f172a; }
.light-theme .blog-hub-hero p { color: #475569; }
.light-theme .blog-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.light-theme .blog-card:hover {
    border-color: #0284c7;
    box-shadow: 0 10px 28px rgba(2, 132, 199, 0.15);
}
.light-theme .blog-card h2 { color: #0f172a; }
.light-theme .blog-card:hover h2 { color: #0284c7; }
.light-theme .blog-card p { color: #475569; }
.light-theme .blog-card-meta { border-top-color: #f1f5f9; color: #64748b; }

.light-theme .blog-card-media {
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.light-theme .blog-card-media-placeholder {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #94a3b8;
}

.light-theme .blog-card-media-placeholder i {
    color: #94a3b8;
}

.light-theme .article-header h1 { color: #0f172a; }
.light-theme .article-meta-bar { border-bottom-color: #e2e8f0; color: #64748b; }
.light-theme .article-content { color: #334155; }
.light-theme .article-content h2 { color: #0f172a; border-bottom-color: #e2e8f0; }
.light-theme .article-content h3 { color: #1e293b; }
.light-theme .article-content strong { color: #0f172a; }
.light-theme .article-ai-summary {
    background: #f0f9ff;
    border-color: #bae6fd;
    border-left-color: #0284c7;
}
.light-theme .article-ai-summary-title { color: #0369a1; }
.light-theme .article-ai-summary li { color: #1e293b; }
.light-theme .code-box { background: #f8fafc; border-color: #e2e8f0; }
.light-theme .code-box-header { background: #f1f5f9; border-bottom-color: #e2e8f0; color: #64748b; }
.light-theme .code-box pre { color: #0f172a; }

@media (max-width: 768px) {
    .blog-hub-hero h1 { font-size: 2.1rem; }
    .blog-grid { grid-template-columns: 1fr; padding: 0 16px; }
    .article-header { padding: 40px 16px 20px 16px; }
    .article-header h1 { font-size: 1.95rem; }
    .article-content { padding: 0 16px; font-size: 1rem; }
    .article-content h2 { font-size: 1.5rem; }
    .article-ai-summary { padding: 18px 20px; }
}


/* ==========================================================================
   Article Table of Contents (TOC) Component
   ========================================================================== */
.article-toc {
    background: #0d1527;
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 14px;
    padding: 24px 28px;
    margin: 36px 0 44px 0;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.article-toc::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0284c7, #38bdf8, #00f0ff);
}

.article-toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.article-toc-title,
.article-toc .toc-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.01em;
    margin: 0;
}

.article-toc-title i,
.article-toc .toc-title i {
    color: #38bdf8;
    font-size: 1.25rem;
}

.article-toc-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.article-toc-list,
.article-toc ol {
    margin: 0;
    padding-left: 22px;
    list-style-type: decimal;
}

.article-toc-list > li,
.article-toc ol > li {
    margin-bottom: 10px;
    color: #38bdf8;
    font-weight: 700;
}

.article-toc-list a,
.article-toc ol a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.98rem;
    line-height: 1.5;
    transition: color 0.2s ease;
    display: inline;
}

.article-toc-list a:hover,
.article-toc ol a:hover {
    color: #38bdf8;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.article-toc-sublist,
.article-toc ol ol,
.article-toc ol ul {
    margin: 8px 0 10px 0;
    padding-left: 18px;
    list-style-type: disc;
}

.article-toc-sublist li,
.article-toc ol ol li,
.article-toc ol ul li {
    margin-bottom: 6px;
    color: #64748b;
    font-size: 0.92rem;
}

.article-toc-sublist a,
.article-toc ol ol a,
.article-toc ol ul a {
    color: #94a3b8;
    font-weight: 500;
    font-size: 0.92rem;
}

.article-toc-sublist a:hover,
.article-toc ol ol a:hover,
.article-toc ol ul a:hover {
    color: #38bdf8;
}

/* Scroll Offset for Fixed Navigation Header */
html {
    scroll-padding-top: 125px;
}

.article-content h2[id],
.article-content h3[id],
.article-content li[id],
.article-content details[id],
.article-content div[id] {
    scroll-margin-top: 125px;
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 145px;
    }
    .article-content h2[id],
    .article-content h3[id],
    .article-content li[id],
    .article-content details[id],
    .article-content div[id] {
        scroll-margin-top: 145px;
    }
}

/* Light Theme Support for TOC */
.light-theme .article-toc {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
}

.light-theme .article-toc-header {
    border-bottom-color: #e2e8f0;
}

.light-theme .article-toc-title,
.light-theme .article-toc .toc-title {
    color: #0f172a;
}

.light-theme .article-toc-badge {
    background: #e0f2fe;
    color: #0284c7;
    border-color: #bae6fd;
}

.light-theme .article-toc-list > li,
.light-theme .article-toc ol > li {
    color: #0284c7;
}

.light-theme .article-toc-list a,
.light-theme .article-toc ol a {
    color: #334155;
}

.light-theme .article-toc-list a:hover,
.light-theme .article-toc ol a:hover {
    color: #0284c7;
}

.light-theme .article-toc-sublist a,
.light-theme .article-toc ol ol a,
.light-theme .article-toc ol ul a {
    color: #64748b;
}

.light-theme .article-toc-sublist a:hover,
.light-theme .article-toc ol ol a:hover,
.light-theme .article-toc ol ul a:hover {
    color: #0284c7;
}

@media (max-width: 768px) {
    .article-toc {
        padding: 20px 18px;
        margin: 28px 0 36px 0;
    }
    .article-toc-title,
    .article-toc .toc-title {
        font-size: 1.05rem;
    }
    .article-toc-list,
    .article-toc ol {
        padding-left: 18px;
    }
    .article-toc-list a,
    .article-toc ol a {
        font-size: 0.94rem;
    }
}
/* ==========================================================================
   Blog Hub Multi-Topic Architecture & Filter System
   ========================================================================== */
.blog-filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 1200px;
    margin: 36px auto 44px auto;
    padding: 0 24px;
}

.blog-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #94a3b8;
    background: #0f172a;
    border: 1px solid #334155;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    text-decoration: none;
}

.blog-filter-btn i {
    font-size: 1rem;
    color: #38bdf8;
    transition: color 0.25s ease;
}

.blog-filter-btn .filter-count {
    display: inline-block;
    padding: 2px 7px;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    margin-left: 2px;
}

.blog-filter-btn:hover {
    color: #ffffff;
    border-color: #38bdf8;
    background: #1e293b;
    transform: translateY(-2px);
}

.blog-filter-btn.active {
    color: #ffffff;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border-color: #38bdf8;
    box-shadow: 0 4px 18px rgba(2, 132, 199, 0.35);
}

.blog-filter-btn.active i {
    color: #ffffff;
}

.blog-filter-btn.active .filter-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Featured Hero Article Card */
.blog-featured-section {
    max-width: 1200px;
    margin: 0 auto 50px auto;
    padding: 0 24px;
}

.blog-featured-card {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 36px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    align-items: center;
}

.blog-featured-card:hover {
    transform: translateY(-4px);
    border-color: #38bdf8;
    box-shadow: 0 22px 50px rgba(2, 132, 199, 0.25);
}

.blog-featured-badge-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.featured-pill {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 20px;
}

.blog-featured-content h2 {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
    transition: color 0.2s ease;
}

.blog-featured-card:hover .blog-featured-content h2 {
    color: #38bdf8;
}

.blog-featured-content p {
    font-size: 1.02rem;
    line-height: 1.6;
    color: #94a3b8;
    margin: 0 0 24px 0;
}

.blog-featured-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #38bdf8;
}

.blog-featured-media-wrap img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
}

/* Light Theme Support for Blog Hub */
.light-theme .blog-filter-btn {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #475569;
}

.light-theme .blog-filter-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #0284c7;
}

.light-theme .blog-filter-btn.active {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    border-color: #0284c7;
}

.light-theme .blog-featured-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.light-theme .blog-featured-card:hover {
    border-color: #0284c7;
    box-shadow: 0 18px 45px rgba(2, 132, 199, 0.15);
}

.light-theme .blog-featured-content h2 {
    color: #0f172a;
}

.light-theme .blog-featured-content h2:hover {
    color: #0284c7;
}

.light-theme .blog-featured-content p {
    color: #475569;
}

@media (max-width: 900px) {
    .blog-featured-card {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 24px;
    }
    .blog-featured-content h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .blog-filter-bar {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0 16px 10px 16px;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .blog-filter-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
}


/* Blog Article Featured Media & Caption */
.article-featured-media {
    margin: 36px 0 44px 0;
    text-align: center;
    max-width: 100%;
}
.article-featured-media img,
.article-featured-media picture img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
}
.cs-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    box-sizing: border-box;
}
.article-media-caption {
    font-size: 0.88rem;
    color: #94a3b8;
    margin-top: 14px;
    line-height: 1.5;
    text-align: center;
}
html.light-theme .article-media-caption {
    color: #475569;
}
html.light-theme .article-media-caption strong {
    color: #0f172a;
}


/* ==========================================================================
   Article Dual CTA Box (Lead Magnet & High-Conversion)
   ========================================================================== */
.article-cta-box {
    margin: 60px 0 30px 0;
    padding: 44px 32px;
    text-align: center;
    border-radius: 18px;
    background: linear-gradient(135deg, #0d1527 0%, #1e293b 100%);
    border: 1.5px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.article-cta-box:hover {
    box-shadow: 0 20px 48px rgba(2, 132, 199, 0.2);
}

.article-cta-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    margin-bottom: 16px;
}

.article-content .article-cta-box h3,
.article-cta-box h3 {
    font-size: 1.65rem;
    font-weight: 800;
    margin: 0 0 14px 0;
    line-height: 1.35;
    color: #ffffff !important;
}

.article-content .article-cta-box p,
.article-cta-box p {
    max-width: 680px;
    margin: 0 auto 28px auto;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #e2e8f0 !important;
}

.article-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 14px;
}

.article-cta-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 800;
    border-radius: 10px;
    background: #0284c7;
    color: #ffffff !important;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.4);
    transition: all 0.2s ease;
}

.article-cta-btn-primary:hover {
    background: #0369a1;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.55);
    color: #ffffff !important;
}

.article-cta-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 10px;
    background: #1e293b;
    color: #38bdf8 !important;
    text-decoration: none;
    border: 1.5px solid rgba(56, 189, 248, 0.5);
    transition: all 0.2s ease;
}

.article-cta-btn-secondary:hover {
    background: #334155;
    border-color: #38bdf8;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* Light Theme Styling for CTA Box (High Contrast & Legibility) */
html.light-theme .article-cta-box,
body.light-theme .article-cta-box {
    background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 100%);
    border: 1.5px solid #bae6fd;
    box-shadow: 0 14px 36px rgba(2, 132, 199, 0.1);
}

html.light-theme .article-cta-badge,
body.light-theme .article-cta-badge {
    background: rgba(2, 132, 199, 0.08);
    border: 1px solid rgba(2, 132, 199, 0.3);
    color: #0284c7;
}

html.light-theme .article-content .article-cta-box h3,
body.light-theme .article-content .article-cta-box h3,
html.light-theme .article-cta-box h3 {
    color: #0f172a !important;
}

html.light-theme .article-content .article-cta-box p,
body.light-theme .article-content .article-cta-box p,
html.light-theme .article-cta-box p {
    color: #334155 !important;
}

html.light-theme .article-cta-btn-primary,
body.light-theme .article-cta-btn-primary {
    background: #0284c7;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.28);
}

html.light-theme .article-cta-btn-primary:hover,
body.light-theme .article-cta-btn-primary:hover {
    background: #0369a1;
    color: #ffffff !important;
}

html.light-theme .article-cta-btn-secondary,
body.light-theme .article-cta-btn-secondary {
    background: #ffffff;
    color: #0284c7 !important;
    border: 1.5px solid #0284c7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

html.light-theme .article-cta-btn-secondary:hover,
body.light-theme .article-cta-btn-secondary:hover {
    background: #f0f9ff;
    color: #0369a1 !important;
    border-color: #0369a1;
}

@media (max-width: 768px) {
    .article-cta-box {
        padding: 32px 20px;
        margin: 44px 0 24px 0;
    }
    .article-content .article-cta-box h3,
    .article-cta-box h3 {
        font-size: 1.35rem;
    }
    .article-cta-actions {
        flex-direction: column;
        width: 100%;
    }
    .article-cta-btn-primary,
    .article-cta-btn-secondary {
        width: 100%;
        justify-content: center;
    }
}


/* ==========================================================================
   Article Case Study Callout Box (E-E-A-T & High Legibility)
   ========================================================================== */
.article-case-box {
    margin: 36px 0;
    padding: 28px 30px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0d1527 0%, #1e293b 100%);
    border: 1.5px solid rgba(56, 189, 248, 0.3);
    border-left: 5px solid #0284c7;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-content .article-case-box h3,
.article-case-box h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 14px 0;
    line-height: 1.4;
    color: #38bdf8 !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-case-box h3 i {
    color: #0284c7;
    font-size: 1.35rem;
}

.article-content .article-case-box p,
.article-case-box p {
    font-size: 1.02rem;
    line-height: 1.7;
    color: #e2e8f0 !important;
    margin: 0 0 14px 0;
}

.article-content .article-case-box p:last-child,
.article-case-box p:last-child {
    margin-bottom: 0;
}

.article-case-box strong {
    color: #ffffff !important;
}

.article-case-box a {
    color: #38bdf8 !important;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
}

.article-case-box a:hover {
    color: #7dd3fc !important;
}

/* Light Theme Styling for Case Study Box (WCAG AAA High Contrast) */
html.light-theme .article-case-box,
body.light-theme .article-case-box {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    border: 1.5px solid #bae6fd;
    border-left: 5px solid #0284c7;
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.08);
}

html.light-theme .article-content .article-case-box h3,
body.light-theme .article-content .article-case-box h3,
html.light-theme .article-case-box h3 {
    color: #0369a1 !important;
}

html.light-theme .article-case-box h3 i {
    color: #0284c7 !important;
}

html.light-theme .article-content .article-case-box p,
body.light-theme .article-content .article-case-box p,
html.light-theme .article-case-box p {
    color: #1e293b !important;
}

html.light-theme .article-case-box strong {
    color: #0f172a !important;
}

html.light-theme .article-case-box a {
    color: #0284c7 !important;
}

html.light-theme .article-case-box a:hover {
    color: #0369a1 !important;
}

@media (max-width: 768px) {
    .article-case-box {
        padding: 22px 18px;
        margin: 28px 0;
    }
    .article-content .article-case-box h3,
    .article-case-box h3 {
        font-size: 1.15rem;
    }
}

/* ==========================================================================
   Article Alert / Info Callout Box
   ========================================================================== */
.alert-box {
    margin: 30px 0;
    padding: 22px 24px;
    border-radius: 10px;
    background: rgba(2, 132, 199, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-left: 4px solid #0284c7;
}

.alert-box-title {
    font-weight: 800;
    color: #38bdf8;
    margin-bottom: 8px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-box-title i {
    color: #0284c7;
    font-size: 1.15rem;
}

.alert-box p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.65;
    color: #e2e8f0;
}

html.light-theme .alert-box,
body.light-theme .alert-box {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-left: 4px solid #0284c7;
}

html.light-theme .alert-box-title,
body.light-theme .alert-box-title {
    color: #0369a1;
}

html.light-theme .alert-box-title i,
body.light-theme .alert-box-title i {
    color: #0284c7;
}

html.light-theme .alert-box p,
body.light-theme .alert-box p {
    color: #1e293b;
}


/* Google Reviews G-Logo Dimension Lock (Prevents SVG Explosion) */
.footer-gr-glogo {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    max-width: 22px !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
}


/* ======================================================================
   BLOG HUB: QUICK LINKS PILLARS / SERVIZI SPECIALISTICI SECTION
   ====================================================================== */
.blog-services-section {
    max-width: 1200px;
    margin: 0 auto 80px auto;
    padding: 0 24px;
}

.blog-services-box {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.85) 100%);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 16px;
    padding: 44px 32px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.blog-services-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    padding: 6px 18px;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.blog-services-title {
    font-size: 1.85rem;
    font-weight: 800;
    margin: 12px 0 16px 0;
    color: #ffffff !important;
    letter-spacing: -0.3px;
    line-height: 1.25;
}

.blog-services-desc {
    max-width: 740px;
    margin: 0 auto 32px auto;
    color: #cbd5e1 !important;
    font-size: 1.05rem;
    line-height: 1.65;
}

.blog-services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.blog-service-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 10px;
    text-decoration: none;
    background: #0f172a;
    border: 1px solid #334155;
    transition: all 0.2s ease-in-out;
}

/* Dark mode pill variants */
.blog-service-pill.pill-seo-ecom {
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.45);
}
.blog-service-pill.pill-seo-ecom:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
    color: #7dd3fc;
}

.blog-service-pill.pill-prestashop {
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.45);
}
.blog-service-pill.pill-prestashop:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: #34d399;
    color: #6ee7b7;
}

.blog-service-pill.pill-seo {
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.45);
}
.blog-service-pill.pill-seo:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: #60a5fa;
    color: #93c5fd;
}

.blog-service-pill.pill-ai {
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.45);
}
.blog-service-pill.pill-ai:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: #fbbf24;
    color: #fde68a;
}

.blog-service-pill.pill-geo {
    color: #a5b4fc;
    border-color: rgba(99, 102, 241, 0.45);
}
.blog-service-pill.pill-geo:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: #818cf8;
    color: #c7d2fe;
}

.blog-service-pill.pill-casistudio {
    background: #1e293b;
    color: #f8fafc;
    border-color: #475569;
}
.blog-service-pill.pill-casistudio:hover {
    background: #334155;
    color: #ffffff;
    border-color: #94a3b8;
}

/* Light Theme Overrides (WCAG AAA High Contrast) */
html.light-theme .blog-services-box,
body.light-theme .blog-services-box {
    background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 100%) !important;
    border: 1px solid #bae6fd !important;
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.08) !important;
}

html.light-theme .blog-services-badge,
body.light-theme .blog-services-badge {
    background: rgba(2, 132, 199, 0.09) !important;
    border: 1px solid rgba(2, 132, 199, 0.3) !important;
    color: #0284c7 !important;
}

html.light-theme .blog-services-title,
body.light-theme .blog-services-title {
    color: #0f172a !important;
}

html.light-theme .blog-services-desc,
body.light-theme .blog-services-desc {
    color: #334155 !important;
}

html.light-theme .blog-service-pill,
body.light-theme .blog-service-pill {
    background: #ffffff !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
}

html.light-theme .blog-service-pill.pill-seo-ecom,
body.light-theme .blog-service-pill.pill-seo-ecom {
    color: #0369a1 !important;
    border: 1px solid #7dd3fc !important;
}
html.light-theme .blog-service-pill.pill-seo-ecom:hover,
body.light-theme .blog-service-pill.pill-seo-ecom:hover {
    background: #f0f9ff !important;
    border-color: #0284c7 !important;
    color: #0c4a6e !important;
}

html.light-theme .blog-service-pill.pill-prestashop,
body.light-theme .blog-service-pill.pill-prestashop {
    color: #047857 !important;
    border: 1px solid #6ee7b7 !important;
}
html.light-theme .blog-service-pill.pill-prestashop:hover,
body.light-theme .blog-service-pill.pill-prestashop:hover {
    background: #ecfdf5 !important;
    border-color: #059669 !important;
    color: #064e3b !important;
}

html.light-theme .blog-service-pill.pill-seo,
body.light-theme .blog-service-pill.pill-seo {
    color: #1d4ed8 !important;
    border: 1px solid #93c5fd !important;
}
html.light-theme .blog-service-pill.pill-seo:hover,
body.light-theme .blog-service-pill.pill-seo:hover {
    background: #eff6ff !important;
    border-color: #2563eb !important;
    color: #1e3a8a !important;
}

html.light-theme .blog-service-pill.pill-ai,
body.light-theme .blog-service-pill.pill-ai {
    color: #b45309 !important;
    border: 1px solid #fcd34d !important;
}
html.light-theme .blog-service-pill.pill-ai:hover,
body.light-theme .blog-service-pill.pill-ai:hover {
    background: #fffbeb !important;
    border-color: #d97706 !important;
    color: #78350f !important;
}

html.light-theme .blog-service-pill.pill-geo,
body.light-theme .blog-service-pill.pill-geo {
    color: #4338ca !important;
    border: 1px solid #a5b4fc !important;
}
html.light-theme .blog-service-pill.pill-geo:hover,
body.light-theme .blog-service-pill.pill-geo:hover {
    background: #eef2ff !important;
    border-color: #4f46e5 !important;
    color: #312e81 !important;
}

html.light-theme .blog-service-pill.pill-casistudio,
body.light-theme .blog-service-pill.pill-casistudio {
    background: #0f172a !important;
    border: 1px solid #0f172a !important;
    color: #ffffff !important;
}
html.light-theme .blog-service-pill.pill-casistudio:hover,
body.light-theme .blog-service-pill.pill-casistudio:hover {
    background: #1e293b !important;
    border-color: #1e293b !important;
    color: #38bdf8 !important;
}

@media (max-width: 640px) {
    .blog-services-box {
        padding: 32px 18px;
    }
    .blog-services-title {
        font-size: 1.45rem;
    }
    .blog-services-grid {
        flex-direction: column;
    }
    .blog-service-pill {
        width: 100%;
        justify-content: center;
    }
}


/* ==========================================================================
   Canonical Case Box & Badge Consistency (Blog Hub Standard)
   ========================================================================== */
.article-case-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 9999px;
    margin-bottom: 16px;
}
.article-case-badge i {
    color: #38bdf8;
    font-size: 0.95rem;
}
.light-theme .article-case-badge,
body.light-theme .article-case-badge,
html.light-theme .article-case-badge {
    background: rgba(2, 132, 199, 0.1);
    color: #0284c7;
    border-color: rgba(2, 132, 199, 0.25);
}
.light-theme .article-case-badge i,
body.light-theme .article-case-badge i,
html.light-theme .article-case-badge i {
    color: #0284c7;
}

.article-case-box ul,
.article-case-box ol {
    margin: 12px 0 16px 22px;
    padding: 0;
    color: #e2e8f0;
}
.article-case-box li {
    margin-bottom: 8px;
    line-height: 1.7;
    font-size: 1.02rem;
}
.light-theme .article-case-box ul,
.light-theme .article-case-box ol,
body.light-theme .article-case-box ul,
body.light-theme .article-case-box ol,
html.light-theme .article-case-box ul,
html.light-theme .article-case-box ol {
    color: #1e293b;
}

/* Fallback / Standalone Related Resources Box */
.article-related-resources {
    margin: 40px 0 30px;
    padding: 24px;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-left: 4px solid #38bdf8;
}
.article-related-resources h3 {
    margin: 0 0 12px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #38bdf8 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}
.article-related-resources ul {
    margin: 0;
    padding-left: 20px;
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.8;
}
.article-related-resources a {
    color: #60a5fa !important;
    font-weight: 600;
    text-decoration: underline;
}
.light-theme .article-related-resources,
body.light-theme .article-related-resources,
html.light-theme .article-related-resources {
    background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 100%) !important;
    border: 1px solid #bae6fd !important;
    border-left: 4px solid #0284c7 !important;
}
.light-theme .article-related-resources h3,
body.light-theme .article-related-resources h3,
html.light-theme .article-related-resources h3 {
    color: #0369a1 !important;
}
.light-theme .article-related-resources ul,
body.light-theme .article-related-resources ul,
html.light-theme .article-related-resources ul {
    color: #334155 !important;
}
.light-theme .article-related-resources a,
body.light-theme .article-related-resources a,
html.light-theme .article-related-resources a {
    color: #0284c7 !important;
}

.article-case-footer {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    line-height: 1.65;
    color: #cbd5e1;
}
.light-theme .article-case-footer,
body.light-theme .article-case-footer,
html.light-theme .article-case-footer {
    border-top: 1px solid rgba(2, 132, 199, 0.2);
    color: #334155;
}

/* Guarantee link text inside case box always inherits link color even if strong/bold */
.article-case-box a strong,
.article-case-box a b {
    color: inherit !important;
}
body.light-theme .article-case-box a strong,
body.light-theme .article-case-box a b,
html.light-theme .article-case-box a strong,
html.light-theme .article-case-box a b,
.light-theme .article-case-box a strong,
.light-theme .article-case-box a b {
    color: inherit !important;
}


/* Safety rules for breadcrumbs lists (prevents accidental vertical numbered lists) */
.breadcrumb-nav, .breadcrumbs-nav, .cs-breadcrumb-nav, nav[aria-label*="breadcrumb" i], nav[aria-label*="navigazione" i] {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    list-style: none !important;
    margin-bottom: 20px !important;
}

.breadcrumb-nav ol, .breadcrumb-nav ul,
.breadcrumbs-nav ol, .breadcrumbs-nav ul,
.cs-breadcrumb-nav ol, .cs-breadcrumb-nav ul {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-wrap: wrap !important;
}

.breadcrumb-nav li, .breadcrumbs-nav li, .cs-breadcrumb-nav li {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
}


/* Universal Hamburger Menu Bars (supports both .bar and bare span) */
.hamburger-menu span,
.hamburger-menu .bar {
    display: block !important;
    width: 25px !important;
    height: 3px !important;
    background-color: #e0e0e0 !important;
    margin: 5px 0 !important;
    transition: 0.4s !important;
    border-radius: 2px !important;
}

.light-theme .hamburger-menu span,
.light-theme .hamburger-menu .bar,
body.light-theme .hamburger-menu span,
body.light-theme .hamburger-menu .bar,
html.light-theme .hamburger-menu span,
html.light-theme .hamburger-menu .bar {
    background-color: #0f172a !important;
}

/* Hub Pillar Header Mobile Responsive Layout */
@media (max-width: 768px) {
    .hub-pillar-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding: 0 16px !important;
        margin: 35px auto 18px !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }
    .hub-pillar-title {
        font-size: 1.35rem !important;
        flex-wrap: wrap !important;
        width: 100% !important;
    }
    .hub-pillar-title h2 {
        font-size: 1.35rem !important;
        line-height: 1.35 !important;
        margin: 0 !important;
        word-break: break-word !important;
    }
    .hub-pillar-link {
        font-size: 0.88rem !important;
        align-self: flex-start !important;
    }
    .cs-container, .hub-container {
        overflow-x: clip !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}


/* ==========================================================================
   Mobile Stacked-Card Responsive Tables (.cs-table & .legal-table)
   Preserves native <table> semantics for SEO/GEO while eliminating horizontal cutoffs
   ========================================================================== */
@media (max-width: 768px) {
    .cs-table-wrap,
    .legal-table-responsive,
    .light-theme .cs-table-wrap,
    body.light-theme .cs-table-wrap,
    html.light-theme .cs-table-wrap {
        border: none !important;
        background: transparent !important;
        overflow-x: visible !important;
        padding: 0 !important;
        box-shadow: none !important;
        margin: 20px 0 !important;
    }

    .cs-table,
    .legal-table,
    .cs-table tbody,
    .legal-table tbody {
        display: block !important;
        width: 100% !important;
    }

    .cs-table thead,
    .legal-table thead {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }

    .cs-table tbody tr,
    .legal-table tbody tr {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        background: #161b26 !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 12px !important;
        padding: 14px 16px !important;
        margin: 0 0 14px 0 !important;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22) !important;
    }

    .light-theme .cs-table tbody tr,
    body.light-theme .cs-table tbody tr,
    html.light-theme .cs-table tbody tr,
    .light-theme .legal-table tbody tr,
    body.light-theme .legal-table tbody tr,
    html.light-theme .legal-table tbody tr {
        background: #ffffff !important;
        border: 1px solid #cbd5e1 !important;
        box-shadow: 0 3px 12px rgba(15, 23, 42, 0.05) !important;
    }

    .cs-table tbody tr[style*="245, 158, 11"],
    .light-theme .cs-table tbody tr[style*="245, 158, 11"],
    body.light-theme .cs-table tbody tr[style*="245, 158, 11"],
    html.light-theme .cs-table tbody tr[style*="245, 158, 11"] {
        border: 1.5px solid rgba(245, 158, 11, 0.65) !important;
    }

    .cs-table tbody td,
    .legal-table tbody td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 9px 0 !important;
        text-align: left !important;
        font-size: 0.92rem !important;
        line-height: 1.5 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        background: transparent !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
    }

    .light-theme .cs-table tbody td,
    body.light-theme .cs-table tbody td,
    html.light-theme .cs-table tbody td,
    .light-theme .legal-table tbody td,
    body.light-theme .legal-table tbody td,
    html.light-theme .legal-table tbody td {
        border-bottom: 1px solid #f1f5f9 !important;
        background: transparent !important;
    }

    .cs-table tbody td:first-child,
    .legal-table tbody td:first-child {
        padding-top: 0 !important;
    }

    .cs-table tbody td:last-child,
    .legal-table tbody td:last-child,
    .light-theme .cs-table tbody td:last-child,
    body.light-theme .cs-table tbody td:last-child,
    html.light-theme .cs-table tbody td:last-child,
    .light-theme .legal-table tbody td:last-child,
    body.light-theme .legal-table tbody td:last-child,
    html.light-theme .legal-table tbody td:last-child {
        padding-bottom: 0 !important;
        border-bottom: none !important;
    }

    .cs-table tbody td[data-label]::before,
    .legal-table tbody td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #94a3b8;
        margin-bottom: 3px;
        line-height: 1.3;
    }

    .light-theme .cs-table tbody td[data-label]::before,
    body.light-theme .cs-table tbody td[data-label]::before,
    html.light-theme .cs-table tbody td[data-label]::before,
    .light-theme .legal-table tbody td[data-label]::before,
    body.light-theme .legal-table tbody td[data-label]::before,
    html.light-theme .legal-table tbody td[data-label]::before {
        color: #64748b !important;
    }

    .cs-table tbody td.td-tier-banner {
        background: rgba(56, 189, 248, 0.12) !important;
        color: #38bdf8 !important;
        padding: 9px 12px !important;
        border-radius: 8px !important;
        margin-bottom: 8px !important;
        border-bottom: none !important;
    }

    .light-theme .cs-table tbody td.td-tier-banner,
    body.light-theme .cs-table tbody td.td-tier-banner,
    html.light-theme .cs-table tbody td.td-tier-banner {
        background: #eff6ff !important;
        color: #1d4ed8 !important;
        border: 1px solid #bfdbfe !important;
    }

    .cs-table tbody td code,
    .legal-table tbody td code {
        white-space: pre-wrap !important;
        word-break: break-word !important;
        font-size: 0.82rem !important;
    }
}

/* ==========================================================================
   CONSOLIDAMENTO UX, TABLET (768-1024px), MOBILE & CONTRASTO WCAG (2026-11-29)
   ========================================================================== */

/* 1. Header box-sizing, single-row desktop nav & Tablet breakpoint (<= 960px) */
header {
    box-sizing: border-box !important;
    width: 100% !important;
    left: 0;
    right: 0;
    padding: 8px clamp(18px, 3vw, 50px) !important;
}

.desktop-nav {
    align-items: center;
    gap: clamp(14px, 1.7vw, 28px);
}

.desktop-nav a {
    margin-left: 0 !important;
    white-space: nowrap;
}

.desktop-nav .theme-toggle-btn {
    margin-left: 4px !important;
    flex-shrink: 0;
}

/* Touch-open state for desktop/landscape-tablet dropdown */
.nav-dropdown.touch-open .nav-dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

@media (max-width: 960px) {
    .desktop-nav {
        display: none !important;
    }

    .hamburger-menu {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-width: 44px;
        min-height: 44px;
        padding: 8px;
        box-sizing: border-box;
    }

    .mobile-nav {
        display: flex !important;
    }
}

.close-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    box-sizing: border-box;
}

body.nav-drawer-open {
    overflow: hidden !important;
}

body.nav-drawer-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
    z-index: 1001;
    backdrop-filter: blur(2px);
}

.mobile-nav {
    z-index: 1003 !important;
}

/* 2. Breadcrumbs clearance below fixed header at scrollY = 0 on all pages */
main > .breadcrumbs-wrapper,
body > .breadcrumbs-wrapper,
main > .cs-breadcrumb,
.cs-page-wrap > .cs-breadcrumb,
.breadcrumbs-wrapper {
    margin-top: 56px !important;
}

@media (max-width: 960px) {
    main > .breadcrumbs-wrapper,
    body > .breadcrumbs-wrapper,
    main > .cs-breadcrumb,
    .cs-page-wrap > .cs-breadcrumb,
    .breadcrumbs-wrapper {
        margin-top: 66px !important;
    }
}

/* 3. Fix Blog CTA Buttons Overflow (box-sizing: border-box) */
.article-cta-btn-primary,
.article-cta-btn-secondary {
    box-sizing: border-box !important;
    max-width: 100% !important;
    justify-content: center;
    text-align: center;
}

/* 4. Code Snippet Horizontal Scroll & Wide Desktop/Tablet Tables */
pre.code-box,
.code-box pre {
    overflow-x: auto !important;
    max-width: 100%;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

.score-pill {
    white-space: nowrap !important;
    display: inline-block;
}

@media (min-width: 769px) {
    #tabella-allocazione-catalogo > table.cs-table th,
    #tabella-allocazione-catalogo > table.cs-table td,
    #tabella-benchmark-versioni > table.cs-table th,
    #tabella-benchmark-versioni > table.cs-table td {
        padding: 9px 8px !important;
        font-size: 0.84rem !important;
        word-break: normal;
        overflow-wrap: break-word;
    }

    #tabella-allocazione-catalogo > table.cs-table,
    #tabella-benchmark-versioni > table.cs-table {
        width: 100% !important;
        min-width: 0 !important;
        table-layout: auto;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .cs-table-wrap table.cs-table th,
    .cs-table-wrap table.cs-table td {
        padding: 9px 8px;
        font-size: 0.84rem;
    }
}

/* 5. Contact Form: Select, Input >= 16px (Zero iOS/iPadOS Auto-Zoom) & Checkbox */
#contact-form input.form-input,
#contact-form select.form-select,
#contact-form select#contact-modalita,
#contact-form textarea.form-textarea {
    font-size: 16px !important;
    box-sizing: border-box !important;
    width: 100%;
}

#contact-form select.form-select,
#contact-form select#contact-modalita {
    height: 50px;
    padding: 0 14px;
    border-radius: 10px;
    background-color: #16181d;
    color: #f1f5f9;
    border: 1px solid #2e323b;
    cursor: pointer;
    appearance: auto;
}

html.light-theme #contact-form select.form-select,
html.light-theme #contact-form select#contact-modalita,
body.light-theme #contact-form select.form-select,
body.light-theme #contact-form select#contact-modalita {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}

#contact-form input[type="checkbox"]#contact-privacy {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    cursor: pointer;
    accent-color: #0284c7;
}

/* 6. Sede Perugia & Terni Equal-Height Grid + Light/Dark Card Styling */
#sede-perugia .pillar-grid-2,
#sede-terni .pillar-grid-2 {
    align-items: stretch !important;
}

.sede-info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.sede-map-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    box-sizing: border-box;
}

.sede-map-card iframe {
    width: 100%;
    height: 100% !important;
    min-height: 430px;
    flex: 1;
}

html.light-theme .sede-info-card,
body.light-theme .sede-info-card,
html.light-theme .sede-map-card,
body.light-theme .sede-map-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06) !important;
    color: #1e293b !important;
}

html.light-theme .sede-info-card ul,
body.light-theme .sede-info-card ul,
html.light-theme .sede-info-card li,
body.light-theme .sede-info-card li {
    color: #334155 !important;
}

html.light-theme .sede-info-card p,
body.light-theme .sede-info-card p,
html.light-theme .sede-info-card span,
body.light-theme .sede-info-card span {
    color: #475569 !important;
}

html.light-theme .sede-info-card h4,
body.light-theme .sede-info-card h4 {
    color: #0369a1 !important;
}

/* 7. Pillar Buttons & Specific CTA Contrast Fixes (Light & Dark Mode) */
a.pillar-btn-primary {
    background: #0284c7 !important;
    color: #ffffff !important;
    border: 1px solid #0284c7 !important;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

a.pillar-btn-primary:hover {
    background: #0369a1 !important;
    border-color: #0369a1 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

a.pillar-btn-secondary {
    background: rgba(56, 189, 248, 0.12) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.4) !important;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

html.light-theme a.pillar-btn-secondary,
body.light-theme a.pillar-btn-secondary {
    background: #f0f9ff !important;
    color: #0369a1 !important;
    border: 1px solid #7dd3fc !important;
}

.pillar-case-btn,
a.pillar-case-btn,
.atena-gr-btn-primary,
a.atena-gr-btn-primary {
    background: #fbbc05 !important;
    color: #0f172a !important;
    font-weight: 800 !important;
}

.pillar-insight-card .pillar-insight-action a.cta-button,
#casi-studio-reali-ai .article-case-box a.cta-button {
    background: #0284c7 !important;
    color: #ffffff !important;
    border: 1px solid #0284c7 !important;
}

.pillar-insight-card .pillar-insight-action a.cta-button:hover,
#casi-studio-reali-ai .article-case-box a.cta-button:hover {
    background: #0369a1 !important;
    color: #ffffff !important;
}

/* 8. Dark Mode Link Contrast (Eliminates Browser #0000EE on Dark Surfaces) */
html:not(.light-theme) main a:not([class]),
html:not(.light-theme) .article-content p a:not([class]),
html:not(.light-theme) .article-content li a:not([class]),
html:not(.light-theme) .article-content td a:not([class]),
html:not(.light-theme) .faq-answer a:not([class]),
html:not(.light-theme) .cs-card-title > a,
html:not(.light-theme) .cs-project-meta-box .meta-val a,
html:not(.light-theme) .legal-card-body a:not([class]),
html:not(.light-theme) .privacy-label a,
html:not(.light-theme) .pillar-lead a:not([class]),
html:not(.light-theme) .territorio-card__desc a:not([class]),
html:not(.light-theme) .pillar-service-card p a:not([class]) {
    color: #38bdf8;
}

html:not(.light-theme) main a:not([class]):hover,
html:not(.light-theme) .faq-answer a:not([class]):hover,
html:not(.light-theme) .cs-card-title > a:hover {
    color: #7dd3fc;
}

html:not(.light-theme) a.blog-card,
html:not(.light-theme) a.blog-card h3,
html:not(.light-theme) a.blog-featured-card,
html:not(.light-theme) a.blog-featured-card h2 {
    color: #f1f5f9;
}

html:not(.light-theme) .eeat-presentation-badge {
    background: rgba(56, 189, 248, 0.16) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.4) !important;
}

html.light-theme .eeat-presentation-badge {
    background: #0369a1 !important;
    color: #ffffff !important;
    border-color: #0369a1 !important;
}

/* 9. Light Mode Badge & Inline Cyan/Yellow Contrast Upgrades (WCAG AA) */
html.light-theme .pillar-badge,
body.light-theme .pillar-badge {
    background: #fef3c7 !important;
    border-color: #f59e0b !important;
    color: #92400e !important;
}

html.light-theme .legal-details-list a,
body.light-theme .legal-details-list a {
    color: #0369a1 !important;
}

html.light-theme .legal-badge-pill.yellow,
body.light-theme .legal-badge-pill.yellow,
html.light-theme .badge-opt,
body.light-theme .badge-opt {
    background: #fef3c7 !important;
    color: #92400e !important;
    border-color: #f59e0b !important;
}

html.light-theme .pillar-service-card p a:not([class]),
html.light-theme .blog-featured-cta,
html.light-theme p a[style*="#38bdf8"],
html.light-theme p a[style*="#60a5fa"],
html.light-theme li a[style*="#60a5fa"] {
    color: #0369a1 !important;
}

/* 10. Footer Bottom Clearance for Floating Cookie Button & Compact Banner on Small Mobile */
@media (max-width: 960px) {
    .footer-partner-sites {
        padding-bottom: 68px !important;
    }
}

@media (max-width: 420px) {
    #fg-cookie-banner {
        padding: 14px 16px !important;
    }
    #fg-cookie-banner p {
        font-size: 0.82rem !important;
        line-height: 1.42 !important;
        margin-bottom: 10px !important;
    }
}
