
/* S45-17-05 v3: REF prodotto allineato a leitmotiv mesa-event-*.
   Hide theme entry-title duplicate (l'H1 è dentro mesa-event-hero-media-title) */
body .entry-title { display: none !important; }
body header.entry-header { display: none !important; }


/* S45-17-05 v3 continuation
   Tutte le classi sono le STESSE delle pagine event/home Mesa per coerenza design system.
   Solo additivo: estensioni minime per FAQ accordion + product-specific layout. */

/* Carica CSS Mesa events inline (fallback se theme non lo include) */
:root {
  --mesa-navy: #0f2740;
  --mesa-teal: #19a7a0;
  --mesa-blue: #1f5f8b;
  --mesa-line: #e2e8f0;
  --mesa-shadow: 0 4px 20px rgba(11,28,45,.12);
}

/* Mesa wrapper (matches mesa-event-wrapper) */
.mesa-event-wrapper { margin: 0 auto; padding: 0 16px; max-width: 1280px; }

/* Hero media style (matches mesa-event-hero-media) */
.mesa-event-hero-media { position: relative; overflow: hidden; border-radius: 14px; margin-bottom: 30px; min-height: 320px; background-image: linear-gradient(135deg, rgba(15,39,64,0.92) 0%, rgba(31,95,139,0.88) 50%, rgba(25,167,160,0.85) 100%), url('https://mesaitalia.it/wp-content/uploads/2025/08/mesa_leghe_per_saldatura.jpg'); background-size: cover; background-position: center; }
.mesa-event-hero-media-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15,39,64,0.92) 0%, rgba(31,95,139,0.88) 50%, rgba(25,167,160,0.85) 100%); z-index: 1; }
.mesa-event-hero-media-content { position: relative; z-index: 2; padding: 70px 30px; color: white; text-align: center; }
.mesa-event-hero-media-title { color: white; font-size: clamp(2.2rem, 4.5vw, 3.6rem); margin: 14px 0 12px; letter-spacing: 1.5px; font-weight: 700; }
.mesa-event-eyebrow { color: var(--mesa-teal); font-size: 0.95rem; letter-spacing: 3px; text-transform: uppercase; margin: 0 0 12px; font-weight: 600; }
.mesa-event-subtle { color: #c8d6e5; font-size: 1.15rem; max-width: 760px; margin: 0 auto; line-height: 1.5; }
.mesa-event-hero-badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.mesa-event-hero-badge { background: rgba(255,255,255,0.18); color: white; padding: 6px 14px; border-radius: 16px; font-size: 0.82rem; font-weight: 500; border: 1px solid rgba(255,255,255,0.3); }

/* Section surface (matches mesa-event-section-surface) */
.mesa-event-section-surface { background: white; border-radius: 12px; margin-bottom: 18px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); overflow: hidden; }
.mesa-event-section-surface-light { background: linear-gradient(135deg, #f5f8fa 0%, #ffffff 100%); border-radius: 12px; margin-bottom: 18px; box-shadow: 0 1px 4px rgba(0,0,0,0.03); overflow: hidden; }
.mesa-event-section-inner { padding: 28px 26px; }
.mesa-event-section-inner h2 { color: var(--mesa-navy); font-size: 1.5rem; border-bottom: 2px solid var(--mesa-teal); padding-bottom: 10px; margin: 0 0 18px; position: relative; padding-left: 20px; }
.mesa-event-section-inner h2::before { content: ""; position: absolute; left: 0; top: 0.08em; bottom: 0.08em; width: 6px; border-radius: 24px; background: linear-gradient(180deg, var(--mesa-teal), var(--mesa-blue)); }

/* Info card / Info grid (matches mesa-event-info-card / -info-grid) */
.mesa-event-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.mesa-event-info-card { background: #f5f8fa; padding: 22px 20px; border-radius: 10px; border-left: 4px solid var(--mesa-teal); transition: transform 0.2s, box-shadow 0.2s; }
.mesa-event-info-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.mesa-event-info-card .ic-icon { font-size: 2.4rem; line-height: 1; margin-bottom: 10px; display: block; }
.mesa-event-info-card .ic-title { color: var(--mesa-navy); font-size: 1.08rem; margin: 6px 0; font-weight: 600; }
.mesa-event-info-card .ic-text { color: #4a5568; font-size: 0.92rem; line-height: 1.5; margin: 0; }

/* Buttons (matches mesa-event-btn-*) */
.mesa-event-btn { display: inline-block; padding: 12px 24px; border-radius: 6px; text-decoration: none; font-weight: 600; transition: all 0.15s; cursor: pointer; border: none; font-size: 0.95rem; }
.mesa-event-btn-primary { background: var(--mesa-teal); color: white; }
.mesa-event-btn-primary:hover { background: #0e7e71; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(25,167,160,0.3); }
.mesa-event-btn-secondary { background: rgba(255,255,255,0.18); color: white; border: 1px solid rgba(255,255,255,0.4); }
.mesa-event-btn-secondary:hover { background: rgba(255,255,255,0.3); }
.mesa-event-btn-secondary-light { background: var(--mesa-navy); color: white; }
.mesa-event-btn-secondary-light:hover { background: #1a3550; }
.mesa-event-hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* FAQ items (matches mesa-event-faq-item) */
.mesa-event-faq-item { background: #f5f8fa; border-radius: 8px; padding: 0; overflow: hidden; margin-bottom: 10px; transition: background 0.15s; }
.mesa-event-faq-item:hover { background: #ecf2f7; }
.mesa-event-faq-item[open] { background: #ecf2f7; }
.mesa-event-faq-item summary { padding: 14px 18px; cursor: pointer; font-size: 0.96rem; color: var(--mesa-navy); list-style: none; position: relative; padding-right: 36px; font-weight: 600; }
.mesa-event-faq-item summary::-webkit-details-marker { display: none; }
.mesa-event-faq-item summary::after { content: '▼'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); transition: transform 0.2s; font-size: 0.7rem; opacity: 0.5; }
.mesa-event-faq-item[open] summary::after { transform: translateY(-50%) rotate(180deg); }
.mesa-event-faq-item .faq-answer { padding: 8px 18px 18px; color: #2d3748; line-height: 1.6; font-size: 0.92rem; border-top: 1px solid rgba(0,0,0,0.05); margin-top: 4px; padding-top: 14px; }
.mesa-event-faq-item .faq-answer a { color: var(--mesa-teal); }

/* Trust badges (matches mesa-event-trust-badges) */
.mesa-event-trust-badges { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.mesa-event-trust-badge { background: var(--mesa-teal); color: white; padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; font-weight: 500; }

/* Intro (matches mesa-event-intro) */
.mesa-event-intro { font-size: 1.02rem; line-height: 1.7; color: #2d3748; }
.mesa-event-intro p { margin: 12px 0; }
.mesa-event-intro strong { color: var(--mesa-navy); }
.mesa-event-intro em { color: var(--mesa-teal); font-style: normal; font-weight: 500; }

/* Box for tables (matches mesa-event-box) */
.mesa-event-box { background: white; padding: 0; border-radius: 8px; overflow: hidden; }
.mesa-event-box table { width: 100%; border-collapse: collapse; }
.mesa-event-box th, .mesa-event-box td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--mesa-line); font-size: 0.92rem; }
.mesa-event-box th { background: #f5f8fa; color: var(--mesa-blue); font-weight: 600; width: 45%; }

/* REF banner */
.mesa-ref-banner { background: #fff3cd; border: 1px solid #ffc107; padding: 12px 18px; border-radius: 6px; margin-bottom: 20px; font-size: 0.92rem; color: #6b4f00; }
.mesa-ref-banner strong { color: #4a3500; }

/* CTA section */
.mesa-event-cta-section { background: linear-gradient(135deg, var(--mesa-teal) 0%, #0f7d77 100%); color: white; padding: 36px 30px; border-radius: 12px; margin-top: 22px; text-align: center; }
.mesa-event-cta-section h2 { color: white; margin: 0 0 12px; font-size: 1.6rem; border: none; padding: 0; }
.mesa-event-cta-section h2::before { display: none; }
.mesa-event-cta-section p { color: #d8f0ed; margin: 0 0 22px; font-size: 1rem; line-height: 1.5; }

/* Tech tables full-width variant */
.mesa-event-box table.tech-grid th { width: auto; }
.mesa-event-box table.tech-grid td, .mesa-event-box table.tech-grid th { text-align: left; }
.mesa-event-box table.tech-grid thead th { background: var(--mesa-navy); color: white; font-weight: 600; }
.mesa-event-box table.tech-grid tbody tr:nth-child(even) { background: #f8fafc; }
.mesa-event-box table.tech-grid td code { background: #eef2f7; padding: 2px 6px; border-radius: 4px; font-size: 0.85rem; color: var(--mesa-navy); }




/* === IGEA REF FIX: accent #5AC8B4 + FAQ da experience-calcio + closing block === */

/* Accent color IGEA: implants teal */
:root {
    --mesa-accent: #5AC8B4;
}

/* FAQ: copiato da experience-calcio (non shared) */
.mesa-event-faq-list {
    margin: 0 auto 28px !important;
    max-width: 1400px !important;
    display: grid;
    gap: 18px;
}
.mesa-event-faq-item {
    box-shadow: var(--mesa-shadow);
    padding: 30px 28px !important;
    border-radius: 60px 3px 60px 3px !important;
    background: #fff !important;
    margin: 0 !important;
    border: none !important;
}
.mesa-event-faq-item h3 {
    color: var(--mesa-navy) !important;
    margin-top: 0 !important;
    padding-left: 20px !important;
    position: relative !important;
    font-size: 1.1rem !important;
}
.mesa-event-faq-item h3::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 0.08em !important;
    bottom: 0.08em !important;
    width: 5px !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, var(--mesa-accent), var(--mesa-blue)) !important;
}
.mesa-event-faq-item p {
    color: var(--mesa-text, #2d3748) !important;
    line-height: 1.75 !important;
    padding-left: 20px !important;
    margin: 8px 0 0 0 !important;
}
details.mesa-event-faq-item > .faq-answer,
details.mesa-event-faq-item > p {
    display: block !important;
}
.mesa-event-faq-item summary {
    cursor: default !important;
    padding-right: 18px !important;
}
.mesa-event-faq-item summary::after {
    content: '' !important;
}
@media (max-width: 767px) {
    .mesa-event-faq-item {
        padding: 22px 18px !important;
    }
}

/* 8px spacing */
.mesa-event-section-surface {
    margin-bottom: 8px !important;
}
.mesa-event-section-inner {
    padding: 24px 20px !important;
}
.mesa-event-section-inner h2 {
    margin: 0 0 16px 0 !important;
}
.mesa-event-section-inner p {
    margin: 8px 0 !important;
    line-height: 1.7 !important;
}
.mesa-event-info-grid {
    gap: 8px !important;
}
.mesa-event-info-card {
    padding: 18px 16px !important;
    margin-bottom: 0 !important;
}
.mesa-event-box {
    padding: 20px 18px !important;
    margin: 0 0 8px 0 !important;
}

/* Hero wide */
.mesa-event-hero-media {
    margin: 0 -16px 8px -16px !important;
    border-radius: 0 !important;
    min-height: 380px !important;
    width: calc(100% + 32px) !important;
    max-width: none !important;
}
.mesa-event-hero-media-content {
    padding: 80px 40px !important;
    max-width: 900px !important;
    margin: 0 auto !important;
}
@media (max-width: 767px) {
    .mesa-event-hero-media {
        min-height: 280px !important;
    }
    .mesa-event-hero-media-content {
        padding: 50px 20px !important;
    }
}

/* Product tech table (fix colonna codice) */
.mesa-product-tech-table {
    width: 100% !important;
    border-collapse: collapse !important;
}
.mesa-product-tech-table th,
.mesa-product-tech-table td {
    padding: 10px 14px !important;
    text-align: left !important;
    border-bottom: 1px solid var(--mesa-line) !important;
    font-size: 0.92rem !important;
}
.mesa-product-tech-table th {
    background: #f5f8fa !important;
    color: var(--mesa-blue) !important;
    font-weight: 600 !important;
}
.mesa-product-tech-table td:first-child,
.mesa-product-tech-table th:first-child {
    width: 25% !important;
    font-weight: 600 !important;
    color: var(--mesa-navy) !important;
}

/* Product bullet list */
.mesa-product-bullet-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 12px 0 !important;
}
.mesa-product-bullet-item {
    padding: 8px 0 8px 24px !important;
    position: relative !important;
    line-height: 1.6 !important;
}
.mesa-product-bullet-item::before {
    content: "◉" !important;
    position: absolute !important;
    left: 0 !important;
    color: var(--mesa-accent) !important;
}

/* REF banner */
.mesa-ref-banner {
    background: #fff3cd !important;
    border: 1px solid #ffc107 !important;
    padding: 12px 18px !important;
    border-radius: 8px !important;
    margin-bottom: 20px !important;
    font-size: 0.92rem !important;
    color: #6b4f00 !important;
}
.mesa-ref-banner strong {
    color: #4a3500 !important;
}

/* CTA section */
.mesa-event-cta-section {
    background: linear-gradient(135deg, var(--mesa-accent) 0%, #0f7d77 100%) !important;
    color: white !important;
    padding: 36px 30px !important;
    border-radius: 12px !important;
    margin-top: 22px !important;
    text-align: center !important;
}
.mesa-event-cta-section h2 {
    color: white !important;
    margin: 0 0 12px !important;
    font-size: 1.6rem !important;
    border: none !important;
    padding: 0 !important;
}
.mesa-event-cta-section h2::before {
    display: none !important;
}
.mesa-event-cta-section p {
    color: #d8f0ed !important;
    margin: 0 0 22px !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
}

/* Trust badges */
.mesa-event-trust-badges {
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}
.mesa-event-trust-badge {
    background: var(--mesa-accent) !important;
    color: white !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
}
