/*
Theme Name: Project Thinking Lab
Theme URI: https://www.projectthinkinglab.it/
Author: Project Thinking Lab
Description: Tema WordPress personalizzato per Project Thinking Lab.
Version: 2.0.0
Text Domain: project-thinking-lab
*/

:root {
    --ptl-primary: #00584b;
    --ptl-primary-hover: #004238;
    --ptl-accent: #00a86b;
    --ptl-accent-light: #e6f7f3;
    --ptl-sky: #0ea5e9;
    --ptl-sky-light: #e0f2fe;
    --ptl-navy-dark: #0f172a;
    --ptl-navy-slate: #1e293b;
    --ptl-bg: #ffffff;
    --ptl-surface: #ffffff;
    --ptl-surface-card: #f8fafc;
    --ptl-border: #e2e8f0;
    --ptl-text: #1e293b;
    --ptl-text-muted: #64748b;
    --ptl-title: #0f172a;
    --ptl-radius-sm: 12px;
    --ptl-radius: 18px;
    --ptl-radius-lg: 28px;
    --ptl-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    --ptl-shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.12);
    --ptl-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================================================== 
   Reset, base e accessibilità
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--ptl-bg);
    color: var(--ptl-text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.menu-open {
    overflow: hidden;
}

img,
video,
svg {
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: var(--ptl-primary);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color var(--ptl-transition), background-color var(--ptl-transition), border-color var(--ptl-transition), transform var(--ptl-transition), box-shadow var(--ptl-transition);
}

a:hover {
    color: var(--ptl-primary-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(14, 165, 233, 0.45);
    outline-offset: 3px;
}

button,
input,
select,
textarea {
    font: inherit;
}

.wrap,
.container {
    width: min(100% - 48px, 1200px);
    margin-inline: auto;
}

.site-main {
    min-height: 50vh;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    position: fixed !important;
    top: 12px;
    left: 12px;
    z-index: 10000;
    width: auto;
    height: auto;
    padding: 10px 16px;
    margin: 0;
    clip: auto;
    background: #ffffff;
    color: var(--ptl-title);
    border-radius: 8px;
    box-shadow: var(--ptl-shadow);
}

/* ========================================================================== 
   Header e navigazione
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 14px 0;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #eef2f6;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.035);
    backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand-block {
    min-width: 0;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.brand-logo-badge {
    display: inline-flex;
    width: 62px;
    height: 46px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 11px;
    background: var(--ptl-title);
    color: #ffffff;
    font-size: 0.96rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.brand-text-group {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.site-title {
    color: var(--ptl-title);
    font-size: clamp(1.08rem, 2vw, 1.36rem);
    font-weight: 850;
    line-height: 1.15;
    white-space: nowrap;
}

.site-tagline {
    color: var(--ptl-text-muted);
    font-size: 0.62rem;
    font-weight: 750;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.main-nav .primary-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 9px 12px;
    border-radius: 10px;
    color: var(--ptl-text);
    font-size: 0.94rem;
    font-weight: 680;
    text-decoration: none;
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
    background: var(--ptl-accent-light);
    color: var(--ptl-primary);
}

.main-nav .menu-item-cta > a {
    padding-inline: 20px;
    border-radius: 999px;
    background: var(--ptl-primary);
    color: #ffffff;
}

.main-nav .menu-item-cta > a:hover,
.main-nav .menu-item-cta.current-menu-item > a {
    background: var(--ptl-primary-hover);
    color: #ffffff;
}

.mobile-menu-button {
    display: none;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--ptl-border);
    border-radius: 12px;
    background: #ffffff;
    color: var(--ptl-title);
    cursor: pointer;
}

.mobile-menu-line {
    width: 22px;
    height: 2px;
    background: currentColor;
    transition: transform var(--ptl-transition), opacity var(--ptl-transition);
}

.mobile-menu-button.is-active .mobile-menu-line:nth-of-type(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-button.is-active .mobile-menu-line:nth-of-type(2) {
    opacity: 0;
}

.mobile-menu-button.is-active .mobile-menu-line:nth-of-type(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========================================================================== 
   Componenti condivisi
   ========================================================================== */

.ptl-btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 760;
    line-height: 1.25;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
}

.ptl-btn-lg {
    min-height: 56px;
    padding: 14px 30px;
    font-size: 1rem;
}

.ptl-btn-primary {
    background: var(--ptl-primary);
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(0, 88, 75, 0.18);
}

.ptl-btn-primary:hover {
    background: var(--ptl-primary-hover);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 88, 75, 0.24);
}

.ptl-btn-outline {
    border-color: #cbd5e1;
    background: #ffffff;
    color: var(--ptl-title) !important;
}

.ptl-btn-outline:hover {
    border-color: var(--ptl-primary);
    background: var(--ptl-accent-light);
    color: var(--ptl-primary) !important;
}

.ptl-btn-accent {
    background: var(--ptl-accent);
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(0, 168, 107, 0.2);
}

.ptl-btn-accent:hover {
    background: #008f5b;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.ptl-btn-dark-outline {
    border-color: rgba(255, 255, 255, 0.28);
    background: transparent;
    color: #ffffff !important;
}

.ptl-btn-dark-outline:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
}

.ptl-gradient-text {
    background: linear-gradient(135deg, var(--ptl-primary) 0%, var(--ptl-sky) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ptl-section {
    padding: clamp(72px, 8vw, 108px) 0;
}

.ptl-section-header {
    margin-bottom: clamp(38px, 5vw, 56px);
}

.ptl-section-kicker {
    display: block;
    margin: 0 0 10px;
    color: var(--ptl-primary);
    font-size: 0.78rem;
    font-weight: 820;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ptl-section-title {
    margin: 0 0 16px;
    color: var(--ptl-title);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 850;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.ptl-section-subtitle {
    max-width: 720px;
    margin: 0 auto;
    color: var(--ptl-text-muted);
    font-size: clamp(1rem, 1.8vw, 1.16rem);
    line-height: 1.7;
}

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

.ptl-grid-2col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(44px, 6vw, 76px);
}

.ptl-align-center {
    align-items: center;
}

.ptl-lead-text {
    margin: 0 0 30px;
    color: var(--ptl-text);
    font-size: clamp(1.05rem, 2vw, 1.24rem);
    line-height: 1.65;
}

.text-white {
    color: #ffffff !important;
}

.text-light {
    color: #dbe4ee !important;
}

.text-slate {
    color: #9fb0c5 !important;
}

.text-accent {
    color: #6ee7b7 !important;
}

.js .ptl-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.js .ptl-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================================================== 
   Home — Hero
   ========================================================================== */

.ptl-hero-section {
    position: relative;
    overflow: hidden;
    padding: clamp(76px, 9vw, 112px) 0 clamp(70px, 8vw, 96px);
    background:
        radial-gradient(circle at 88% 8%, rgba(0, 168, 107, 0.11), transparent 30%),
        linear-gradient(180deg, #f7fafc 0%, #ffffff 100%);
}

.ptl-hero-content {
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
}

.ptl-badge-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
}

.ptl-badge {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: 6px 15px;
    border-radius: 999px;
    background: var(--ptl-sky-light);
    color: #0369a1;
    font-size: 0.8rem;
    font-weight: 760;
}

.ptl-hero-title {
    margin: 0 auto 26px;
    color: var(--ptl-title);
    font-size: clamp(2.55rem, 6vw, 4.8rem);
    font-weight: 920;
    line-height: 1.03;
    letter-spacing: -0.055em;
}

.ptl-hero-subtitle {
    max-width: 850px;
    margin: 0 auto 36px;
    color: var(--ptl-text-muted);
    font-size: clamp(1.06rem, 2vw, 1.28rem);
    line-height: 1.68;
}

.ptl-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 58px;
}

.ptl-hero-pillars {
    display: flex;
    max-width: 820px;
    align-items: stretch;
    justify-content: center;
    gap: 28px;
    margin: 0 auto;
    padding: 24px 34px;
    border: 1px solid var(--ptl-border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--ptl-shadow);
}

.ptl-pillar-item {
    display: flex;
    min-width: 0;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ptl-pillar-index {
    color: var(--ptl-primary);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.08em;
}

.ptl-pillar-label {
    color: var(--ptl-text);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
}

.ptl-pillar-divider {
    width: 1px;
    background: var(--ptl-border);
}

/* ========================================================================== 
   Home — Video e visione
   ========================================================================== */

.ptl-video-vision-section {
    background: #ffffff;
    border-bottom: 1px solid var(--ptl-border);
}

.ptl-video-vision-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
    gap: clamp(46px, 7vw, 86px);
    align-items: center;
}

.ptl-video-column {
    display: flex;
    justify-content: center;
}

.ptl-video-card {
    width: min(100%, 380px);
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 26px;
    background: var(--ptl-navy-dark);
    box-shadow: var(--ptl-shadow-lg);
}

.ptl-video-card video {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    background: var(--ptl-navy-dark);
    object-fit: cover;
}

.ptl-features-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.ptl-feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.ptl-feature-icon {
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 13px;
    background: var(--ptl-accent-light);
    color: var(--ptl-primary);
    font-size: 0.92rem;
    font-weight: 850;
}

.ptl-feature-body h3 {
    margin: 1px 0 5px;
    color: var(--ptl-title);
    font-size: 1.06rem;
    line-height: 1.35;
}

.ptl-feature-body p {
    margin: 0;
    color: var(--ptl-text-muted);
    font-size: 0.96rem;
    line-height: 1.6;
}

/* ========================================================================== 
   Home — Card servizi
   ========================================================================== */

.ptl-services-section {
    background: var(--ptl-surface-card);
}

.ptl-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.ptl-service-card {
    display: flex;
    min-height: 390px;
    flex-direction: column;
    padding: 30px 28px;
    border: 1px solid var(--ptl-border);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.035);
    transition: transform var(--ptl-transition), border-color var(--ptl-transition), box-shadow var(--ptl-transition);
}

.ptl-service-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 88, 75, 0.28);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);
}

.ptl-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
}

.ptl-card-number {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: #f1f5f9;
    color: var(--ptl-primary);
    font-size: 0.88rem;
    font-weight: 850;
}

.ptl-card-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--ptl-accent-light);
    color: var(--ptl-primary);
    font-size: 0.74rem;
    font-weight: 760;
}

.ptl-service-card .ptl-card-title {
    margin: 0 0 14px;
    color: var(--ptl-title);
    font-size: 1.45rem;
    font-weight: 850;
    line-height: 1.25;
}

.ptl-service-card .ptl-card-description {
    flex: 1 1 auto;
    margin: 0 0 28px;
    color: var(--ptl-text-muted);
    font-size: 0.98rem;
    line-height: 1.66;
}

.ptl-card-footer {
    margin-top: auto;
}

.ptl-card-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ptl-primary);
    font-size: 0.94rem;
    font-weight: 780;
    text-decoration: none;
}

.ptl-card-link:hover {
    color: var(--ptl-primary-hover);
    transform: translateX(3px);
}

/* ========================================================================== 
   Home — Radar
   ========================================================================== */

.ptl-radar-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 12%, rgba(14, 165, 233, 0.16), transparent 26%),
        linear-gradient(135deg, var(--ptl-navy-dark) 0%, var(--ptl-navy-slate) 100%);
    color: #ffffff;
}

.ptl-radar-badge {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 6px 13px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.16);
    color: #7dd3fc;
    font-size: 0.74rem;
    font-weight: 820;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ptl-radar-dimensions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    margin: 28px 0 34px;
    padding: 0;
    list-style: none;
}

.ptl-radar-dimensions li {
    position: relative;
    padding-left: 18px;
    color: #dbe4ee;
    font-size: 0.92rem;
}

.ptl-radar-dimensions li::before {
    content: "";
    position: absolute;
    top: 0.7em;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ptl-sky);
    transform: translateY(-50%);
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.6);
}

.ptl-radar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ptl-radar-card {
    padding: clamp(20px, 3vw, 30px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    background: rgba(30, 41, 59, 0.75);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(12px);
}

.ptl-radar-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.radar-title {
    color: #cbd5e1;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.radar-mode {
    color: #7dd3fc;
    font-size: 0.76rem;
    font-weight: 720;
}

.ptl-svg-radar-holder {
    max-width: 500px;
    margin: 18px auto 0;
}

.ptl-radar-chart {
    display: block;
    width: 100%;
    overflow: visible;
}

.radar-web polygon {
    stroke: rgba(255, 255, 255, 0.15);
    stroke-width: 1.5;
}

.radar-axes line {
    stroke: rgba(255, 255, 255, 0.18);
    stroke-width: 1.2;
    stroke-dasharray: 4 4;
}

.radar-profile {
    fill: rgba(14, 165, 233, 0.3);
    stroke: #38bdf8;
    stroke-width: 3;
    filter: drop-shadow(0 0 12px rgba(14, 165, 233, 0.55));
}

.radar-points circle {
    fill: #38bdf8;
    stroke: #ffffff;
    stroke-width: 2;
}

.radar-labels text {
    fill: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.ptl-radar-disclaimer {
    margin: 6px 0 0;
    color: #94a3b8;
    font-size: 0.76rem;
    line-height: 1.5;
    text-align: center;
}

/* ========================================================================== 
   Home — CTA finale
   ========================================================================== */

.ptl-cta-confronto-section {
    padding-top: 40px;
    background: #ffffff;
}

.ptl-cta-card {
    padding: clamp(38px, 6vw, 66px);
    border-radius: 28px;
    background:
        radial-gradient(circle at 90% 15%, rgba(0, 168, 107, 0.22), transparent 28%),
        linear-gradient(135deg, var(--ptl-navy-dark) 0%, var(--ptl-navy-slate) 100%);
    color: #ffffff;
    box-shadow: var(--ptl-shadow-lg);
}

.ptl-cta-card--simple {
    max-width: 1040px;
    margin: 0 auto;
}

.ptl-cta-copy {
    max-width: 780px;
}

.ptl-cta-title {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.ptl-cta-text {
    margin: 0 0 30px;
    color: #cbd5e1;
    font-size: clamp(1.05rem, 2vw, 1.22rem);
    line-height: 1.65;
}

.ptl-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ========================================================================== 
   Pagine interne PTL
   ========================================================================== */

.ptl-page-main .ptl-page-hero,
.ptl-insights-page .ptl-insights-hero {
    padding: clamp(72px, 8vw, 100px) 0;
}

.ptl-page-main .ptl-hero-content,
.ptl-insights-page .ptl-hero-content {
    max-width: 900px;
}

.ptl-page-main .ptl-hero-title,
.ptl-insights-page .ptl-hero-title {
    font-size: clamp(2.5rem, 5vw, 4.25rem);
}

.ptl-page-panel {
    padding: 30px;
    border: 1px solid var(--ptl-border);
    border-radius: 20px;
    background: var(--ptl-surface-card);
}

.ptl-page-panel h3 {
    margin-top: 0;
    color: var(--ptl-title);
}

.ptl-clean-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ptl-clean-list li {
    position: relative;
    margin: 10px 0;
    padding-left: 20px;
}

.ptl-clean-list li::before {
    content: "";
    position: absolute;
    top: 0.75em;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ptl-accent);
    transform: translateY(-50%);
}

.ptl-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

/* ========================================================================== 
   Insights, report e archivio articoli
   ========================================================================== */

.ptl-featured-report-card {
    padding: clamp(28px, 5vw, 46px);
    border: 1px solid var(--ptl-border);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--ptl-shadow-lg);
}

.report-title {
    margin: 14px 0;
    color: var(--ptl-title);
    font-size: clamp(1.65rem, 3vw, 2.2rem);
    font-weight: 850;
    line-height: 1.24;
}

.report-excerpt {
    margin: 0 0 20px;
    color: var(--ptl-text-muted);
    font-size: 1.04rem;
    line-height: 1.65;
}

.report-cover-box {
    position: relative;
    overflow: hidden;
    padding: 44px 30px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    background: linear-gradient(135deg, var(--ptl-navy-dark), var(--ptl-navy-slate));
    color: #ffffff;
    text-align: center;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.25);
}

.cover-badge {
    margin-bottom: 20px;
    color: #7dd3fc;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.16em;
}

.cover-title {
    margin-bottom: 28px;
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1.45;
}

.cover-footer {
    color: #94a3b8;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
}

.ptl-filter-system {
    margin: 30px 0 60px;
}

.ptl-filter-bar {
    margin-bottom: 36px;
    padding: 28px;
    border: 1px solid var(--ptl-border);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--ptl-shadow);
}

.ptl-filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.ptl-field-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.ptl-field-group label {
    color: var(--ptl-title);
    font-size: 0.8rem;
    font-weight: 760;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ptl-input,
.ptl-select {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid var(--ptl-border);
    border-radius: 11px;
    background: var(--ptl-surface-card);
    color: var(--ptl-text);
}

.ptl-input:focus,
.ptl-select:focus {
    border-color: var(--ptl-primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 88, 75, 0.12);
    outline: none;
}

.ptl-filter-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 20px;
    border-top: 1px solid #eef2f6;
}

.ptl-view-toggle {
    display: flex;
    gap: 8px;
}

.ptl-btn-view,
.ptl-page-btn {
    min-height: 40px;
    padding: 8px 16px;
    border: 1px solid var(--ptl-border);
    border-radius: 9px;
    background: #f1f5f9;
    color: var(--ptl-text-muted);
    font-size: 0.86rem;
    font-weight: 750;
    cursor: pointer;
}

.ptl-btn-view.active,
.ptl-btn-view:hover,
.ptl-page-btn.active,
.ptl-page-btn:hover {
    border-color: var(--ptl-primary);
    background: var(--ptl-primary);
    color: #ffffff;
}

.ptl-reset-btn {
    border: 0;
    background: transparent;
    color: var(--ptl-text-muted);
    font-size: 0.86rem;
    font-weight: 720;
    text-decoration: underline;
    cursor: pointer;
}

.ptl-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.ptl-posts-list {
    display: grid;
    gap: 18px;
}

.ptl-posts-list .ptl-card {
    display: grid;
    grid-template-columns: minmax(220px, 0.35fr) minmax(0, 1fr);
}

.ptl-card {
    overflow: hidden;
    border: 1px solid var(--ptl-border);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.ptl-card-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.ptl-card-body {
    padding: 22px;
}

.ptl-card-category {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--ptl-accent-light);
    color: var(--ptl-primary);
    font-size: 0.72rem;
    font-weight: 760;
}

.ptl-card .ptl-card-title {
    margin: 0 0 10px;
    color: var(--ptl-title);
    font-size: 1.2rem;
    line-height: 1.35;
}

.ptl-card .ptl-card-title a {
    color: inherit;
    text-decoration: none;
}

.ptl-card-excerpt {
    color: var(--ptl-text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.ptl-card-author-bar {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #eef2f6;
}

.ptl-author-avatar {
    display: flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ptl-title);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 800;
}

.ptl-author-info {
    color: var(--ptl-text-muted);
    font-size: 0.78rem;
}

.ptl-author-name {
    color: var(--ptl-title);
    font-weight: 700;
}

.ptl-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 38px;
}

.ptl-results-wrapper.ptl-loading {
    opacity: 0.55;
    pointer-events: none;
}

.ptl-empty-state {
    padding: 40px 24px;
    border: 1px dashed var(--ptl-border);
    border-radius: 16px;
    background: #ffffff;
    text-align: center;
}

/* ========================================================================== 
   Footer
   ========================================================================== */

.site-footer {
    padding: 72px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--ptl-navy-dark);
    color: #94a3b8;
}

.ptl-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.15fr 1.2fr;
    gap: 42px;
    margin-bottom: 50px;
}

.footer-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 18px;
    color: #ffffff;
    text-decoration: none;
}

.brand-logo-badge--footer {
    width: 50px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #16233a;
}

.footer-brand-link .site-title {
    color: #ffffff;
    white-space: normal;
}

.footer-tagline {
    max-width: 270px;
    margin: 0;
    color: #cbd5e1;
    font-size: 0.94rem;
    line-height: 1.7;
}

.footer-heading {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: 1.02rem;
    font-weight: 780;
    line-height: 1.3;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a {
    color: #aab8c8;
    font-size: 0.9rem;
    line-height: 1.5;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.footer-links a:hover,
.footer-links a:focus {
    color: #ffffff;
}

.footer-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #718198;
    font-size: 0.82rem;
}

.footer-bottom-bar p {
    margin: 0;
}

.back-to-top-link {
    color: #7dd3fc;
    text-decoration: none;
}

/* ========================================================================== 
   Isolamento pagine legali
   ========================================================================== */

.ptl-legal .ptl-legal__hero {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    z-index: auto !important;
    transform: none !important;
}

.ptl-legal .ptl-legal__nav {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    z-index: auto !important;
    flex: none !important;
    justify-content: flex-start !important;
}

/* ========================================================================== 
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
    .ptl-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ptl-reviews-grid,
    .ptl-posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ptl-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .mobile-menu-button {
        display: inline-flex;
    }

    .main-nav {
        position: fixed;
        top: var(--ptl-header-height, 76px);
        right: 0;
        left: 0;
        z-index: 999;
        max-height: calc(100vh - var(--ptl-header-height, 76px));
        padding: 18px 24px 26px;
        overflow-y: auto;
        border-top: 1px solid var(--ptl-border);
        background: #ffffff;
        box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity var(--ptl-transition), transform var(--ptl-transition), visibility var(--ptl-transition);
    }

    .main-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .main-nav .primary-menu {
        width: min(100%, 680px);
        margin: 0 auto;
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }

    .main-nav a,
    .main-nav .menu-item-cta > a {
        display: flex;
        width: 100%;
        min-height: 50px;
        justify-content: space-between;
        padding: 12px 14px;
        border-radius: 10px;
    }

    .ptl-grid-2col,
    .ptl-video-vision-grid {
        grid-template-columns: 1fr;
    }

    .ptl-video-column {
        order: 1;
    }

    .ptl-vision-content {
        order: 2;
    }

    .ptl-video-card {
        width: min(100%, 350px);
    }

    .ptl-radar-info {
        order: 1;
    }

    .ptl-radar-visual-container {
        order: 2;
    }

    .ptl-posts-list .ptl-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .wrap,
    .container {
        width: min(100% - 40px, 1200px);
    }

    .site-header {
        padding: 11px 0;
    }

    .brand-logo-badge {
        width: 50px;
        height: 42px;
    }

    .site-tagline {
        display: none;
    }

    .ptl-hero-section {
        padding: 58px 0 64px;
    }

    .ptl-hero-title {
        font-size: clamp(2.15rem, 10vw, 3rem);
        line-height: 1.08;
    }

    .ptl-hero-subtitle {
        font-size: 1.03rem;
    }

    .ptl-hero-actions,
    .ptl-radar-actions,
    .ptl-cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ptl-hero-actions .ptl-btn,
    .ptl-radar-actions .ptl-btn,
    .ptl-cta-actions .ptl-btn {
        width: 100%;
    }

    .ptl-hero-pillars {
        flex-direction: column;
        gap: 14px;
        padding: 20px;
        text-align: left;
    }

    .ptl-pillar-item {
        justify-content: flex-start;
    }

    .ptl-pillar-divider {
        width: 100%;
        height: 1px;
    }

    .ptl-section {
        padding: 68px 0;
    }

    .ptl-section-title {
        font-size: clamp(1.9rem, 8vw, 2.45rem);
    }

    .ptl-cards-grid,
    .ptl-reviews-grid,
    .ptl-posts-grid,
    .ptl-footer-grid {
        grid-template-columns: 1fr;
    }

    .ptl-service-card,
    .ptl-review-card {
        min-height: 0;
    }

    .ptl-radar-dimensions {
        grid-template-columns: 1fr;
    }

    .ptl-radar-header-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .radar-labels text {
        font-size: 10px;
    }

    .ptl-filter-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .ptl-view-toggle {
        width: 100%;
    }

    .ptl-btn-view {
        flex: 1 1 0;
    }

    .footer-bottom-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer {
        padding-bottom: 130px;
    }
}

@media (max-width: 430px) {
    .wrap,
    .container {
        width: min(100% - 36px, 1200px);
    }

    .site-title {
        font-size: 1.03rem;
    }

    .ptl-badge-group {
        gap: 7px;
    }

    .ptl-badge {
        min-height: 32px;
        padding: 5px 11px;
        font-size: 0.73rem;
    }

    .ptl-video-card {
        width: min(100%, 330px);
        border-radius: 22px;
    }

    .ptl-service-card,
    .ptl-review-card,
    .ptl-page-panel,
    .ptl-filter-bar {
        padding: 23px 20px;
    }

    .ptl-radar-card {
        padding: 16px;
    }

    .radar-labels text {
        font-size: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .js .ptl-reveal {
        opacity: 1;
        transform: none;
    }
}
/* =========================================================
   HEADER — LAB VERDE
   ========================================================= */

.site-title-main {
    color: var(--ptl-title);
}

.site-title-accent {
    color: var(--ptl-primary);
}


/* =========================================================
   HOME — VIDEO VERTICALE RIDIMENSIONATO
   ========================================================= */

.ptl-video-vision-grid {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: clamp(34px, 5vw, 68px);
    align-items: center;
}

.ptl-video-column {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ptl-video-card {
    width: min(100%, 250px);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 24px;
    background: var(--ptl-navy-dark);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.15);
}

.ptl-video-card video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    margin: 0;
    background: var(--ptl-navy-dark);
    object-fit: cover;
}


/* Tablet */
@media (max-width: 992px) {

    .ptl-video-vision-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .ptl-video-column {
        order: 1;
    }

    .ptl-vision-content {
        order: 2;
    }

    .ptl-video-card {
        width: min(100%, 240px);
    }
}


/* Smartphone */
@media (max-width: 700px) {

    .ptl-video-vision-grid {
        gap: 34px;
    }

    .ptl-video-card {
        width: min(72vw, 230px);
        border-radius: 20px;
        box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
    }

    .ptl-video-card video {
        width: 100%;
        height: auto;
        aspect-ratio: 9 / 16;
        object-fit: cover;
    }
}


/* Smartphone stretti */
@media (max-width: 430px) {

    .ptl-video-card {
        width: min(76vw, 220px);
        border-radius: 18px;
    }
}
/* =========================================================
   BRAND PTL — LAB VERDE IN HEADER E FOOTER
   ========================================================= */

.site-header .site-title-main {
    color: var(--ptl-title, #0f172a) !important;
}

.site-header .site-title-accent {
    color: var(--ptl-accent, #00a86b) !important;
}

.site-footer .footer-site-title-main {
    color: #ffffff !important;
}

.site-footer .footer-site-title-accent,
.site-footer .footer-copyright-accent {
    color: var(--ptl-accent, #00a86b) !important;
}


/* =========================================================
   FOOTER STRUTTURATO
   ========================================================= */

.site-footer {
    padding: 72px 0 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--ptl-navy-dark, #0f172a);
    color: #94a3b8;
}

.ptl-footer-grid {
    display: grid;
    grid-template-columns:
        minmax(260px, 1.35fr)
        minmax(180px, 0.9fr)
        minmax(190px, 1fr)
        minmax(220px, 1.15fr);
    gap: clamp(34px, 4vw, 60px);
    align-items: start;
    margin-bottom: 52px;
}

.ptl-footer-column {
    min-width: 0;
}

.footer-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: #ffffff;
    text-decoration: none;
}

.footer-brand-link:hover,
.footer-brand-link:focus {
    color: #ffffff;
}

.brand-logo-badge--footer {
    display: inline-flex;
    width: 50px;
    height: 42px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 11px;
    background: #16233a;
    color: #ffffff;
    font-weight: 900;
}

.footer-site-title {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.28em;
    align-items: baseline;
    font-size: clamp(1.1rem, 1.7vw, 1.35rem);
    font-weight: 850;
    line-height: 1.2;
}

.footer-tagline {
    max-width: 300px;
    margin: 0;
    color: #cbd5e1;
    font-size: 0.96rem;
    line-height: 1.7;
}

.footer-heading {
    margin: 0 0 20px;
    color: #ffffff;
    font-size: 1.02rem;
    font-weight: 780;
    line-height: 1.3;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    display: inline-block;
    color: #aab8c8;
    font-size: 0.91rem;
    line-height: 1.5;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus {
    color: #ffffff;
    transform: translateX(2px);
}

.footer-links-separator {
    margin-top: 8px !important;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #7f8da1;
    font-size: 0.84rem;
}

.footer-bottom-bar p {
    margin: 0;
}

.back-to-top-link {
    color: #aab8c8;
    font-weight: 700;
    text-decoration: none;
}

.back-to-top-link:hover,
.back-to-top-link:focus {
    color: #ffffff;
}


/* Tablet */
@media (max-width: 1050px) {

    .ptl-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* Smartphone */
@media (max-width: 700px) {

    .site-footer {
        padding-top: 58px;
        padding-bottom: 130px;
    }

    .ptl-footer-grid {
        grid-template-columns: 1fr;
        gap: 38px;
        margin-bottom: 42px;
    }

    .footer-tagline {
        max-width: 100%;
    }

    .footer-bottom-bar {
        align-items: flex-start;
        flex-direction: column;
    }
}
/* =========================================================
   BRAND PTL — LAB VERDE IN TUTTO IL SITO
   ========================================================= */

.site-header .brand-text-group .site-title {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25em;
}

.site-header .brand-text-group .site-title .site-title-main {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}

.site-header .brand-text-group .site-title .site-title-accent {
    color: #00a86b !important;
    -webkit-text-fill-color: #00a86b !important;
}

/* Footer */
.site-footer .footer-site-title-main {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.site-footer .footer-site-title-accent,
.site-footer .footer-copyright-accent {
    color: #00a86b !important;
    -webkit-text-fill-color: #00a86b !important;
}

