/**
 * Lorzeni Theme Chiaro Stylesheet
 *
 * Target: Light-first, vivid & lively, glassmorphism su sfondo chiaro
 */

/* ==========================================================================
   1. DESIGN TOKENS & ROOT VARIABLES
   ========================================================================== */
:root,
.editor-styles-wrapper {
    /* Colors */
    --bg-color: #ffeaae;
    --bg-secondary: #fff5d9;
    --text-primary: #0a0903;
    --text-secondary: #4a4331;
    --text-muted: #7a6f56;

    --color-primary: #ff0000;
    /* Vivid Red */
    --color-secondary: #ff8200;
    /* Vivid Orange */
    --color-tertiary: #ffc100;
    /* Vivid Amber */
    --color-success: #10b981;
    --color-error: #ef4444;

    /* Card & Glassmorphism */
    --card-bg: rgba(255, 250, 240, 0.85);
    --card-bg-hover: rgba(255, 250, 240, 0.97);
    --glass-bg: rgba(255, 245, 217, 0.9);
    --border-color: rgba(10, 9, 3, 0.08);
    --border-hover: rgba(255, 0, 0, 0.4);

    /* Typography — DM Sans (display + corpo) */
    --font-heading: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;

    /* Shadows & Special */
    --neon-glow: 0 0 25px rgba(255, 0, 0, 0.15);
    --neon-glow-strong: 0 0 35px rgba(255, 0, 0, 0.3);
    --neon-purple-glow: 0 0 25px rgba(255, 130, 0, 0.15);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Container sizes */
    --container-width: 1200px;
    --container-narrow: 800px;
}

/* ==========================================================================
   2. GLOBAL RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 0, 0, 0.02) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 130, 0, 0.02) 0%, transparent 40%),
        linear-gradient(to right, rgba(10, 9, 3, 0.007) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(10, 9, 3, 0.007) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 60px 60px, 60px 60px;
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    padding-top: 80px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: rgba(10, 9, 3, 0.1);
    border-radius: 5px;
    border: 2px solid var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
    box-shadow: var(--neon-glow);
}

/* Selection */
::selection {
    background-color: var(--color-primary);
    color: var(--bg-color);
}

/* Headings — Unbounded: impatta, respira, rompe lo schermo */
h1,
h2,
h3,
h4,
h5,
h6,
.font-heading {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.04em;
}

h1 {
    font-size: clamp(2.8rem, 6vw, 5.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
}

h4 {
    font-size: 1.35rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--color-tertiary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin-right: auto;
    margin-left: auto;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}

.container-narrow {
    max-width: var(--container-narrow);
}

.section-padding {
    padding: 6rem 0;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 1.25rem;
}

.mt-30 {
    margin-top: 1.875rem;
}

.mt-40 {
    margin-top: 2.5rem;
}

.mt-60 {
    margin-top: 3.75rem;
}

.mb-20 {
    margin-bottom: 1.25rem;
}

.mb-30 {
    margin-bottom: 1.875rem;
}

.mb-40 {
    margin-bottom: 2.5rem;
}

/* Screen Reader Utility */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.skip-link:focus {
    background-color: var(--bg-secondary);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: 4px;
    top: 10px;
    left: 10px;
    padding: 15px 30px;
    position: absolute;
    z-index: 100000;
    clip: auto;
    clip-path: none;
    height: auto;
    width: auto;
}

/* ==========================================================================
   3. SYSTEM STYLING & BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.85rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 14px rgba(255, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--neon-glow-strong);
    color: #ffffff;
}

/* WordPress Gutenberg Button Block Styles - Fill and Outline */
.wp-block-button .wp-block-button__link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.85rem 1.85rem !important;
    font-family: var(--font-heading) !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: var(--transition-smooth) !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* Fill Style (Ciano Gradient) */
.wp-block-button:not(.is-style-outline) .wp-block-button__link,
.wp-block-button.is-style-fill .wp-block-button__link {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(255, 0, 0, 0.25) !important;
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.wp-block-button.is-style-fill .wp-block-button__link:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--neon-glow-strong) !important;
    color: #ffffff !important;
}

/* Outline Style (Ciano Outline) */
.wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent !important;
    color: var(--color-primary) !important;
    border: 1px solid rgba(255, 0, 0, 0.35) !important;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: rgba(255, 0, 0, 0.05) !important;
    border-color: var(--color-primary) !important;
    box-shadow: var(--neon-glow) !important;
    color: var(--color-primary) !important;
    transform: translateY(-2px) !important;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(10, 9, 3, 0.15);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    box-shadow: var(--neon-glow);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn:disabled,
.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* ==========================================================================
   4. NAVIGATION HEADER
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

/* Pre-launch notice, part of the header itself */
.prelaunch-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: calc(100% - 3rem);
    max-width: 1280px;
    margin: 0.75rem auto !important;
    padding: 0.55rem 1.5rem;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
    text-align: center;
}

.prelaunch-banner-icon {
    flex-shrink: 0;
    color: #ffffff;
}

.prelaunch-banner p {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.01em;
}

.prelaunch-banner strong {
    font-weight: 800;
}

@media (max-width: 600px) {
    .prelaunch-banner {
        width: calc(100% - 1.5rem);
        margin: 0.6rem auto !important;
        padding: 0.55rem 0.85rem;
        gap: 0.4rem;
    }

    .prelaunch-banner-icon {
        width: 15px;
        height: 15px;
    }

    .prelaunch-banner p {
        font-size: 1rem;
        line-height: 1.4;
    }
}

/* Spinge il contenuto più in basso per evitare che il banner pre-partita iva copra le scritte */
.site-main {
    padding-top: 1rem;
}

/* .section-padding aggiunge già 6rem in cima: qui basta la sua spinta naturale.
   Quando pero' .site-main e .section-padding sono sulla STESSA <main> (blog,
   archivio, 404, ricerca, pagine generiche...) la regola sopra sovrascriveva
   silenziosamente quel padding-top, lasciando solo 1rem: troppo poco per non
   finire sotto l'header più alto (menu + banner). Qui lo ripristiniamo. */
.site-main.section-padding {
    padding-top: 9rem;
}

@media (max-width: 600px) {
    .site-main {
        padding-top: 1.5rem;
    }

    .site-main.section-padding {
        padding-top: 8rem;
    }
}

.site-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
}


.wp-block-site-title,
.wp-block-site-title a {
    text-decoration: none;
}

.wp-block-site-title a {
    background: linear-gradient(135deg, var(--text-primary) 35%, var(--color-primary) 70%, #d98c4a 100%);
    background-size: 200% auto;
    background-position: 0% center;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: filter 0.3s ease;
}

.wp-block-site-title a:hover {
    filter: brightness(1.15);
}

/* Le due spazzolate (al caricamento e sull'hover) sono gestite da main.js
   con classi aggiunte/rimosse via JS, non da :hover in CSS: usare :hover
   per cambiare l'animation-name la fa ripartire anche quando il mouse esce,
   riattivando l'effetto sul titolo — cosa che non vogliamo. */
.wp-block-site-title a.site-title-intro {
    animation: textShine 6s linear reverse forwards;
}

.wp-block-site-title a.site-title-hover-sweep {
    animation: textShineHover 3.2s ease-in-out forwards;
}

@keyframes textShineHover {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: 0% center;
    }
}

.logo-accent {
    color: var(--color-primary);
    font-weight: 600;
}

/* Navigation Links */
.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-smooth);
}

.nav-menu a:hover,
.nav-menu a.active,
.nav-menu .current-menu-item>a {
    color: var(--color-primary);
}

.nav-menu a:hover::after,
.nav-menu a.active::after,
.nav-menu .current-menu-item>a::after {
    width: 100%;
}

.header-linkedin::after,
.header-youtube::after {
    display: none !important;
}

.header-linkedin,
.header-youtube {
    transition: var(--transition-smooth);
    color: var(--text-secondary);
}

.header-linkedin:hover,
.header-youtube:hover {
    color: var(--color-primary) !important;
    transform: scale(1.15);
}

/* Hamburger mobile button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-bar {
    width: 30px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

/* Hamburger active transformation */
.menu-toggle[aria-expanded="true"] .hamburger-bar:first-child {
    transform: rotate(45deg);
    background-color: var(--color-primary);
}

.menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger-bar:last-child {
    transform: rotate(-45deg);
    background-color: var(--color-primary);
}

/* ==========================================================================
   5. HERO ARCHITECTURE
   ========================================================================== */
.hero-section {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: calc(95vh - 80px);
}

/* Background grid canvas */
.hero-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

#hero-particles {
    width: 100%;
    height: 100%;
    display: block;
}

/* Backlit glowing background accents */
.hero-glow-1 {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-glow-2 {
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 130, 0, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 57% 43%;
    gap: 3rem;
    align-items: center;
}

.hero-content-side {
    position: relative;
    z-index: 3;
}

.hero-image-side {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 0, 0, 0.06);
    border: 1px solid rgba(255, 0, 0, 0.15);
    color: var(--color-primary);
    padding: 0.45rem 1.1rem;
    border-radius: 99px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
        box-shadow: 0 0 12px #10b981;
    }

    100% {
        transform: scale(0.9);
        opacity: 0.6;
    }
}

.hero-eyebrow {
    display: block;
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    text-transform: uppercase;
    letter-spacing: 0.35rem;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-family: var(--font-body);
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    font-size: clamp(2rem, 4.5vw, 3.8rem) !important;
}

.hero-title-sub {
    color: var(--text-primary);
    font-weight: 800;
}

.text-gradient {
    background: linear-gradient(135deg, var(--text-primary) 15%, var(--color-primary) 50%, var(--color-secondary) 85%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 6s linear infinite;
}

@keyframes textShine {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

.text-accent {
    color: var(--color-primary);
    text-shadow: 0 0 40px rgba(255, 0, 0, 0.35);
}

/* Console tag typing area — sfondo nero da vero terminale, testo ambra stile CRT */
.tech-console {
    background: #0a0903;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--color-primary);
    border-radius: 6px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-family: monospace;
    font-size: clamp(1.05rem, 2.4vw, 1.3rem);
}

.console-prompt {
    color: var(--color-tertiary);
    font-weight: bold;
}

.console-text,
#typing-text {
    color: var(--color-tertiary);
}

.console-cursor {
    color: var(--color-primary);
    font-weight: bold;
    animation: blink-cursor 1s step-end infinite;
}

@keyframes blink-cursor {

    from,
    to {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    max-width: 680px;
    line-height: 1.7;
}

.hero-meta-row {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
}

.hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.hero-meta-item svg {
    flex-shrink: 0;
    color: var(--color-primary);
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* Stylized Hero Photo Layout - Organic Morphing Blob Shape */
.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    border-radius: 15% 65% 65% 15% / 20% 60% 60% 20%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, rgba(255, 248, 230, 0.8) 0%, rgba(255, 255, 255, 0.9) 100%);
    border: 1px solid rgba(10, 9, 3, 0.08);
    box-shadow: inset 0 1px 1px rgba(10, 9, 3, 0.05), 0 20px 45px rgba(10, 9, 3, 0.16);
    padding: 8px;
    transition: var(--transition-smooth);
    animation: morph-blob 10s ease-in-out infinite alternate;
}

.hero-image-wrapper::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 15% 65% 65% 15% / 20% 60% 60% 20%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    z-index: -1;
    opacity: 0.15;
    transition: var(--transition-smooth);
    animation: morph-blob 10s ease-in-out infinite alternate;
}

.hero-image-wrapper:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 0 35px rgba(255, 0, 0, 0.15), 0 20px 50px rgba(10, 9, 3, 0.18);
}

/* Variante "hero grande": immagine più protagonista, senza card/badge intorno,
   con un anello tratteggiato che ruota lentamente per un tocco più dinamico. */
.hero-image-wrapper-large {
    max-width: 620px;
}

.hero-image-wrapper-large::before {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 0, 0, 0.3);
    animation: spin-ring 22s linear infinite;
    pointer-events: none;
    z-index: -2;
}

@keyframes spin-ring {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 782px) {
    .hero-image-wrapper-large {
        max-width: 440px;
    }

    .hero-image-wrapper-large::before {
        inset: -14px;
    }

    /* Da mobile la foto compare subito sotto al titolo, prima del terminale:
       "sfondiamo" le due colonne (display:contents) cosi' i loro figli
       diventano fratelli diretti e possono essere riordinati con order. */
    .hero-section .wp-block-columns.alignwide {
        display: flex;
        flex-direction: column;
    }

    .hero-section .wp-block-columns.alignwide > .wp-block-column {
        display: contents;
    }

    .hero-section .section-subtitle {
        order: 1;
    }

    .hero-section .hero-title {
        order: 2;
    }

    .hero-section .hero-image-wrapper {
        order: 3;
        margin-bottom: 1.5rem;
    }

    .hero-section .tech-console {
        order: 4;
    }

    .hero-section .hero-subtitle {
        order: 5;
    }

    .hero-section .hero-meta-row {
        order: 6;
    }

    .hero-section .wp-block-buttons {
        order: 7;
    }
}

.hero-image-wrapper:hover::after {
    opacity: 0.6;
}

.hero-avatar-container {
    width: 100%;
    height: 100%;
    border-radius: 15% 65% 65% 15% / 20% 60% 60% 20%;
    overflow: hidden;
    position: relative;
    background: var(--bg-secondary);
    animation: morph-blob 10s ease-in-out infinite alternate;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    isolation: isolate;
}

/* Forza figure/link a riempire il contenitore: senza questo l'<a> inline e la
   <figure> "is-resized" (400x400 fissi via WP) lasciano vuoto attorno
   all'immagine quando il blob e' piu' grande di 400px. */
.hero-avatar-container .wp-block-image,
.hero-avatar-container figure,
.hero-avatar-container a {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
}

.hero-avatar-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-smooth);
    border-radius: inherit;
}

.hero-image-wrapper:hover .hero-avatar-container img {
    transform: scale(1.05);
}

/* Morphing Blob Animation Keyframes - swing piu' marcato per un effetto piu' vivo */
@keyframes morph-blob {
    0% {
        border-radius: 8% 68% 58% 12% / 12% 62% 50% 20%;
    }

    33% {
        border-radius: 20% 75% 70% 10% / 22% 70% 62% 15%;
    }

    66% {
        border-radius: 6% 55% 75% 22% / 8% 50% 70% 26%;
    }

    100% {
        border-radius: 15% 65% 65% 15% / 20% 60% 60% 20%;
    }
}

/* Hero Profile Card Wrapper on the right */
.hero-profile-card {
    background: linear-gradient(135deg, rgba(255, 248, 230, 0.45) 0%, rgba(255, 255, 255, 0.75) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(10, 9, 3, 0.06);
    border-radius: 24px;
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    box-shadow: inset 0 1px 1px rgba(10, 9, 3, 0.05), 0 20px 45px rgba(10, 9, 3, 0.14);
    position: relative;
    overflow: hidden;
    max-width: 460px;
    margin: 0 auto;
}

/* Subtle glowing accent left border on the card */
.hero-profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
    opacity: 0.6;
}

.hero-profile-card .hero-image-wrapper {
    max-width: 100%;
}

.hero-profile-card .hero-badge-row {
    margin: 0 !important;
    font-size: 1.05rem !important;
    color: var(--text-secondary);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    align-items: center;
    background: rgba(10, 9, 3, 0.03);
    padding: 0.9rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(10, 9, 3, 0.05);
    width: 100%;
    box-shadow: inset 0 1px 2px rgba(10, 9, 3, 0.06);
    font-family: var(--font-body) !important;
    font-weight: 500 !important;
}

.hero-profile-card .badge-item {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    font-family: var(--font-body) !important;
}

/* Cyber placeholder icon/branding */
.cyber-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    padding: 2rem;
    text-align: center;
    position: relative;
}

.cyber-placeholder svg {
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 12px rgba(255, 0, 0, 0.4));
    animation: floating-svg 4s ease-in-out infinite;
}

.cyber-placeholder-text {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.cyber-placeholder-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    max-width: 250px;
    line-height: 1.4;
}

@keyframes floating-svg {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Floating UI Badges */
.floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(10, 9, 3, 0.08);
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    box-shadow: 0 15px 30px rgba(10, 9, 3, 0.14);
    z-index: 5;
    animation: floating-badge-gentle 6s ease-in-out infinite;
}

.floating-badge-1 {
    top: 15%;
    left: -25px;
    animation-delay: 0s;
}

.floating-badge-2 {
    bottom: 12%;
    right: -25px;
    animation-delay: 1.8s;
}

.badge-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 0, 0, 0.1);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 0, 0, 0.15);
}

.floating-badge-2 .badge-icon-wrapper {
    background: rgba(255, 130, 0, 0.1);
    color: var(--color-secondary);
    border-color: rgba(255, 130, 0, 0.15);
}

.badge-info {
    display: flex;
    flex-direction: column;
}

.badge-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.badge-subtitle {
    font-size: 0.7rem;
    color: var(--text-muted);
}

@keyframes floating-badge-gentle {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-7px) rotate(1deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Hero entrance: la sezione e' gia' visibile al caricamento (above the fold),
   quindi niente scroll-reveal qui — solo una comparsa a cascata all'avvio
   pagina per dare vita al primo impatto. */
@keyframes hero-fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-fade-side {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-fade-in {
    opacity: 0;
    animation: hero-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-fade-in-1 {
    animation-delay: 0.1s;
}

.hero-fade-in-2 {
    animation-delay: 0.25s;
}

.hero-fade-in-3 {
    animation-delay: 0.4s;
}

.hero-fade-in-4 {
    animation-delay: 0.55s;
}

.hero-fade-in-5 {
    animation-delay: 0.7s;
}

.hero-fade-in-6 {
    animation-delay: 0.85s;
}

.hero-fade-in-side {
    opacity: 0;
    animation: hero-fade-side 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.35s;
}

/* ==========================================================================
   6. SERVICES & PRODUCTS GIRD
   ========================================================================== */
.section-subtitle {
    display: block;
    color: var(--color-primary) !important;
    font-family: var(--font-body);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    /* Unbounded a questa larghezza è già molto impegnativo, clamp conservativo */
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.section-desc {
    max-width: 680px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.75;
    color: var(--text-secondary);
    font-weight: 400;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.services-grid-5 {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    margin-top: 4rem !important;
    align-items: stretch !important;
}

/* WordPress's automatic block-gap margin (> * + *) fights with the grid's
   own `gap` above, pushing every card except the first down by an extra
   24px and breaking row alignment. The grid gap already spaces the cards
   correctly, so neutralize that margin here. */
.services-grid-5>* {
    margin-top: 0 !important;
}

@media (min-width: 1024px) {
    .services-grid-5 {
        grid-template-columns: repeat(6, 1fr) !important;
        align-items: stretch !important;
    }

    .services-grid-5>* {
        grid-column: span 2;
    }

    .services-grid-5>*:nth-child(4) {
        grid-column: 2 / span 2;
    }

    .services-grid-5>*:nth-child(5) {
        grid-column: 4 / span 2;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .services-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid-5>* {
        grid-column: span 1;
    }

    .services-grid-5>*:nth-child(5) {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
        width: 100%;
    }
}

/* Glassmorphism card */
.service-card {
    background: linear-gradient(135deg, rgba(255, 248, 230, 0.75) 0%, rgba(253, 240, 210, 0.45) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(10, 9, 3, 0.08);
    box-shadow: inset 0 1px 1px rgba(10, 9, 3, 0.05), 0 10px 30px rgba(10, 9, 3, 0.1);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.service-card .wp-block-buttons {
    margin-top: auto !important;
    position: relative;
    z-index: 2;
}

/* Service Click cover link */
.service-link-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.05) 0%, rgba(255, 130, 0, 0.05) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 0;
    pointer-events: none;
}

/* Top accent color line that lights on hover */
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 1;
    pointer-events: none;
}

.service-card:hover {
    transform: none !important;
    border-color: rgba(255, 0, 0, 0.4) !important;
    box-shadow: var(--neon-glow), 0 10px 30px rgba(10, 9, 3, 0.12) !important;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover::after {
    opacity: 1;
}

.service-icon {
    color: var(--color-primary) !important;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    display: inline-flex;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 0, 0, 0.05) !important;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 0, 0, 0.1) !important;
}

.service-card:hover .service-icon {
    color: var(--color-tertiary);
    background: rgba(255, 0, 0, 0.12);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
    border-color: rgba(255, 0, 0, 0.3);
}

.service-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
    position: relative;
    z-index: 1;
    color: var(--text-primary);
}

.service-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    font-size: 0.95rem;
    color: var(--text-primary);
    border-top: 1px solid rgba(10, 9, 3, 0.08);
    padding-top: 1.25rem;
    position: relative;
    z-index: 1;
}

.service-features li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: -2px;
    color: var(--color-primary);
    font-weight: bold;
}

.service-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 1.5rem;
    font-family: var(--font-heading);
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-card:hover .service-card-cta {
    color: var(--color-tertiary);
}

.service-card-cta svg {
    transition: transform 0.3s ease;
}

.service-card:hover .service-card-cta svg {
    transform: translateX(4px);
}

/* ==========================================================================
   6.5 PORTFOLIO & PROJECTS SECTION
   ========================================================================== */
.portfolio-section {
    position: relative;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Blog/portfolio card grids (homepage preview, blog page, archives, search):
   widen cards to fill the row when there are fewer posts than columns,
   instead of leaving empty fixed-width tracks. */
.wp-block-post-template.is-layout-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
}

.portfolio-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

/* Rende l'intera scheda cliccabile collegandola al link dell'articolo */
.portfolio-card .wp-block-post-title a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
}

.portfolio-image-wrapper {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-bottom: 1px solid rgba(10, 9, 3, 0.08);
}

/* L'immagine in evidenza delle card blog/portfolio (wp:post-featured-image)
   non aveva mai una regola esplicita di object-fit/object-position: il
   ritaglio dipendeva dal comportamento di default del browser/blocco,
   risultando decentrato su alcune immagini. */
.portfolio-card .wp-block-post-featured-image {
    overflow: hidden;
    border-bottom: 1px solid rgba(10, 9, 3, 0.08);
}

.portfolio-card .wp-block-post-featured-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.portfolio-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.tech-glow-icon {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    opacity: 0.3;
    transition: var(--transition-smooth);
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.3));
}

.portfolio-card:hover .tech-glow-icon {
    opacity: 0.8;
    color: var(--color-tertiary);
    filter: drop-shadow(0 0 15px rgba(255, 193, 0, 0.6));
    transform: scale(1.08);
}

.portfolio-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    background: rgba(255, 0, 0, 0.08);
    border: 1px solid rgba(255, 0, 0, 0.2);
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
    font-family: var(--font-heading);
}

.portfolio-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.portfolio-card-title,
.portfolio-card .wp-block-post-title,
.portfolio-card .wp-block-post-title a {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    margin-bottom: 0.85rem;
    font-family: var(--font-heading) !important;
    letter-spacing: -0.02em !important;
}

.portfolio-card-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.portfolio-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: rgba(10, 9, 3, 0.03);
    border: 1px solid rgba(10, 9, 3, 0.06);
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.portfolio-card:hover .tech-tag {
    border-color: rgba(255, 0, 0, 0.2);
    color: var(--text-primary);
}

/* Category/tag badges (core/post-terms) */
.portfolio-card .wp-block-post-terms,
.terms-widget .wp-block-post-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.6rem 0;
    position: relative;
    z-index: 11;
}

.portfolio-card .wp-block-post-terms a,
.terms-widget .wp-block-post-terms a {
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

/* Category: filled accent pill */
.portfolio-card .wp-block-post-terms.taxonomy-category a,
.terms-widget .wp-block-post-terms.taxonomy-category a {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: var(--color-primary);
    padding: 0.3rem 0.8rem;
}

.portfolio-card:hover .wp-block-post-terms.taxonomy-category a {
    background: rgba(255, 0, 0, 0.18);
    border-color: var(--color-primary);
}

.portfolio-card .wp-block-post-terms.taxonomy-category a:hover,
.terms-widget .wp-block-post-terms.taxonomy-category a:hover {
    background: var(--color-primary);
    color: #ffffff;
}

/* Cards in a grid must line up regardless of how many tags a post has —
   clip the tag row to a single line so the excerpt below always starts
   at the same height across cards. The sidebar widget (.terms-widget)
   is excluded on purpose: there we want every tag visible. */
.portfolio-card .wp-block-post-terms.taxonomy-post_tag {
    max-height: 2.2rem;
    overflow: hidden;
}

/* Tags: subtle outline pill */
.portfolio-card .wp-block-post-terms.taxonomy-post_tag a,
.terms-widget .wp-block-post-terms.taxonomy-post_tag a {
    background: rgba(10, 9, 3, 0.03);
    border: 1px solid rgba(10, 9, 3, 0.08);
    color: var(--text-secondary);
    padding: 0.3rem 0.75rem 0.3rem 0.65rem;
}

.portfolio-card .wp-block-post-terms.taxonomy-post_tag a::before,
.terms-widget .wp-block-post-terms.taxonomy-post_tag a::before {
    content: '#';
    opacity: 0.55;
    margin-right: 0.1rem;
}

.portfolio-card .wp-block-post-terms.taxonomy-post_tag a:hover,
.terms-widget .wp-block-post-terms.taxonomy-post_tag a:hover {
    border-color: var(--color-tertiary);
    color: var(--color-tertiary);
    background: rgba(255, 193, 0, 0.08);
}

.portfolio-more-link {
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--color-primary);
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.portfolio-more-link svg {
    transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-more-link {
    color: var(--color-tertiary);
}

.portfolio-card:hover .portfolio-more-link svg {
    transform: translateX(4px);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 0, 0, 0.35);
    box-shadow: 0 15px 35px rgba(10, 9, 3, 0.16), var(--neon-glow);
}

.portfolio-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 1;
}

.portfolio-card:hover::after {
    opacity: 1;
}

/* No results / empty state placeholder */
.no-results-box {
    background: linear-gradient(135deg, rgba(255, 248, 230, 0.7) 0%, rgba(253, 240, 210, 0.4) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(10, 9, 3, 0.06);
    border-radius: 12px;
    padding: 3.5rem 2rem;
    text-align: center;
    max-width: 650px;
    margin: 3rem auto 0;
    box-shadow: 0 10px 30px rgba(10, 9, 3, 0.1);
    position: relative;
    overflow: hidden;
}

.no-results-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    z-index: 1;
}

.no-results-text {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 1.15rem;
    margin: 0;
    letter-spacing: -0.01em;
    font-weight: 600;
    filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.25));
}

/* ==========================================================================
   7. ABOUT ME ("CHI SONO") & SKILLS
   ========================================================================== */
.grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    align-items: center;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.about-meta {
    display: flex;
    gap: 3rem;
    margin-top: 2.5rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-number {
    font-size: 2.5rem;
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.meta-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.skills-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.skills-category {
    margin-bottom: 1.85rem;
}

.skills-category h4 {
    font-size: 0.95rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

/* Capsule badges with hover glow */
.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.skill-badge {
    background: rgba(10, 9, 3, 0.03);
    border: 1px solid rgba(10, 9, 3, 0.06);
    color: var(--text-primary);
    padding: 0.4rem 0.95rem;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.skill-badge:hover {
    background: rgba(255, 0, 0, 0.05);
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* ==========================================================================
   8. BLOG GRIDS
   ========================================================================== */
.flex-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.post-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-smooth);
}

.post-card:hover {
    transform: translateY(-6px);
    border-color: rgba(10, 9, 3, 0.15);
    box-shadow: 0 15px 30px rgba(10, 9, 3, 0.14);
}

.post-card-image-link {
    display: block;
    overflow: hidden;
}

.post-card-image-wrapper {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--bg-secondary);
    overflow: hidden;
}

.post-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-card:hover .post-card-img {
    transform: scale(1.05);
}

.post-card-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.post-card-content {
    padding: 1.85rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}

.post-card-category {
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-card-divider {
    color: rgba(10, 9, 3, 0.1);
}

.post-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.post-card-title a {
    color: var(--text-primary);
}

.post-card-title a:hover {
    color: var(--color-primary);
}

.post-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.post-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(10, 9, 3, 0.05);
    padding-top: 1.25rem;
    margin-top: auto;
}

.post-card-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.post-card-more {
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-heading);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--color-primary);
}

.post-card-more svg {
    transition: transform 0.3s ease;
}

.post-card-more:hover svg {
    transform: translateX(4px);
}

/* ==========================================================================
   9. CONTACT PANEL & FORMS
   ========================================================================== */
.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(10, 9, 3, 0.12);
    position: relative;
}

.contact-card h3 {
    font-family: var(--font-heading);
}

.contact-card p,
.contact-card p a {
    font-family: var(--font-body);
}

.contact-card p a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.contact-card p a:hover {
    filter: brightness(1.25);
}

/* ============================================================
   CONTACT CARD
   ============================================================ */
.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(10, 9, 3, 0.12);
}

/* Stretch both columns to equal height */
.contact-card .contact-two-col {
    align-items: stretch !important;
}

/* Info column */
.contact-info-col {
    padding: 4rem 3.5rem !important;
    border-right: 1px solid rgba(10, 9, 3, 0.15) !important;
}

/* Form column */
.contact-form-col {
    padding: 4rem 3.5rem !important;
}

.contact-headline {
    font-size: 2.2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.contact-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

/* Horizontal rule inside info col */
.contact-info-col .wp-block-separator {
    width: 60px !important;
    margin-left: 0 !important;
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    border-bottom: 2px solid rgba(10, 9, 3, 0.25) !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
}

/* Contact detail list */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.15rem 0 1.15rem 8px;
    border-bottom: 1px solid rgba(10, 9, 3, 0.12);
}

.contact-detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-icon {
    color: var(--color-primary);
    background: rgba(255, 0, 0, 0.06);
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 0, 0, 0.15);
    text-decoration: none;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

a.detail-icon:hover {
    background: rgba(255, 0, 0, 0.15);
    border-color: var(--color-primary);
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.25);
    transform: scale(1.05);
}

.detail-content {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    font-family: var(--font-body);
}

.detail-value {
    font-size: 1.05rem;
    color: var(--text-primary);
    font-weight: 500;
    font-family: var(--font-body);
}

.detail-value a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.detail-value a:hover {
    color: var(--color-primary);
}

/* CF7 submit button */
.contact-form-col .wpcf7-submit,
.contact-form-col input[type="submit"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%) !important;
    color: #ffffff !important;
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    border-radius: 8px !important;
    border: none !important;
    padding: 0.85rem 2.5rem !important;
    cursor: pointer !important;
    transition: var(--transition-smooth) !important;
    box-shadow: 0 4px 14px rgba(255, 0, 0, 0.3) !important;
    letter-spacing: normal !important;
    width: auto !important;
    margin-top: 1.5rem !important;
}

.contact-form-col .wpcf7-submit:hover,
.contact-form-col input[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.5) !important;
    filter: brightness(1.1) !important;
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.placeholder-tip {
    font-size: 0.85rem;
    color: var(--color-tertiary);
    background: rgba(255, 193, 0, 0.05);
    border: 1px solid rgba(255, 193, 0, 0.15);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

/* Inputs styling */
.form-group {
    margin-bottom: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
}

.form-control,
.wpcf7-form-control:not(.wpcf7-submit),
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
select,
textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(10, 9, 3, 0.1);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-control:focus,
.wpcf7-form-control:not(.wpcf7-submit):focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.8);
}

.form-control:disabled,
.wpcf7-form-control:disabled,
input:disabled,
textarea:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ==========================================================================
   10. STATIC & SINGLE POST TEMPLATES
   ========================================================================== */
.singular-page,
.singular-post {
    padding: 4rem 0;
}

.entry-header {
    margin-bottom: 4rem;
}

.entry-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(10, 9, 3, 0.03);
    border: 1px solid rgba(10, 9, 3, 0.06);
    padding: 0.4rem 1rem;
    border-radius: 99px;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
}

.entry-category {
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
}

.entry-meta-divider {
    color: rgba(10, 9, 3, 0.1);
}

.entry-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
}

.entry-meta-date {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.entry-thumbnail {
    margin-top: 3.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(10, 9, 3, 0.14);
}

.featured-image {
    width: 100%;
    object-fit: cover;
    max-height: 550px;
}

/* Article content layout */
.entry-content {
    line-height: 1.8;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.entry-content p {
    margin-bottom: 1.85rem;
    color: var(--text-secondary);
}

.entry-content h2 {
    font-size: 1.85rem;
    margin: 3.5rem 0 1.25rem 0;
}

.entry-content h3 {
    font-size: 1.45rem;
    margin: 2.5rem 0 1rem 0;
}

.entry-content blockquote {
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
    background: rgba(255, 0, 0, 0.03);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.entry-content blockquote p {
    margin-bottom: 0;
    color: var(--text-primary);
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 1.85rem 1.5rem;
    color: var(--text-secondary);
}

.entry-content li {
    margin-bottom: 0.5rem;
}

/* Entry footer & pagination */
.entry-footer {
    border-top: 1px solid rgba(10, 9, 3, 0.05);
    padding-top: 2rem;
    margin-top: 4rem;
}

.entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.entry-tags a {
    background: rgba(10, 9, 3, 0.02);
    border: 1px solid rgba(10, 9, 3, 0.05);
    color: var(--text-secondary);
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    border-radius: 4px;
}

.entry-tags a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.post-detail-image {
    max-width: 70%;
    margin-left: auto !important;
    margin-right: auto !important;
}

.post-detail-image img {
    object-position: 50% 20%;
}

.post-navigation {
    border-top: 1px solid rgba(10, 9, 3, 0.05);
    padding-top: 2.5rem;
}

.nav-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.nav-previous,
.nav-next {
    display: flex;
    flex-direction: column;
}

.nav-next {
    text-align: right;
}

.nav-indicator {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05rem;
    margin-bottom: 0.5rem;
}

.nav-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.nav-previous a:hover .nav-title,
.nav-next a:hover .nav-title {
    color: var(--color-primary);
}

/* ==========================================================================
   11. CUSTOM PRODUCTS GRID TEMPLATE (page-prodotti.php)
   ========================================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: var(--neon-glow), 0 10px 30px rgba(10, 9, 3, 0.12);
}

.product-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-primary);
    background: rgba(255, 0, 0, 0.06);
    border: 1px solid rgba(255, 0, 0, 0.15);
    padding: 0.3rem 0.65rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.product-badge.text-accent-badge {
    color: var(--color-tertiary);
    background: rgba(255, 193, 0, 0.06);
    border-color: rgba(255, 193, 0, 0.15);
}

.product-badge.text-secondary-badge {
    color: var(--color-secondary);
    background: rgba(255, 130, 0, 0.06);
    border-color: rgba(255, 130, 0, 0.15);
}

.product-icon {
    color: var(--color-primary);
    background: rgba(10, 9, 3, 0.02);
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(10, 9, 3, 0.05);
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
}

.product-card:hover .product-icon {
    color: var(--bg-color);
    background: var(--color-primary);
    box-shadow: 0 0 15px var(--color-primary);
    border-color: var(--color-primary);
}

.product-meta-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.product-price {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-top: 1px solid rgba(10, 9, 3, 0.05);
    padding-top: 1.25rem;
}

.spec-tag {
    background: rgba(10, 9, 3, 0.02);
    border: 1px solid rgba(10, 9, 3, 0.05);
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    border-radius: 4px;
}

/* ==========================================================================
   12. COMMENTS ARCHITECTURE (comments.php)
   ========================================================================== */
.comments-area {
    border-top: 1px solid rgba(10, 9, 3, 0.05);
    padding-top: 4rem;
    margin-top: 4rem;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
}

.comment-list {
    list-style: none;
    margin-bottom: 4rem;
}

.comment-list .comment-body {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.comment-meta img.avatar {
    border-radius: 50%;
    border: 2px solid var(--color-primary);
}

.comment-author .fn {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
}

.comment-metadata {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.comment-content {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.comment-reply {
    text-align: right;
}

.comment-reply a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid rgba(10, 9, 3, 0.07);
    padding: 0.4rem 1rem;
    border-radius: 4px;
    color: var(--text-primary);
}

.comment-reply a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.15);
}

/* Replies indenting */
.comment-list .children {
    list-style: none;
    margin-left: 3rem;
}

/* Form comments */
.comment-respond {
    background: rgba(10, 9, 3, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
}

.comment-reply-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* ==========================================================================
   13. SEARCH UTILS & PAGINATION
   ========================================================================== */
.search-form {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.search-form-label {
    flex-grow: 1;
}

.search-form .search-submit {
    padding: 0.75rem 1.25rem;
}

.navigation.pagination {
    margin-top: 4rem;
    text-align: center;
}

.pagination .nav-links {
    display: inline-flex;
    gap: 0.5rem;
    grid-template-columns: none;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    font-weight: 600;
    font-family: var(--font-heading);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    border-color: var(--color-primary);
    background: rgba(255, 0, 0, 0.05);
    color: var(--color-primary);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.1);
}

/* No posts fallback block */
.no-posts-found {
    grid-column: 1 / -1;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   14. 404 ERROR PAGE
   ========================================================================== */
.error-page-main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(80vh - 80px);
}

.error-404-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.error-code {
    font-size: clamp(6rem, 15vw, 10rem);
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    text-shadow: 0 0 40px rgba(255, 0, 0, 0.3);
}

/* ==========================================================================
   15. FOOTER STYLING
   ========================================================================== */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 3rem 0;
    margin-top: 6rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 45% 25% 30%;
    gap: 4rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.footer-tagline {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 320px;
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-site-link {
    color: var(--text-secondary);
}

.footer-widget-title {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.footer-menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-menu-list a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-menu-list a:hover {
    color: var(--color-primary);
    padding-left: 4px;
}

.footer-social-icon {
    transition: var(--transition-smooth);
}

.footer-social-icon:hover {
    color: var(--color-primary) !important;
    background: rgba(255, 0, 0, 0.08) !important;
    border-color: rgba(255, 0, 0, 0.3) !important;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
    transform: translateY(-3px);
}

/* ==========================================================================
   16. INTERSECTION OBSERVER ANIMATIONS (REVEAL ON SCROLL)
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-card.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   17. RESPONSIVE MOBILE-FIRST ADAPTATIONS
   ========================================================================== */
@media (max-width: 1024px) {

    .services-grid,
    .products-grid,
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .footer-tech-info {
        grid-column: 1 / -1;
    }
}

@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        text-align: center;
    }

    .hero-content-side {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-meta-row {
        align-items: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image-side {
        order: -1;
        /* Show tech photo first on tablets/mobile */
        margin-bottom: 1rem;
    }

    .floating-badge {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 4rem 0;
    }

    /* Mobile Nav Toggle showing */
    .menu-toggle {
        display: flex;
    }

    .primary-menu-wrapper {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100vw;
        height: calc(100vh - 80px);
        background: var(--bg-color);
        backdrop-filter: blur(15px);
        z-index: 999;
        padding: 3rem 2rem;
        border-top: 1px solid var(--border-color);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        flex-direction: column;
    }

    .primary-menu-wrapper.active {
        transform: translateX(0);
    }

    .nav-menu {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

    .nav-menu a {
        font-size: 1.35rem;
    }

    .grid-2col {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .contact-info-panel {
        border-right: none !important;
        border-bottom: 1px solid rgba(10, 9, 3, 0.08) !important;
        padding: 3rem 2rem;
    }

    .contact-form-panel {
        padding: 3rem 2rem;
    }

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

@media (max-width: 640px) {

    .services-grid,
    .blog-grid,
    .products-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-meta {
        gap: 2rem;
        flex-wrap: wrap;
    }

    .nav-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Esercizio: Scatola Citazione Cyber */
.cyber-quote-box {
    background: rgba(255, 255, 255, 0.7);
    /* Sfondo scuro semi-trasparente */
    border: 1px dashed var(--color-primary);
    /* Bordo tratteggiato viola */
    border-radius: 12px;
    padding: 2.5rem;
    position: relative;
    transition: all 0.4s ease;
    /* Transizione fluida per l'animazione */
    margin: 2rem 0;
}

/* Quando passi il mouse sopra il box... */
.cyber-quote-box:hover {
    border-style: solid;
    /* Il bordo diventa continuo */
    border-color: var(--color-secondary);
    /* Il colore passa a Cyan */
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.25);
    /* Crea un bagliore neon attorno al box */
    transform: translateY(-5px);
    /* Solleva leggermente il box */
}

/* Stili per il Pattern Esperienze e Timeline */
.experiences-timeline-section {
    margin: 3rem 0;
}

.timeline-container {
    position: relative;
    border-left: 2px solid rgba(255, 130, 0, 0.2);
    /* Riga della timeline */
    padding-left: 2rem;
    margin-left: 0.5rem;
    margin-top: 3rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 3.5rem;
    background: rgba(255, 248, 230, 0.6);
    border: 1px solid rgba(10, 9, 3, 0.05);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(8px);
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 2.2rem;
    left: -2.6rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary);
    border: 3px solid var(--bg-color);
}

.timeline-role {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.timeline-meta {
    font-family: var(--wp--preset--font-family--mono);
    color: var(--color-secondary);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   11. SECTIONS STYLE FOR LANDING PAGE SEO AUTOMATICO
   ========================================================================== */

/* Hero Section Animazione Fade-in */
.hero-fade-in {
    animation: heroFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sfondo speciale Hero SEO */
.hero-section-seo {
    position: relative;
    overflow: hidden;
}

/* Numeri Giganti per Risultati Reali */
.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 900;
    color: var(--color-tertiary);
    display: block;
    line-height: 1;
    letter-spacing: -0.05em;
    text-shadow: 0 0 25px rgba(255, 193, 0, 0.25);
    margin-bottom: 0.5rem;
    transition: var(--transition-smooth);
}

.stat-card:hover .stat-number {
    transform: scale(1.05);
    color: var(--color-primary);
    text-shadow: 0 0 25px rgba(255, 0, 0, 0.35);
}

.stat-card {
    background: rgba(255, 248, 230, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    border-color: rgba(255, 193, 0, 0.3);
    box-shadow: 0 10px 25px rgba(10, 9, 3, 0.12);
}

/* Compare list reset */
.compare-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.compare-list li {
    margin-bottom: 1rem !important;
    font-size: 1.05rem;
    line-height: 1.5;
    position: relative;
    padding-left: 0 !important;
}

/* Pipeline automatizzata */
.pipeline-step-card {
    background: rgba(255, 248, 230, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.pipeline-step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
    opacity: 0;
    transition: var(--transition-smooth);
}

.pipeline-step-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 130, 0, 0.35);
    box-shadow: 0 15px 35px rgba(10, 9, 3, 0.14), var(--neon-purple-glow);
}

.pipeline-step-card:hover::before {
    opacity: 1;
}

.pipeline-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-secondary);
    display: block;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.pipeline-title {
    font-size: 1.25rem;
    font-weight: 750;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

/* Prezzi & Box */
.price-box {
    background: rgba(255, 248, 230, 0.75);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem 2.5rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.price-box-featured {
    border-color: rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.025);
}

.price-box:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: 0 15px 35px rgba(10, 9, 3, 0.14), var(--neon-glow);
}

.price-box-featured:hover {
    border-color: #10b981;
    box-shadow: 0 15px 40px rgba(10, 9, 3, 0.16), 0 0 25px rgba(16, 185, 129, 0.3);
}

.price-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #10b981;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.price-value {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
}

.price-period {
    font-size: 1rem;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-weight: 400;
}

.price-features-list,
.add-on-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.price-features-list li,
.add-on-list li {
    margin-bottom: 0.85rem !important;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    padding-left: 1.5rem !important;
}

.price-features-list li::before,
.add-on-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

.price-box-featured .price-features-list li::before {
    color: #10b981;
}

/* Tabella di Confronto */
.comparison-table table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    font-size: 0.95rem;
}

.comparison-table th {
    background: rgba(255, 248, 230, 0.8);
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.comparison-table th,
.comparison-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(10, 9, 3, 0.06);
    text-align: left;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:last-child {
    background: rgba(255, 193, 0, 0.05);
}

.comparison-table tbody tr:last-child td {
    border-bottom-color: rgba(255, 193, 0, 0.15) !important;
}

.comparison-table tr:hover:not(:last-child) td {
    background: rgba(10, 9, 3, 0.02);
}

/* Accordion FAQ */
.faq-accordion details {
    background: rgba(255, 248, 230, 0.94);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem 1.75rem;
    margin-bottom: 1.25rem;
    transition: var(--transition-smooth);
}

.faq-accordion details[open] {
    border-color: var(--color-primary);
    box-shadow: var(--neon-glow);
}

.faq-accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    list-style: none;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.1rem;
    cursor: pointer;
    outline: none;
    user-select: none;
    letter-spacing: -0.01em;
}

.faq-accordion summary::-webkit-details-marker {
    display: none;
}

.faq-accordion summary::after {
    content: "";
    flex-shrink: 0;
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.faq-accordion details[open] summary::after {
    transform: rotate(-135deg);
}

.faq-accordion summary:hover {
    color: var(--color-primary);
}

.faq-accordion details[open] summary {
    color: var(--color-primary);
}

.faq-accordion details p {
    margin-top: 1rem;
    margin-bottom: 0;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

/* Griglie interne di posizionamento */
@media (min-width: 768px) {
    .stats-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 1.5rem !important;
    }

    .pricing-grid {
        display: flex !important;
        gap: 2rem !important;
    }
}

@media (max-width: 767px) {

    .stats-grid,
    .pricing-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    .price-box {
        width: 100% !important;
        flex-basis: auto !important;
        padding: 2rem !important;
    }

    .comparison-table {
        overflow-x: auto;
    }

    .comparison-table table {
        min-width: 600px;
    }

    .faq-accordion details {
        padding: 1rem 1.25rem;
    }

    .faq-accordion summary {
        font-size: 1rem;
    }
}

/* Accordion FAQ — Yoast SEO FAQ block
   Visibility/toggle logic is handled entirely by the "FAQ Schema Block to
   Accordion" plugin (jQuery slideUp/slideDown + .faq-q-open/.faq-a-open
   classes, and it swaps the <strong class="schema-faq-question"> for an
   <a class="schema-faq-question">). This file only styles appearance —
   it must never set display/max-height/opacity on .schema-faq-answer,
   or it will fight the plugin's own show/hide animation. */
.wp-block-yoast-faq-block {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.wp-block-yoast-faq-block .schema-faq-section {
    display: block;
    background: rgba(255, 248, 230, 0.94) !important;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem 1.75rem;
    margin-bottom: 1.25rem;
    transition: var(--transition-smooth);
}

.wp-block-yoast-faq-block .schema-faq-section:has(.schema-faq-question.faq-q-open) {
    border-color: var(--color-primary);
    box-shadow: var(--neon-glow);
}

.wp-block-yoast-faq-block .schema-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary) !important;
    background: transparent !important;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
    text-decoration: none !important;
    cursor: pointer;
    user-select: none;
}

.wp-block-yoast-faq-block .schema-faq-question:hover {
    color: var(--color-primary) !important;
}

.wp-block-yoast-faq-block .schema-faq-question::after {
    content: "";
    flex-shrink: 0;
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.wp-block-yoast-faq-block .schema-faq-question.faq-q-open {
    color: var(--color-primary) !important;
}

.wp-block-yoast-faq-block .schema-faq-question.faq-q-open::after {
    transform: rotate(-135deg);
}

.wp-block-yoast-faq-block .schema-faq-answer {
    margin-top: 1rem !important;
    color: var(--text-secondary) !important;
    background: transparent !important;
    line-height: 1.6;
    font-size: 1rem;
}

.wp-block-yoast-faq-block .schema-faq-answer a {
    color: var(--color-primary) !important;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.3s ease;
}

.wp-block-yoast-faq-block .schema-faq-answer a:hover {
    color: var(--color-secondary) !important;
}

@media (max-width: 767px) {
    .wp-block-yoast-faq-block .schema-faq-section {
        padding: 1rem 1.25rem;
    }

    .wp-block-yoast-faq-block .schema-faq-question {
        font-size: 1rem;
    }
}

/* ==========================================================================
   7. DETTAGLIO SERVIZIO (PAGE-SERVICE) STYLING
   ========================================================================== */
.service-hero-section {
    position: relative;
    background-image:
        radial-gradient(circle at 85% 20%, rgba(255, 0, 0, 0.04) 0%, transparent 45%),
        radial-gradient(circle at 15% 80%, rgba(255, 130, 0, 0.03) 0%, transparent 45%);
    border-bottom: 1px solid var(--border-color);
    padding: 6rem 0;
}

.service-eyebrow {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-weight: 700;
    margin-bottom: 1.25rem !important;
}

.service-title-detail {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem) !important;
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem !important;
}

.service-excerpt {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2.25rem !important;
}

.service-excerpt p,
.wp-block-post-excerpt.service-excerpt .wp-block-post-excerpt__content {
    font-size: 1.2rem !important;
    line-height: 1.7 !important;
    color: var(--text-secondary) !important;
    margin-bottom: 0 !important;
}

.service-hero-img-container {
    position: relative;
    border-radius: 12px;
    padding: 8px;
    background: linear-gradient(135deg, rgba(255, 248, 230, 0.8) 0%, rgba(255, 255, 255, 0.95) 100%);
    border: 1px solid rgba(10, 9, 3, 0.08);
    box-shadow: 0 15px 35px rgba(10, 9, 3, 0.14);
    transition: var(--transition-smooth);
}

.service-hero-img-container:hover {
    border-color: rgba(255, 0, 0, 0.35);
    box-shadow: var(--neon-glow), 0 20px 40px rgba(10, 9, 3, 0.16);
}

.service-hero-img-container img,
.service-hero-img-container .wp-block-post-featured-image {
    border-radius: 8px;
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 0 !important;
}

.service-content-section {
    padding: 5rem 0;
}

.service-content-card {
    background: rgba(255, 248, 230, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(10, 9, 3, 0.05);
    border-radius: 12px;
    padding: 3rem 2.5rem;
}

.service-content-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.sidebar-widget {
    background: rgba(255, 248, 230, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(10, 9, 3, 0.06);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.sidebar-widget::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    opacity: 0.5;
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.25rem !important;
    color: var(--text-primary);
}

.widget-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.5rem !important;
}

.widget-spec-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

.widget-spec-list li {
    font-size: 0.95rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(10, 9, 3, 0.05);
    color: var(--text-primary) !important;
    display: flex;
    justify-content: space-between;
}

.widget-spec-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget-spec-list li span {
    color: var(--text-muted);
}

.sidebar-menu-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

.sidebar-menu-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(10, 9, 3, 0.05);
}

.sidebar-menu-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-menu-list li a {
    color: var(--text-secondary) !important;
    text-decoration: none !important;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-menu-list li a::before {
    content: '→';
    color: var(--color-primary);
    transition: var(--transition-smooth);
    opacity: 0.5;
}

.sidebar-menu-list li a:hover {
    color: var(--color-primary) !important;
    padding-left: 5px;
}

.sidebar-menu-list li a:hover::before {
    opacity: 1;
}

.cta-widget {
    background: linear-gradient(135deg, rgba(255, 130, 0, 0.04) 0%, rgba(255, 0, 0, 0.04) 100%);
    border: 1px solid rgba(255, 0, 0, 0.15);
}

.cta-widget::after {
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
}

.service-related-section {
    border-top: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.4);
    padding: 6rem 0;
}

.section-titleRelated {
    font-size: clamp(2rem, 3.5vw, 2.8rem) !important;
    font-weight: 800;
    margin-bottom: 0.75rem !important;
    font-family: var(--font-heading);
    color: var(--text-primary);
}

.section-descRelated {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

@media (max-width: 991px) {
    .service-content-card {
        padding: 2rem 1.5rem;
    }
}

/* ==========================================================================
   WORKFLOW STEPS (COME FUNZIONA)
   ========================================================================== */
.workflow-section {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    position: relative;
    margin-top: 4rem;
}

.workflow-item {
    background: rgba(10, 9, 3, 0.02);
    border: 1px solid rgba(10, 9, 3, 0.05);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(10, 9, 3, 0.06);
}

.workflow-item:hover {
    transform: translateY(-5px);
    background: rgba(10, 9, 3, 0.04);
    border-color: var(--color-primary);
    box-shadow: 0 15px 35px rgba(255, 0, 0, 0.15);
}

.workflow-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--text-primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}

.workflow-item h4 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.workflow-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-family: var(--font-body);
}

/* Connector lines on Desktop */
@media (min-width: 992px) {
    .workflow-item:not(:nth-child(3n))::after {
        content: '';
        position: absolute;
        top: 48px;
        /* aligns with number vertical center */
        left: calc(100% + 0.5px);
        width: calc(3rem - 1px);
        /* covers the gap */
        height: 2px;
        background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
        opacity: 0.4;
        z-index: 1;
    }
}

@media (max-width: 991px) {
    .workflow-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ==========================================================================
   PAGE ANCHOR NAVIGATION INDEX
   ========================================================================== */
.page-anchor-nav {
    position: sticky;
    top: 150px;
    z-index: 1000;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.75rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.85rem 2rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 0, 0, 0.2);
    width: fit-content;
    margin: 3.5rem auto 2.5rem auto;
    box-shadow: 0 10px 40px rgba(10, 9, 3, 0.14), 0 0 20px rgba(255, 0, 0, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

#cose-perche,
#come-funziona,
#valore-nascosto,
#risultati-reali,
#pricing-section,
#faq-section,
#contacts-section {
    scroll-margin-top: 220px;
}

.page-anchor-nav .anchor-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-smooth);
}

.page-anchor-nav .anchor-link:hover,
.page-anchor-nav .anchor-link.active {
    color: var(--color-primary);
    transform: translateY(-1px);
}

/* ==========================================================================
   SIDE FLOATING SCROLL NAVIGATION WIDGET
   ========================================================================== */
.scroll-navigation-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 9990;
}

.scroll-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 0, 0, 0.2);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(10, 9, 3, 0.1);
    backdrop-filter: blur(8px);
    padding: 0;
}

.scroll-btn:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
    transform: translateY(-2px);
}

.scroll-btn.scroll-down:hover {
    transform: translateY(2px);
}

/* Footer copyright text accessibility contrast fix */
.footer-copyright {
    color: var(--text-muted) !important;
    font-size: 0.85rem !important;
}

/* ==========================================================================
   12. SERVICE PAGES CUSTOM LAYOUT COMPONENTS
   ========================================================================== */

/* Subtitle & Headings */
.service-section-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.service-section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--color-primary);
}

/* Problem Box */
.service-problem-box {
    background: rgba(239, 68, 68, 0.025) !important;
    border: 1px solid rgba(239, 68, 68, 0.15) !important;
    border-left: 4px solid #ef4444 !important;
    border-radius: 8px !important;
    padding: 1.75rem 2rem !important;
    margin-bottom: 2.5rem !important;
}

.service-problem-box h3 {
    font-family: var(--font-heading) !important;
    color: #ef4444 !important;
    font-size: 1.3rem !important;
    font-weight: 750 !important;
    margin-top: 0 !important;
    margin-bottom: 0.75rem !important;
}

.service-problem-box p {
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
    color: var(--text-secondary) !important;
    margin: 0 !important;
}

/* Cosa Faccio List / Grid */
.service-features-box {
    margin-bottom: 2.5rem !important;
}

.service-features-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.service-features-list li {
    position: relative !important;
    padding-left: 2rem !important;
    margin-bottom: 1.25rem !important;
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
    color: var(--text-secondary) !important;
}

.service-features-list li strong {
    color: var(--text-primary) !important;
}

.service-features-list li::before {
    content: '✓' !important;
    position: absolute !important;
    left: 0 !important;
    top: 0.1rem !important;
    color: var(--color-tertiary) !important;
    font-weight: 900 !important;
    font-size: 1.1rem !important;
}

/* Caso Reale Card */
.service-case-box {
    background: rgba(255, 248, 230, 0.75) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 2.5rem 2.25rem !important;
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(10, 9, 3, 0.06) !important;
}

.service-case-box::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 3px !important;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary)) !important;
}

.service-case-box h4 {
    font-family: var(--font-heading) !important;
    color: var(--text-primary) !important;
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    margin-top: 0 !important;
    margin-bottom: 1.5rem !important;
    letter-spacing: -0.01em !important;
}

.service-case-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem !important;
    margin-bottom: 2rem !important;
}

@media (max-width: 768px) {
    .service-case-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

.case-grid-item {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
}

.case-grid-item strong {
    color: var(--text-primary) !important;
    display: block !important;
    font-family: var(--font-heading) !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 0.35rem !important;
}

.case-grid-item.context strong {
    color: var(--color-primary) !important;
}

.case-grid-item.problem strong {
    color: #ef4444 !important;
}

.case-grid-item.solution strong {
    color: var(--color-secondary) !important;
}

.case-grid-item.result strong {
    color: var(--color-tertiary) !important;
}

.case-grid-item p {
    margin: 0 !important;
    color: var(--text-secondary) !important;
}

/* Tecnologie */
.service-tech-box {
    margin-bottom: 3rem !important;
}

.tech-badges-list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
    margin-top: 1rem !important;
}

.tech-badge-item {
    background: rgba(10, 9, 3, 0.03) !important;
    border: 1px solid rgba(10, 9, 3, 0.08) !important;
    color: var(--text-secondary) !important;
    padding: 0.45rem 1rem !important;
    border-radius: 30px !important;
    font-family: var(--wp--preset--font-family--mono) !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    transition: var(--transition-smooth) !important;
    display: inline-block !important;
}

.tech-badge-item:hover {
    background: rgba(255, 0, 0, 0.06) !important;
    border-color: rgba(255, 0, 0, 0.3) !important;
    color: var(--color-primary) !important;
    transform: translateY(-1px) !important;
}

/* Bottom CTA Banner */
.service-cta-banner {
    background: linear-gradient(135deg, rgba(255, 130, 0, 0.03) 0%, rgba(255, 0, 0, 0.03) 100%) !important;
    border: 1px solid rgba(255, 0, 0, 0.15) !important;
    border-radius: 12px !important;
    padding: 3rem 2.5rem !important;
    text-align: center !important;
    margin-top: 4rem !important;
    margin-bottom: 1.5rem !important;
    position: relative !important;
    overflow: hidden !important;
}

.service-cta-banner::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 3px !important;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary)) !important;
}

.service-cta-banner h3 {
    font-family: var(--font-heading) !important;
    color: var(--text-primary) !important;
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    margin-top: 0 !important;
    margin-bottom: 0.75rem !important;
}

.service-cta-banner p {
    font-size: 1.1rem !important;
    color: var(--text-secondary) !important;
    margin-bottom: 2rem !important;
    max-width: 600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ==========================================================================
   RESTORED CUSTOM STYLES
   ========================================================================== */

/* Footer scroll navigation widget (Up / Down Section Arrows) */
.scroll-navigation-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 9990;
}

.scroll-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 0, 0, 0.2);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(10, 9, 3, 0.1);
    backdrop-filter: blur(8px);
    padding: 0;
}

.scroll-btn:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
    transform: translateY(-2px);
}

.scroll-btn.scroll-down:hover {
    transform: translateY(2px);
}

/* Automatic SEO Page Anchor Navigation Menu */
.page-anchor-nav {
    position: sticky;
    top: 150px;
    z-index: 1000;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.75rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.85rem 2rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 0, 0, 0.2);
    width: fit-content;
    margin: 3.5rem auto 2.5rem auto;
    box-shadow: 0 10px 40px rgba(10, 9, 3, 0.14), 0 0 20px rgba(255, 0, 0, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.page-anchor-nav .anchor-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-smooth);
}

.page-anchor-nav .anchor-link:hover,
.page-anchor-nav .anchor-link.active {
    color: var(--color-primary);
    transform: translateY(-1px);
}

/* Unified Contact Info Links (Phone and Email) */
.contact-info-link {
    color: inherit !important;
    text-decoration: none !important;
    transition: var(--transition-smooth) !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
}

.contact-info-link:hover {
    color: var(--color-primary) !important;
    text-shadow: var(--neon-glow) !important;
}

/* ========================================================================== */
/* WP BLOCK OVERRIDES: About Section Button                                   */
/* ========================================================================== */

/* Fix button alignment inside the About block (perche-me) */
#perche-me .wp-block-buttons {
    display: flex;
    justify-content: flex-start;
    margin-top: 1.5rem !important;
}

#perche-me .wp-block-buttons.is-layout-flex {
    margin-left: 0 !important;
    margin-right: auto !important;
    width: 100% !important;
    max-width: none !important;
}

/* ==========================================================================
   18. HOMEPAGE SECTION COLOR ZONES
   Ogni sezione ha un mood cromatico proprio (sempre chiaro) invece dello
   sfondo uniforme, cosi' la home smette di leggersi come un blocco unico.
   ========================================================================== */
.about-section {
    background-color: #fff3e0;
    background-image:
        radial-gradient(circle at 12% 15%, rgba(255, 130, 0, 0.14) 0%, transparent 55%),
        radial-gradient(circle at 88% 85%, rgba(255, 130, 0, 0.07) 0%, transparent 50%);
}

.services-section {
    background-color: #ffefec;
    background-image:
        radial-gradient(circle at 85% 10%, rgba(255, 0, 0, 0.13) 0%, transparent 55%),
        radial-gradient(circle at 10% 90%, rgba(255, 0, 0, 0.06) 0%, transparent 50%);
}

.products-section {
    background-color: #fff8e1;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(255, 193, 0, 0.13) 0%, transparent 55%),
        radial-gradient(circle at 90% 80%, rgba(255, 193, 0, 0.07) 0%, transparent 50%);
}

.portfolio-section {
    background-color: #fdf3e7;
    background-image:
        radial-gradient(circle at 10% 10%, rgba(255, 0, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 90% 90%, rgba(255, 130, 0, 0.1) 0%, transparent 50%);
}

.contact-section {
    background-color: #fff1e8;
    background-image:
        radial-gradient(circle at 80% 15%, rgba(255, 0, 0, 0.12) 0%, transparent 55%),
        radial-gradient(circle at 15% 85%, rgba(255, 130, 0, 0.07) 0%, transparent 50%);
}