/* =========================================
   FINANZA IN PRATICA - Main CSS
   WordPress Gutenberg Theme
   Replica fedele del sito originale
   ========================================= */

/* ---- VARIABLES ---- */
:root {
    --bg-color: #f4f7fb;
    --header-bg: #0a182b;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-heading: #0f172a;
    --text-muted: #475569;
    --accent-color: #0f172a;
    --accent-blue: #1d5f8a;
    --accent-blue-light: #0e7490;
    --border-color: #dce4ef;
    --nav-text: #ffffff;
    --nav-muted: #e2e8f0;
    --nav-border: #1c3554;
    --container-width: 1200px;
    --font-main: 'Inter', sans-serif;
}

/* ---- RESET ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    max-width: 100%;
    position: relative;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-blue-light); }
ul { list-style: none; }

/* ---- CONTAINER ---- */
.container,
.wp-block-group.is-layout-constrained > * {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* =========================================
   HEADER
   ========================================= */
.site-header {
    background-color: var(--header-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--nav-border);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 85px;
    padding: 8px 20px;
    gap: 25px;
}

/* Logo circolare */
.logo-circle {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--header-bg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.logo-circle:hover {
    transform: scale(1.05);
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(59, 123, 147, 0.25);
}

.logo-circle a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.logo-circle img,
.logo-circle .custom-logo {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Nav principale con effetto Neon */
.main-nav ul {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.main-nav ul li a {
    color: var(--nav-muted);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 6px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    position: relative;
    display: inline-block;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Riga neon animata sotto il link */
.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #00d2ff;
    border-radius: 2px;
    box-shadow: 0 0 8px #00d2ff, 0 0 16px rgba(0, 210, 255, 0.8), 0 0 24px rgba(0, 210, 255, 0.4);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Effetto Neon su Hover */
.main-nav ul li a:hover {
    color: #ffffff;
    background: rgba(0, 210, 255, 0.07);
    text-shadow: 0 0 8px rgba(0, 210, 255, 0.75), 0 0 18px rgba(0, 210, 255, 0.4);
    box-shadow: 0 0 14px rgba(0, 210, 255, 0.2), inset 0 0 8px rgba(0, 210, 255, 0.1);
}

.main-nav ul li a:hover::after {
    width: calc(100% - 16px);
}

/* Stato Attivo con neon persistente */
.main-nav ul li.current-menu-item > a,
.main-nav ul li.current_page_item > a,
.main-nav ul li a.active {
    color: #ffffff;
    background: rgba(0, 210, 255, 0.05);
    text-shadow: 0 0 6px rgba(0, 210, 255, 0.5);
}

.main-nav ul li.current-menu-item > a::after,
.main-nav ul li.current_page_item > a::after,
.main-nav ul li a.active::after {
    width: calc(100% - 16px);
    background: #00d2ff;
    box-shadow: 0 0 8px #00d2ff, 0 0 14px rgba(0, 210, 255, 0.7);
}

/* =========================================
   DROPDOWN SUBMENU - APPARIZIONE ISTANTANEA ALL'HOVER
   ========================================= */
.main-nav ul li {
    position: relative;
}

.dropdown-arrow {
    font-size: 0.65em;
    margin-left: 6px;
    vertical-align: middle;
    transition: transform 0.2s ease, color 0.2s ease;
    opacity: 0.8;
}

.main-nav ul li:hover > a .dropdown-arrow {
    transform: rotate(180deg);
    color: #00d2ff;
    opacity: 1;
}

.main-nav ul .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #0f223b;
    border: 1px solid var(--nav-border);
    border-radius: 8px;
    padding: 8px 0;
    margin: 0;
    margin-top: 6px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(0, 210, 255, 0.12);
    display: none;
    flex-direction: column;
    z-index: 1000;
    list-style: none;
}

/* Appare subito al passaggio del mouse su desktop */
.main-nav ul li:hover > .sub-menu {
    display: flex;
}

/* Ponte invisibile per non perdere il puntatore */
.main-nav ul .sub-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
}

.main-nav ul .sub-menu li {
    width: 100%;
}

.main-nav ul .sub-menu li a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 18px;
    color: var(--nav-muted);
    font-size: 0.86rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 0;
    border-left: 3px solid transparent;
    background: transparent;
    box-shadow: none;
    text-shadow: none;
    transition: all 0.15s ease;
}

.main-nav ul .sub-menu li a::after {
    display: none !important;
}

/* Hover sui singoli link del sottomenu */
.main-nav ul .sub-menu li a:hover,
.main-nav ul .sub-menu li.current-menu-item > a {
    color: #ffffff;
    background: rgba(0, 210, 255, 0.08);
    border-left-color: #00d2ff;
    text-shadow: 0 0 8px rgba(0, 210, 255, 0.7);
    padding-left: 22px;
    box-shadow: inset 0 0 10px rgba(0, 210, 255, 0.05);
}

/* Social links nascosti su desktop */
.mobile-social-links {
    display: none;
}

/* Header actions & Real Social Links */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.header-social-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--nav-border);
    color: var(--nav-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    transition: all 0.2s ease;
}

.header-social-link:hover {
    color: #fff;
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.search-btn, .mobile-menu-toggle {
    background: none;
    border: none;
    color: var(--nav-text);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.2s;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-btn:hover, .mobile-menu-toggle:hover {
    background: rgba(255,255,255,0.08);
}

.mobile-menu-toggle { display: none; }

/* =========================================
   HERO SECTION (Home)
   ========================================= */
.hero-section {
    padding: 30px 0 40px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    height: 500px;
}

/* Card principale hero */
.hero-main-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--card-bg);
}

.hero-main-card .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

.hero-main-card:hover .card-image {
    transform: scale(1.03);
}

.card-content.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 25px 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
}

.card-content.overlay h1,
.card-content.overlay h2 {
    font-size: 1.45rem;
    line-height: 1.35;
    margin: 10px 0 8px;
}

.card-content.overlay h1 a,
.card-content.overlay h2 a {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.card-content.overlay h1 a:hover,
.card-content.overlay h2 a:hover {
    color: var(--text-muted);
}

.meta.text-muted-small,
.meta-small {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
}

/* Side cards hero */
.hero-side-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.side-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: border-color 0.2s;
}

.side-card:hover {
    border-color: var(--accent-blue);
}

.side-card .side-image {
    height: 130px;
    background-size: cover;
    background-position: center;
    display: block;
}

.side-card .side-content {
    padding: 12px 14px;
    flex: 1;
}

.side-card h3 {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-top: 6px;
}

.side-card h3 a {
    color: var(--text-main);
}

.side-card h3 a:hover {
    color: var(--accent-blue-light);
}

/* Category tag */
.cat-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 3px 9px;
    border-radius: 3px;
    background-color: var(--accent-blue);
    color: #fff;
}

.cat-tag:hover,
.category-tag:hover {
    background-color: var(--accent-blue-light);
    color: #fff;
}

.cat-tag.small {
    font-size: 0.65rem;
    padding: 2px 7px;
}

.category-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 3px 9px;
    border-radius: 3px;
    background-color: var(--accent-blue);
    color: #fff;
    transition: background 0.2s;
}

/* =========================================
   TRENDING SECTION
   ========================================= */
.trending-section {
    padding: 36px 28px;
    background: linear-gradient(135deg, #0a182b 0%, #102b47 100%);
    border-top: 2px solid var(--accent-blue);
    border-bottom: 2px solid var(--accent-blue);
    border-radius: 12px;
    position: relative;
}

.trending-section .section-title {
    color: #ffffff;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-main);
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-blue);
    display: inline-block;
}

.trending-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scroll-padding-left: 28px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 6px 28px 16px;
    margin: 0 -28px;
}

.trending-grid::-webkit-scrollbar {
    display: none;
}

.trend-card {
    flex: 0 0 300px;
    min-width: 300px;
    scroll-snap-align: start;
    background: #0f243d;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #24476e;
    box-shadow: 0 8px 20px rgba(4, 13, 24, 0.35);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.trend-card:hover {
    transform: translateY(-3px);
    border-color: #00d2ff;
    box-shadow: 0 10px 26px rgba(0, 210, 255, 0.2);
}

.trend-image {
    height: 150px;
    width: 100%;
    overflow: hidden;
}

.trend-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.trend-content {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.trend-content h3 {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-top: 8px;
}

.trend-content h3 a {
    color: #f1f5f9;
}

.trend-content h3 a:hover {
    color: #7eeeff;
}

.trending-section .meta,
.trending-section .meta-small {
    color: #cbd5e1;
}

.slider-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.slider-controls button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #2c5580;
    background: #0f243d;
    color: #e2e8f0;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.slider-controls button:hover {
    background: var(--accent-blue);
    border-color: #00d2ff;
    color: #fff;
}

/* =========================================
   MAIN CONTENT AREA (Feed + Sidebar)
   ========================================= */
.main-content-area {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    padding: 40px 0 60px;
    align-items: start;
}

/* ---- ARTICLES FEED ---- */
.articles-feed {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.feed-item {
    display: flex;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid var(--border-color);
    align-items: flex-start;
}

.feed-item:first-of-type {
    padding-top: 0;
}

.feed-img-wrapper {
    flex: 0 0 250px;
    width: 250px;
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
    display: block;
    position: relative;
}

.feed-img-wrapper a {
    display: block;
    width: 100%;
    height: 100%;
}

.feed-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s;
}

.feed-item:hover .feed-img-wrapper img {
    transform: scale(1.04);
}

.feed-item .card-content {
    flex: 1;
    min-width: 0;
}

.feed-item .card-content h3 {
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 8px 0 10px;
}

.feed-item .card-content h3 a {
    color: var(--text-main);
}

.feed-item .card-content h3 a:hover {
    color: var(--accent-blue-light);
}

.feed-item .card-content p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 10px;
}

.mb-10 { margin-bottom: 10px; }
.text-muted { color: var(--text-muted); }
.text-muted-small { font-size: 0.82rem; color: var(--text-muted); }
.img-rounded { border-radius: 8px; }
.img-fluid { max-width: 100%; height: auto; }
.img-cover { width: 100%; height: 100%; object-fit: cover; }

/* ---- SIDEBAR ---- */
.sidebar {
    position: -webkit-sticky;
    position: sticky !important;
    top: 100px;
    height: fit-content !important;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 22px;
}

.sidebar-widget h3,
.widget-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
    color: var(--text-main);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

/* Social icons large */
.social-icons-large {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icons-large a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 1.1rem;
    transition: background 0.2s, border-color 0.2s;
}

.social-icons-large a:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #fff;
}

/* Newsletter form */
.sidebar-widget.newsletter form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-widget input[type="email"] {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px 12px;
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 0.9rem;
    width: 100%;
    transition: border-color 0.2s;
}

.sidebar-widget input[type="email"]:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.sidebar-widget button[type="submit"],
.btn-primary {
    background-color: var(--accent-blue);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.sidebar-widget button[type="submit"]:hover,
.btn-primary:hover {
    background-color: var(--accent-blue-light);
}

.privacy-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.privacy-check input[type="checkbox"] {
    accent-color: var(--accent-blue);
}

/* ---- Newsletter feedback ---- */
.newsletter-msg {
    font-size: 0.85rem;
    padding: 8px 0;
    color: #4ade80;
}

.newsletter-msg.error {
    color: #f87171;
}

/* =========================================
   CATEGORIA PAGE
   ========================================= */
.category-header {
    margin: 40px 0 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.category-title {
    text-transform: uppercase;
    font-size: 2.2rem;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text-main);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px dashed var(--border-color);
}

.empty-state h3 { margin-bottom: 10px; }
.empty-state p  { color: var(--text-muted); }

/* =========================================
   ARTICOLO SINGOLO
   ========================================= */
.article-hero {
    padding: 35px 0 20px;
    text-align: center;
}

.article-meta-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 18px;
}

.read-time {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    max-width: 820px;
    margin: 0 auto 20px;
    color: var(--text-heading);
}

.article-author-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.author-name {
    font-weight: 600;
    font-size: 0.9rem;
}

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

.article-hero-image-container {
    margin: 0 auto 10px;
    max-width: 900px;
}

.article-hero-image {
    width: 100%;
    border-radius: 8px;
    max-height: 500px;
    object-fit: cover;
}

/* Article body layout */
.article-body-container {
    display: grid;
    grid-template-columns: 60px 1fr 260px;
    gap: 30px;
    padding: 30px 0 60px;
    align-items: start;
}

/* Sticky social sidebar */
.article-social-sticky {
    position: -webkit-sticky;
    position: sticky !important;
    top: 124px;
    height: fit-content !important;
}

.sticky-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.social-share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    transition: transform 0.2s, opacity 0.2s;
}

.social-share-btn:hover {
    transform: scale(1.1);
    color: #fff;
    opacity: 0.9;
}

.social-share-btn.fb { background: #1877f2; }
.social-share-btn.in { background: #0a66c2; }
.social-share-btn.wa { background: #25d366; }

/* Article content (markdown rendered) */
.article-content {
    min-width: 0;
    color: var(--text-muted);
    line-height: 1.85;
    font-size: 1.05rem;
}

.article-content h2 {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 35px 0 15px;
    line-height: 1.3;
}

.article-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 25px 0 12px;
}

.article-content h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-heading);
    margin: 20px 0 10px;
}

.article-content p {
    margin-bottom: 18px;
}

.article-content ul,
.article-content ol {
    margin: 15px 0 20px 25px;
}

.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }

.article-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.article-content a {
    color: #38bdf8;
    text-decoration: underline;
}

.article-content a:hover {
    color: #7dd3fc;
}

.article-content strong {
    color: var(--text-main);
    font-weight: 700;
}

.article-content blockquote {
    border-left: 4px solid var(--accent-blue);
    padding: 15px 20px;
    margin: 25px 0;
    background: var(--card-bg);
    border-radius: 0 6px 6px 0;
    color: var(--text-muted);
}

.article-content code {
    background: #e2e8f0;
    color: #0f172a;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.92em;
    font-family: 'Courier New', monospace;
}

.article-content pre {
    background: #0f172a;
    color: #e2e8f0;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 20px;
    overflow-x: auto;
    margin: 20px 0;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: #e2e8f0;
}

.article-content img {
    border-radius: 8px;
    margin: 20px auto;
    max-width: 100%;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.92rem;
}

.article-content th,
.article-content td {
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    text-align: left;
}

.article-content th {
    background: var(--card-bg);
    color: var(--text-main);
    font-weight: 600;
}

.article-content td {
    color: var(--text-muted);
}

.article-content tr:nth-child(even) td {
    background: rgba(255,255,255,0.02);
}

/* TOC - Table of Contents */
.article-toc {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-blue);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.toc-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-main);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc-title i { color: var(--accent-blue); }

#toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#toc-list li { margin-bottom: 8px; }

#toc-list a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s, padding-left 0.2s;
}

#toc-list a:hover {
    color: var(--accent-blue);
    padding-left: 5px;
}

/* ---- Author widget (article sidebar) ---- */
.sidebar-widget.author-widget {
    text-align: center;
}

.sidebar-widget.author-widget h4 {
    color: var(--text-heading);
    font-weight: 700;
}

.author-large-avatar img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 12px;
    object-fit: cover;
}

.article-sidebar-right {
    position: -webkit-sticky;
    position: sticky !important;
    top: 124px;
    height: fit-content !important;
}

.admin-bar .article-social-sticky,
.admin-bar .article-sidebar-right {
    top: 156px;
}

/* =========================================
   FAQ ACCORDION
   ========================================= */
.faq-accordion {
    margin: 25px 0 35px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-blue);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.faq-item:hover {
    border-color: #cbd5e1;
    border-left-color: var(--accent-blue-light);
}

.faq-item[open] {
    background: #f8fbff;
    border-color: #cbd5e1;
    border-left-color: var(--accent-blue-light);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.faq-question {
    padding: 18px 22px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-heading);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    user-select: none;
}

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

.faq-question::after {
    content: '';
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--accent-blue);
    border-bottom: 2px solid var(--accent-blue);
    transform: rotate(-45deg);
    transition: transform 0.25s, border-color 0.25s;
    flex-shrink: 0;
}

.faq-item:hover .faq-question::after,
.faq-item[open] .faq-question::after {
    border-color: var(--accent-blue-light);
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 14px 22px 18px;
    color: var(--text-main);
    font-size: 0.98rem;
    line-height: 1.75;
    border-top: 1px solid var(--border-color);
}

.faq-answer p { margin-bottom: 14px; }
.faq-answer p:last-child { margin-bottom: 0; }

/* =========================================
   MATH - KaTeX
   ========================================= */
.math-display-card {
    margin: 28px 0;
    padding: 18px 24px;
    background: #eef4fa;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-blue);
    border-radius: 8px;
    overflow-x: auto;
    text-align: center;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.math-display-card .katex-display { margin: 0 !important; }
.math-display-card .katex { font-size: 1.25em !important; color: var(--text-heading); }
.math-inline .katex { font-size: 1.05em !important; color: var(--accent-blue); }

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background: var(--header-bg);
    border-top: 1px solid var(--nav-border);
    padding: 45px 0 20px;
    margin-top: 60px;
    color: var(--nav-muted);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--nav-border);
}

.footer-logo img {
    max-width: 150px;
    height: auto;
}

.footer-nav ul {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-nav ul li a {
    color: var(--nav-muted);
    font-size: 0.88rem;
    transition: color 0.2s;
}

.footer-nav ul li a:hover {
    color: var(--nav-text);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--nav-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nav-muted);
    font-size: 0.9rem;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.footer-social a:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #fff;
}

.footer-bottom {
    padding-top: 20px;
    font-size: 0.82rem;
    color: var(--nav-muted);
    text-align: center;
    line-height: 1.7;
}

.footer-bottom a {
    color: var(--nav-text);
    text-decoration: underline;
}

.footer-bottom a:hover {
    color: var(--nav-text);
}

/* =========================================
   SCROLL TO TOP
   ========================================= */
.scroll-to-top {
    position: fixed;
    right: 30px;
    bottom: 40px;
    z-index: 1500;
}

#scrollTopBtn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, #12365c 0%, #08182b 68%, #040d18 100%);
    border: 2px solid #00d2ff;
    color: #7eeeff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    box-shadow: 0 6px 18px rgba(4, 13, 24, 0.45), 0 0 12px rgba(0, 210, 255, 0.35), inset 0 0 8px rgba(0, 210, 255, 0.2);
    transition: opacity 0.3s, transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s, border-color 0.25s, color 0.25s;
}

#scrollTopBtn i {
    text-shadow: 0 0 8px rgba(0, 210, 255, 0.75);
    transition: transform 0.25s ease;
}

#scrollTopBtn.visible {
    opacity: 1;
    transform: translateY(0);
}

#scrollTopBtn:hover {
    color: #ffffff;
    border-color: #7eeeff;
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 10px 24px rgba(4, 13, 24, 0.55), 0 0 22px rgba(0, 210, 255, 0.65), inset 0 0 12px rgba(0, 210, 255, 0.35);
}

#scrollTopBtn:hover i {
    transform: translateY(-2px);
}

/* =========================================
   SEARCH OVERLAY
   ========================================= */
.search-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 100px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    width: 100%;
    max-width: 800px;
    position: relative;
    padding: 20px;
}

.close-search-btn {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

#searchInput {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid #555;
    font-size: 2rem;
    color: #fff;
    padding: 15px 0;
    outline: none;
    font-family: var(--font-main);
    transition: border-color 0.3s;
}

#searchInput:focus {
    border-bottom-color: var(--accent-blue);
}

.search-results {
    margin-top: 30px;
    max-height: 60vh;
    overflow-y: auto;
    scrollbar-width: none;
}

.search-results::-webkit-scrollbar { display: none; }

.search-result-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #333;
    animation: fadeInUp 0.3s ease;
}

.search-result-item:last-child { border-bottom: none; }

.search-result-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.search-result-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    font-weight: 600;
}

.search-result-info h4 a {
    color: #fff;
    text-decoration: none;
}

.search-result-info h4 a:hover {
    color: #38bdf8;
}

.search-result-info span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* =========================================
   BREADCRUMB
   ========================================= */
.breadcrumb {
    font-size: 0.82rem;
    color: var(--text-muted);
    padding: 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumb a:hover { color: var(--text-main); }

.breadcrumb span { color: var(--text-muted); }

/* =========================================
   PAGINATION
   ========================================= */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 30px 0;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: background 0.2s, border-color 0.2s;
    text-decoration: none;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #fff;
}

.pagination .page-numbers.dots {
    border: none;
    background: none;
    color: var(--text-muted);
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =========================================
   ADMIN BAR compensation
   ========================================= */
.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

/* =========================================
   RESPONSIVE - TABLET (max 1024px)
   ========================================= */
@media (max-width: 1024px) {
    .trending-grid {
        display: flex;
        gap: 16px;
    }

    .trend-card {
        flex: 0 0 280px;
        min-width: 280px;
    }

    .article-body-container {
        grid-template-columns: 60px 1fr;
    }

    .article-sidebar-right {
        display: none;
    }

    .main-content-area {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        width: 100%;
    }
}

/* =========================================
   RESPONSIVE - MOBILE (max 768px)
   ========================================= */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    /* Header mobile */
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        height: 65px;
        min-height: 65px;
        padding: 0 15px;
    }

    .logo-circle {
        width: 55px;
        height: 55px;
    }

    .mobile-menu-toggle {
        display: block;
        order: 3;
        z-index: 10001;
    }

    .header-social-links,
    .social-stats {
        display: none;
    }

    /* Nav mobile drawer */
    .main-nav {
        position: fixed;
        top: 0; right: 0;
        width: 280px;
        height: 100vh;
        background-color: var(--header-bg);
        box-shadow: -10px 0 20px rgba(0,0,0,0.5);
        transform: translateX(101%);
        visibility: hidden;
        transition: transform 0.4s ease, visibility 0.4s;
        z-index: 9999;
        padding: 80px 25px 30px;
        display: flex;
        flex-direction: column;
    }

    .main-nav.active {
        transform: translateX(0);
        visibility: visible;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .main-nav ul li a {
        font-size: 1rem;
        padding: 10px 0;
        display: block;
    }

    .main-nav .sub-menu {
        position: static !important;
        display: flex !important;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
        padding: 4px 0 4px 16px !important;
        margin: 4px 0 10px !important;
        border-left: 2px solid var(--accent-blue) !important;
        min-width: unset !important;
    }

    .main-nav .sub-menu li a {
        font-size: 0.88rem !important;
        padding: 6px 0 !important;
        color: var(--text-muted) !important;
    }

    .mobile-social-links {
        display: flex;
        justify-content: center;
        gap: 25px;
        padding: 30px 0;
        border-top: 1px solid rgba(255,255,255,0.1);
        margin-top: auto;
    }

    .mobile-social-links a {
        color: var(--text-muted);
        font-size: 1.2rem;
        transition: color 0.2s;
    }

    /* Hero mobile */
    .hero-section {
        margin: 0 -20px;
        padding: 0 0 30px;
        width: calc(100% + 40px);
    }

    .hero-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
        height: auto;
    }

    .hero-main-card {
        height: 350px;
        border-radius: 0;
    }

    .hero-main-card .card-image {
        border-radius: 0;
    }

    .card-content.overlay {
        padding: 25px 15px 20px;
    }

    .card-content.overlay h2 {
        font-size: 1.15rem;
    }

    .hero-side-cards {
        padding: 0 15px;
        height: auto;
    }

    .side-card .side-image {
        height: 160px;
    }

    /* Trending mobile */
    .trending-grid {
        display: flex;
        gap: 14px;
        padding-bottom: 10px;
    }

    .trending-section {
        padding: 28px 16px;
    }

    .trending-grid {
        padding: 6px 16px 14px;
        margin: 0 -16px;
        scroll-padding-left: 16px;
    }

    .trend-card {
        flex: 0 0 260px;
        min-width: 260px;
    }

    /* Feed articles mobile */
    .main-content-area {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 25px 0 40px;
    }

    .feed-item {
        flex-direction: column;
        gap: 12px;
        padding-bottom: 20px;
    }

    .feed-img-wrapper {
        width: 100%;
        flex: none;
        height: 200px;
        max-width: 100%;
    }

    .feed-item .card-content {
        width: 100%;
    }

    /* Article page mobile */
    .article-body-container {
        display: block;
        padding: 20px 0 40px;
    }

    .article-social-sticky {
        display: none;
    }

    .article-title {
        font-size: 1.6rem;
    }

    /* Scroll top mobile */
    .scroll-to-top {
        right: 15px;
        bottom: 25px;
    }

    /* Footer mobile */
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .footer-nav ul {
        justify-content: center;
        gap: 12px;
    }
}

/* =========================================
   WIDE SCREENS
   ========================================= */
@media (min-width: 1400px) {
    .scroll-to-top {
        right: auto;
        left: 50%;
        margin-left: 640px;
    }
}

/* =========================================
   STILI BLOCCHI GUTENBERG
   ========================================= */

/* Post list layout per il blocco query */
.wp-block-query .fip-posts-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Stile card per wp-block-post-template */
.fip-feed-layout article.wp-block-post {
    display: flex;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid var(--border-color);
    align-items: flex-start;
}

.fip-feed-layout .wp-block-post-featured-image {
    flex: 0 0 250px;
    width: 250px;
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
}

.fip-feed-layout .wp-block-post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Pagination block */
.wp-block-query-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 30px 0;
}

.wp-block-query-pagination-numbers a,
.wp-block-query-pagination-previous,
.wp-block-query-pagination-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.wp-block-query-pagination-numbers a:hover,
.wp-block-query-pagination-previous:hover,
.wp-block-query-pagination-next:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #fff;
}

.wp-block-query-pagination-numbers .current {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #fff;
}

/* =========================================
   GDPR COOKIE BANNER & PREFERENCES MODAL
   ========================================= */
.fip-cookie-banner[hidden],
.fip-cookie-modal[hidden],
.fip-cookie-reopen[hidden] {
    display: none !important;
}

.fip-cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9990;
    background: var(--header-bg);
    border: 1px solid var(--nav-border);
    border-radius: 10px;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.35);
    padding: 18px 44px 18px 22px;
    max-width: 1120px;
    margin: 0 auto;
    color: var(--nav-text);
}

.fip-cookie-banner__close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    color: var(--nav-muted);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.fip-cookie-banner__close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.fip-cookie-reopen {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 9980;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background: var(--header-bg);
    border: 1px solid var(--nav-border);
    color: var(--nav-muted);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.fip-cookie-reopen:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue-light);
    color: #fff;
    transform: translateY(-1px);
}

.fip-cookie-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.fip-cookie-banner__text {
    flex: 1 1 380px;
}

.fip-cookie-banner__title {
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--nav-text);
    margin-bottom: 4px;
}

.fip-cookie-banner__desc {
    font-size: 0.86rem;
    color: var(--nav-muted);
    line-height: 1.5;
}

.fip-cookie-banner__desc a {
    color: #7cc4de;
    text-decoration: underline;
}

.fip-cookie-banner__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.fip-cookie-btn {
    appearance: none;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    border: 1px solid transparent;
    white-space: nowrap;
}

/* Accetta e Rifiuta hanno pari evidenza visiva (requisito Garante Privacy) */
.fip-cookie-btn--primary,
.fip-cookie-btn--secondary {
    background: var(--accent-blue);
    border-color: var(--accent-blue-light);
    color: #fff;
}

.fip-cookie-btn--primary:hover,
.fip-cookie-btn--secondary:hover {
    background: var(--accent-blue-light);
}

.fip-cookie-btn--ghost {
    background: transparent;
    border-color: #475569;
    color: var(--nav-text);
}

.fip-cookie-btn--ghost:hover {
    border-color: var(--nav-text);
    background: rgba(255, 255, 255, 0.08);
}

.fip-cookie-manage-btn {
    background: none;
    border: none;
    color: var(--nav-muted);
    font: inherit;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.fip-cookie-manage-btn:hover {
    color: #fff;
}

/* Modal */
.fip-cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.fip-cookie-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(2px);
}

.fip-cookie-modal__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--header-bg);
    border: 1px solid var(--nav-border);
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    color: var(--nav-text);
}

.fip-cookie-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--nav-border);
}

.fip-cookie-modal__header h2 {
    font-size: 1.08rem;
    color: var(--nav-text);
    margin: 0;
}

.fip-cookie-modal__close {
    background: none;
    border: none;
    color: var(--nav-muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.fip-cookie-modal__close:hover {
    color: #fff;
}

.fip-cookie-modal__body {
    padding: 18px 20px;
}

.fip-cookie-modal__intro {
    font-size: 0.88rem;
    color: var(--nav-muted);
    margin-bottom: 16px;
}

.fip-cookie-cat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    background: #0f223b;
    border: 1px solid var(--nav-border);
    border-radius: 8px;
    margin-bottom: 10px;
}

.fip-cookie-cat__info strong {
    display: block;
    font-size: 0.92rem;
    color: var(--nav-text);
    margin-bottom: 2px;
}

.fip-cookie-cat__info span {
    display: block;
    font-size: 0.8rem;
    color: var(--nav-muted);
    line-height: 1.4;
}

.fip-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.fip-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.fip-switch__slider {
    position: absolute;
    inset: 0;
    background: #444;
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.2s;
}

.fip-switch__slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.fip-switch input:checked + .fip-switch__slider {
    background: var(--accent-blue-light);
}

.fip-switch input:checked + .fip-switch__slider::before {
    transform: translateX(20px);
}

.fip-switch input:disabled + .fip-switch__slider {
    opacity: 0.65;
    cursor: not-allowed;
}

.fip-cookie-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    padding: 14px 20px;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 640px) {
    .fip-cookie-banner__actions,
    .fip-cookie-modal__footer {
        width: 100%;
    }
    .fip-cookie-banner__actions .fip-cookie-btn,
    .fip-cookie-modal__footer .fip-cookie-btn {
        flex: 1 1 auto;
        text-align: center;
    }
}

.fip-ymyl-disclaimer {
    margin-top: 32px;
    padding: 14px 18px;
    background: var(--card-bg);
    border-left: 3px solid var(--accent-blue-light);
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--text-muted);
}
