/* ============================================
   Tema CET - Custom CSS
   Basato su Bootstrap Italia / UI Kit Italia
   ============================================ */

:root {
    --cet-primary: #003580;
    --cet-primary-dark: #002856;
    --cet-primary-light: #0059b3;
    --cet-accent-green: #4CAF50;
    --cet-accent-yellow: #FFC107;
    --cet-accent-orange: #FF9800;
    --cet-accent-red: #E53935;
    --cet-bg-light: #f5f7fa;
    --cet-text: #333333;
    --cet-text-muted: #666666;
    --cet-border: #e0e0e0;
}

/* ---- Typography ---- */
body {
    font-family: 'Titillium Web', sans-serif;
    color: var(--cet-text);
}

/* Footer sempre in fondo */
#main-content {
    min-height: calc(100vh - 200px);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Titillium Web', sans-serif;
    font-weight: 700;
}

/* ---- Header ---- */

/* Center Header (white background) - override Bootstrap Italia height/bg */
.it-header-center-wrapper {
    background-color: #fff !important;
    height: auto !important;
    padding: 16px 0 !important;
    transition: padding 0.3s ease;
}

.it-brand-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 16px;
}

.it-brand-wrapper a {
    display: inline-block;
    text-decoration: none;
}

.it-brand-wrapper .brand-logo,
.it-brand-wrapper img.brand-logo {
    width: auto;
    height: 80px;
    transition: height 0.3s ease;
}

.it-brand-wrapper .brand-logo-placeholder {
    display: inline-block;
}

.it-brand-wrapper .brand-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--cet-primary);
}

.it-brand-tagline {
    font-size: 0.85rem;
    color: var(--cet-text-muted);
}

.it-brand-tagline strong {
    color: var(--cet-primary);
    text-decoration: underline;
}

/* Right Zone: Social + Search */
.it-right-zone {
    display: flex;
    align-items: center;
    gap: 24px;
}

.it-socials {
    display: flex;
    align-items: center;
    gap: 12px;
}

.socials-label {
    font-size: 0.9rem;
    color: var(--cet-text-muted);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--cet-primary);
    transition: opacity 0.2s;
}

.social-icon:hover {
    opacity: 0.7;
}

.social-icon .icon {
    width: 22px;
    height: 22px;
    fill: var(--cet-primary-dark);
}

.it-search-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-label {
    font-size: 1rem;
    color: var(--cet-text);
    font-weight: 600;
}

.it-search-wrapper .search-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--cet-primary);
    transition: background 0.2s;
}

.it-search-wrapper .search-link:hover {
    background: var(--cet-primary-dark);
}

.it-search-wrapper .search-link .icon {
    width: 20px;
    height: 20px;
    fill: #fff;
    transition: width 0.3s ease, height 0.3s ease;
}

/* Navigation */
.it-header-navbar-wrapper {
    background-color: var(--cet-primary);
}

.it-header-navbar-wrapper .navbar {
    padding: 0;
}

.it-header-navbar-wrapper .navbar-nav .nav-link {
    color: #fff;
    padding: 14px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.2s;
}

.it-header-navbar-wrapper .navbar-nav .nav-link:hover,
.it-header-navbar-wrapper .navbar-nav .nav-item.active .nav-link {
    background: rgba(255, 255, 255, 0.1);
}

/* Dropdown arrows on nav items */
.it-header-navbar-wrapper .navbar-nav .nav-link.dropdown-toggle::after {
    display: inline-block;
    margin-left: 6px;
    vertical-align: middle;
    content: "";
    border-top: 5px solid #fff;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}

.custom-navbar-toggler {
    background: none;
    border: none;
    color: #fff;
    padding: 8px;
    cursor: pointer;
}

.custom-navbar-toggler .icon {
    fill: #fff;
    width: 24px;
    height: 24px;
}

/* ---- Sticky Header (single header that shrinks) ---- */
header.it-header-wrapper {
    position: relative;
    z-index: 1040;
    transition: box-shadow 0.3s ease;
    width: 100%;
}

header.it-header-wrapper.is-sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

/* ---- Sticky: white bar shrinks ---- */
header.is-sticky .it-header-center-wrapper {
    padding: 2px 0 !important;
    height: auto !important;
}

header.is-sticky .it-brand-wrapper {
    margin: 0 !important;
    padding: 0 !important;
}

header.is-sticky .it-brand-wrapper a {
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

header.is-sticky .it-brand-wrapper .brand-logo,
header.is-sticky .it-brand-wrapper img.brand-logo {
    height: 40px !important;
}

header.is-sticky .it-brand-wrapper .brand-logo-text {
    font-size: 0.85rem !important;
}

header.is-sticky .it-brand-tagline {
    display: none !important;
}

header.is-sticky .it-socials {
    display: none !important;
}

header.is-sticky .search-label {
    display: none !important;
}

header.is-sticky .it-right-zone {
    gap: 8px !important;
}

header.is-sticky .it-search-wrapper .search-link {
    width: 28px !important;
    height: 28px !important;
}

header.is-sticky .it-search-wrapper .search-link .icon {
    width: 14px !important;
    height: 14px !important;
}

/* ---- Sticky: navbar shrinks ---- */
header.is-sticky .it-header-navbar-wrapper .navbar-nav .nav-link {
    padding: 6px 14px !important;
    font-size: 0.85rem !important;
}

/* Admin bar offset for sticky header */
.admin-bar header.it-header-wrapper.is-sticky {
    top: 32px !important;
}

@media (max-width: 782px) {
    .admin-bar header.it-header-wrapper.is-sticky {
        top: 46px !important;
    }
}

/* Spacer to prevent content jump when header becomes fixed */
.header-spacer {
    display: none;
}

.header-spacer.active {
    display: block;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: var(--cet-primary);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--cet-text-muted);
}

/* ---- Cards (override Bootstrap Italia) ---- */
.card-wrapper {
    display: block !important;
    padding-bottom: 0 !important;
}

.card-wrapper .card-body,
.card.card-big .card-body {
    padding: 20px !important;
}

/* Bootstrap Italia: .card a.read-more { position:absolute; bottom:24px } - fix */
.card a.read-more,
a.read-more {
    position: static !important;
    display: inline-flex !important;
    margin-top: 12px;
}

.card-bg {
    background: #fff;
    border: 1px solid var(--cet-border);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s;
    overflow: hidden;
}

.card-bg:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.border-bottom-card {
    border-bottom: 3px solid var(--cet-primary);
}

.card .category-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.card .category-top .category {
    color: var(--cet-primary);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.card .category-top .data {
    color: var(--cet-text-muted);
}

.card-title a {
    color: var(--cet-text);
    text-decoration: none;
}

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

.card-text {
    color: var(--cet-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--cet-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.read-more:hover {
    text-decoration: underline;
}

.read-more .icon {
    width: 18px;
    height: 18px;
    fill: var(--cet-primary);
}

/* ---- Hero Section (Homepage) ---- */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 420px;
    display: flex;
    align-items: center;
}

.hero-overlay {
    display: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 650px;
    padding: 80px 0;
}

.hero-kicker {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.hero-title {
    color: #fff;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-cta {
    background: #d4956a;
    color: #fff;
    border: none;
    padding: 14px 36px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.hero-cta:hover {
    background: #c07e55;
    color: #fff;
}

/* ---- Page Header Image (Internal Pages) ---- */
.page-header-image {
    position: relative;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-header-overlay {
    display: none;
}

/* ---- Homepage Sections ---- */
.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--cet-text);
}

.section-news {
    background: #fff;
}

.section-bandi {
    background: var(--cet-bg-light);
}

.section-bandi .card .categoryicon-top {
    margin-bottom: 12px;
}

.section-bandi .card .categoryicon-top .icon {
    width: 40px;
    height: 40px;
}

.icon-lg {
    width: 40px;
    height: 40px;
}

/* Siti Tematici */
.section-siti-tematici {
    background: #fff;
}

.sito-tematico-link {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-radius: 24px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.sito-tematico-link:hover {
    opacity: 0.85;
    color: #fff;
    text-decoration: none;
}

.sito-tematico--primary {
    background-color: var(--cet-primary);
}

.sito-tematico--danger {
    background-color: var(--cet-accent-red);
}

.sito-tematico--success {
    background-color: var(--cet-accent-green);
}

.sito-tematico--info {
    background-color: var(--cet-primary-light);
}

/* ---- Accordion (Società Trasparente) ---- */
.accordion-item {
    border: none;
    border-bottom: 1px solid var(--cet-border);
}

.accordion-button {
    font-weight: 600;
    color: var(--cet-text);
    padding: 16px 0;
    background: none;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    color: var(--cet-primary);
    background: none;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--cet-border);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23003580'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 16px 0 24px;
}

/* ---- Trasparenza: layout a due colonne ---- */

/* Sidebar menu */
.trasp-sidebar {
    background: #fff;
    border: 1px solid var(--cet-border);
    border-radius: 6px;
    overflow: hidden;
    position: sticky;
    top: 120px;
}

.trasp-cat-group {
    border-bottom: 1px solid var(--cet-border);
}

.trasp-cat-group:last-child {
    border-bottom: none;
}

.trasp-cat-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--cet-text);
    cursor: pointer;
    text-align: left;
    transition: background 0.15s, color 0.15s;
}

.trasp-cat-toggle:hover {
    background: var(--cet-bg-light);
}

.trasp-cat-toggle.active {
    background: var(--cet-primary);
    color: #fff;
}

.trasp-cat-toggle .trasp-chevron {
    fill: currentColor;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.trasp-cat-toggle.active .trasp-chevron {
    transform: rotate(90deg);
}

.trasp-cat-items {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.trasp-cat-items.open {
    max-height: 600px;
}

.trasp-cat-items li {
    border-top: 1px solid var(--cet-border);
}

.trasp-cat-items .trasp-empty {
    padding: 10px 16px 10px 28px;
    color: var(--cet-text-muted);
    font-size: 0.85rem;
    font-style: italic;
}

.trasp-item-link {
    display: block;
    padding: 10px 16px 10px 28px;
    color: var(--cet-text);
    text-decoration: none;
    font-size: 0.88rem;
    transition: background 0.15s, color 0.15s;
}

.trasp-item-link:hover {
    background: var(--cet-bg-light);
    color: var(--cet-primary);
}

.trasp-item-link.active {
    background: rgba(0, 53, 128, 0.08);
    color: var(--cet-primary);
    font-weight: 600;
}

/* Pannello dettaglio */
.trasp-detail {
    background: #fff;
    border: 1px solid var(--cet-border);
    border-radius: 6px;
    padding: 30px;
    min-height: 300px;
}

.trasp-detail-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    text-align: center;
    color: var(--cet-text-muted);
}

.trasp-detail-placeholder p {
    margin-top: 16px;
    font-size: 0.95rem;
}

#trasp-titolo {
    font-size: 1.4rem;
    color: var(--cet-primary);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--cet-primary);
}

.trasp-descrizione {
    color: var(--cet-text-muted);
    margin-bottom: 24px;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Data pubblicazione */
.trasp-data {
    font-size: 0.85rem;
    color: var(--cet-text-muted);
    margin: -8px 0 16px;
}

/* Blocchi documenti */
.trasp-blocco-frontend {
    margin-bottom: 24px;
}

.trasp-blocco-frontend h4 {
    font-size: 1rem;
    color: var(--cet-text);
    margin: 0 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--cet-border);
}

.trasp-documenti-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trasp-documenti-list li {
    padding: 3px 0;
}

.trasp-documenti-list a {
    color: var(--cet-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.93rem;
}

.trasp-documenti-list a:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    .trasp-sidebar {
        position: static;
        margin-bottom: 20px;
    }

    .trasp-detail {
        padding: 20px;
    }
}

/* ---- News Archive Sidebar ---- */
.news-archive-sidebar {
    background: #fff;
    border: 1px solid var(--cet-border);
    border-radius: 6px;
    padding: 24px;
    position: sticky;
    top: 120px;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cet-text);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--cet-primary);
}

.archive-year-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid var(--cet-border);
    text-decoration: none;
    color: var(--cet-text);
    transition: background 0.15s;
}

.archive-year-link:last-child {
    border-bottom: none;
}

.archive-year-link:hover {
    background: var(--cet-bg-light);
    color: var(--cet-primary);
}

.archive-year {
    font-weight: 600;
    font-size: 1rem;
}

.archive-count {
    background: var(--cet-primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 12px;
    min-width: 28px;
    text-align: center;
}

.archive-year-link.active {
    background: rgba(0, 53, 128, 0.08);
    color: var(--cet-primary);
}

.archive-year-link.active .archive-year {
    color: var(--cet-primary);
}

/* ---- News Cards (no Bootstrap Italia classes) ---- */
.cet-news-card {
    background: #fff;
    border: 1px solid var(--cet-border);
    border-bottom: 3px solid var(--cet-primary);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s;
}

.cet-news-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.cet-news-card-inner {
    padding: 20px;
}

.cet-news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.cet-news-cat {
    color: var(--cet-primary);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.cet-news-date {
    color: var(--cet-text-muted);
}

.cet-news-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.cet-news-title a {
    color: var(--cet-text);
    text-decoration: none;
}

.cet-news-title a:hover {
    color: var(--cet-primary);
}

.cet-news-excerpt {
    color: var(--cet-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 12px;
}

.cet-news-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--cet-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.cet-news-more:hover {
    text-decoration: underline;
}

.cet-news-more .icon {
    width: 18px;
    height: 18px;
    fill: var(--cet-primary);
}

/* ---- Article (Single Post) ---- */
.article-title {
    font-size: 2rem;
    line-height: 1.2;
}

.article-excerpt {
    font-size: 1.1rem;
}

.article-meta {
    font-size: 0.9rem;
}

.article-content {
    font-size: 1rem;
    line-height: 1.8;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.article-content p {
    margin-bottom: 1.2rem;
}

/* ---- Footer ---- */
.it-footer {
    margin-top: auto;
}

.it-footer-main {
    background-color: var(--cet-primary);
    color: #fff;
    padding: 20px 0;
}

.it-footer-main h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.it-footer-main a {
    color: #fff;
    text-decoration: none;
}

.it-footer-main a:hover {
    text-decoration: underline;
}

.it-footer-main .icon {
    fill: #fff;
}

.it-footer-small-prints {
    background-color: var(--cet-primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 0;
    font-size: 0.8rem;
}

.it-footer-small-prints a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.it-footer-small-prints a:hover {
    color: #fff;
    text-decoration: underline;
}

.it-footer-small-prints-list .list-inline-item:not(:last-child) {
    margin-right: 16px;
}

/* ---- Search Page ---- */
.search-opere-pubbliche .input-group-text {
    border-color: var(--cet-border);
}

.search-opere-pubbliche .form-control {
    border-color: var(--cet-border);
}

.search-opere-pubbliche .form-control:focus {
    border-color: var(--cet-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 53, 128, 0.15);
}

/* ---- Pagination ---- */
.pagination {
    justify-content: center;
}

.page-link {
    color: var(--cet-primary);
}

.page-item.active .page-link {
    background-color: var(--cet-primary);
    border-color: var(--cet-primary);
}

/* ---- Utility ---- */
.page-title {
    font-size: 2rem;
    color: var(--cet-text);
}

.bg-light {
    background-color: var(--cet-bg-light) !important;
}

/* ---- Responsive ---- */
/* ============================================
   RESPONSIVE
   ============================================ */

/* ---- Desktop: hide mobile elements ---- */
@media (min-width: 992px) {
    .close-div {
        display: none;
    }

    .navbar-collapsable .overlay {
        display: none !important;
    }
}

/* ---- Tablet & below (< 992px): hamburger menu ---- */
@media (max-width: 991px) {
    .navbar .navbar-collapsable {
        display: block !important;
        position: fixed;
        top: 0;
        left: -300px;
        width: 300px;
        height: 100vh;
        background: var(--cet-primary);
        z-index: 1050;
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .navbar .navbar-collapsable.expanded {
        left: 0;
    }

    .navbar .navbar-collapsable .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }

    .navbar .navbar-collapsable.expanded .overlay {
        display: block !important;
    }

    .close-div {
        padding: 16px;
        text-align: right;
    }

    .close-menu {
        color: #fff;
        background: none;
        border: none;
        padding: 8px;
    }

    .close-menu .icon {
        fill: #fff;
        width: 24px;
        height: 24px;
    }

    .it-header-navbar-wrapper .navbar-nav .nav-link {
        padding: 14px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Hamburger button: min 44px touch target */
    .custom-navbar-toggler {
        padding: 10px;
        min-width: 44px;
        min-height: 44px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-content {
        padding: 50px 0;
    }

    .hero-section {
        min-height: 350px;
    }
}

/* ---- Tablet (577px - 767px) ---- */
@media (max-width: 767px) {
    .it-brand-wrapper img.brand-logo {
        height: 50px;
    }

    .it-brand-tagline {
        font-size: 0.75rem;
    }

    .page-header-image {
        height: 140px;
    }

    .hero-section {
        min-height: 300px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-cta {
        padding: 12px 28px;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

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

    /* Trasparenza: stack vertically */
    .trasp-sidebar {
        position: static;
        margin-bottom: 20px;
    }

    .trasp-detail {
        padding: 20px;
    }

    /* News archive sidebar */
    .news-archive-sidebar {
        position: static;
    }

    /* Footer stacking */
    .it-footer-small-prints .row > div {
        text-align: left !important;
    }
}

/* ---- Phone (< 576px) ---- */
@media (max-width: 575px) {
    /* Header */
    .it-header-center-wrapper {
        padding: 8px 0 !important;
    }

    .it-brand-wrapper img.brand-logo {
        height: 40px;
    }

    .it-brand-tagline {
        display: none;
    }

    .it-right-zone {
        gap: 8px;
    }

    .it-search-wrapper .search-link {
        width: 38px;
        height: 38px;
    }

    /* Hero */
    .hero-section {
        min-height: 250px;
    }

    .hero-content {
        padding: 30px 0;
    }

    .hero-kicker {
        font-size: 0.8rem;
    }

    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .hero-description {
        font-size: 0.88rem;
        margin-bottom: 20px;
    }

    .hero-cta {
        padding: 10px 24px;
        font-size: 0.85rem;
    }

    /* Page header */
    .page-header-image {
        height: 100px;
    }

    /* Typography */
    .page-title {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 1.15rem;
    }

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

    .article-content {
        font-size: 0.95rem;
    }

    /* Cards */
    .cet-news-card-inner {
        padding: 14px;
    }

    .cet-news-title {
        font-size: 1rem;
    }

    /* Trasparenza */
    .trasp-cat-toggle {
        padding: 14px 16px;
        font-size: 0.85rem;
    }

    .trasp-item-link {
        padding: 12px 16px 12px 24px;
    }

    .trasp-detail {
        padding: 16px;
        min-height: 200px;
    }

    #trasp-titolo {
        font-size: 1.15rem;
    }

    /* Single post meta */
    .article-meta {
        flex-direction: column;
        gap: 4px;
    }

    .article-share {
        margin-top: 8px;
    }

    /* Footer */
    .it-footer-main {
        padding: 16px 0;
    }

    .it-footer-small-prints-list {
        flex-direction: column !important;
        gap: 4px;
    }
}

/* ---- SVG Icons ---- */
.icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
}

.icon-xs {
    width: 16px;
    height: 16px;
}

.icon-sm {
    width: 20px;
    height: 20px;
}

.icon-primary {
    fill: var(--cet-primary);
}

.icon-white {
    fill: #fff;
}
