/*
Theme Name: ANIEM Abruzzo
Theme URI: https://www.aniemabruzzo.it
Author: Confapi ANIEM Abruzzo
Author URI: https://www.aniemabruzzo.it
Description: Tema istituzionale WordPress per Confapi ANIEM Abruzzo. Design moderno B2B con palette navy, blu, bianco e oro.
Version: 1.5.3
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aniem-abruzzo
Tags: one-column, two-columns, custom-menu, custom-logo, featured-images, theme-options, translation-ready
*/

:root {
  --navy: #0A1E3D;
  --navy-light: #132D5E;
  --navy-dark: #060F1F;
  --blue-accent: #1B4F8A;
  --blue-bright: #2E6BBF;
  --blue-sky: #4A90D9;
  --white: #FFFFFF;
  --off-white: #F7F8FA;
  --grey-100: #EEF0F4;
  --grey-200: #D8DCE3;
  --grey-300: #B0B7C3;
  --grey-400: #8892A0;
  --grey-500: #5F6B7A;
  --grey-600: #3D4654;
  --grey-700: #2A3140;
  --gold: #C8A44E;
  --gold-light: #E3C97A;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --section-pad: clamp(4rem, 8vw, 7rem);
  --container: min(1240px, 92vw);
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); color: var(--grey-700); background: var(--white); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
.container { width: var(--container); margin: 0 auto; }

/* TOPBAR */
.topbar { background: var(--navy-dark); color: var(--grey-300); font-size: 0.8rem; padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.topbar a { color: var(--grey-300); transition: color 0.3s; display: inline-flex; align-items: center; gap: 0.4rem; }
.topbar a:hover { color: var(--gold-light); }
.topbar__left { display: flex; gap: 1.5rem; align-items: center; }
.topbar__right { display: flex; gap: 1.2rem; align-items: center; }
.topbar__right a { padding: 0.25rem 0.75rem; border: 1px solid rgba(255,255,255,0.12); border-radius: 3px; font-weight: 500; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; transition: all 0.3s; }
.topbar__right a:hover { border-color: var(--gold); color: var(--gold-light); }
.topbar svg { width: 14px; height: 14px; }

/* HEADER */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,0.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--grey-100); transition: box-shadow 0.4s var(--ease); }
.site-header.scrolled { box-shadow: 0 4px 30px rgba(10,30,61,0.08); }
.site-header .container { display: flex; justify-content: space-between; align-items: center; height: 80px; }

.site-logo { display: flex; align-items: center; gap: 0.9rem; }
/*.site-logo__icon { width: 52px; height: 52px; background: var(--navy); border-radius: 8px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; flex-shrink: 0; }*/
/*.site-logo__icon::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--gold); }*/
.site-logo__icon img { width: auto; height: 52px; object-fit: contain; }
.site-logo__icon svg { width: 32px; height: 32px; }
.site-logo__text { line-height: 1.15; }
.site-logo__name { font-family: var(--font-display); font-size: 1.35rem; color: var(--navy); font-weight: 400; }
.site-logo__name span { color: var(--blue-accent); }
.site-logo__sub { font-size: 0.65rem; color: var(--grey-400); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 500; }

/* NAVIGATION */
.main-navigation { display: flex; align-items: center; }
.main-navigation ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.main-navigation li { position: relative; }
.main-navigation a { position: relative; display: block; padding: 0.5rem 1.1rem; font-size: 0.88rem; font-weight: 500; color: var(--grey-600); transition: color 0.3s; }
.main-navigation a:hover { color: var(--navy); }
.main-navigation a::after { content: ''; position: absolute; bottom: -2px; left: 1.1rem; right: 1.1rem; height: 2px; background: var(--blue-accent); transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease-out); }
.main-navigation a:hover::after, .main-navigation .current-menu-item > a::after, .main-navigation .current_page_item > a::after { transform: scaleX(1); transform-origin: left; }
.main-navigation .sub-menu { position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--white); border: 1px solid var(--grey-100); border-radius: 6px; padding: 0.5rem 0; box-shadow: 0 12px 40px rgba(10,30,61,0.1); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all 0.3s var(--ease); }
.main-navigation li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-navigation .sub-menu {
    display: block !important;      /* disattiva il flex */
}

.main-navigation .sub-menu li {
    display: block !important;      /* ogni voce su una riga */
}

.main-navigation .sub-menu a {
    display: block;                 /* cliccabile tutta la riga */
}

.main-navigation .sub-menu a { padding: 0.6rem 1.2rem; font-size: 0.85rem; }
.main-navigation .sub-menu a::after { display: none; }
.main-navigation .sub-menu a:hover { background: var(--off-white); color: var(--blue-accent); }
.main-navigation .menu-item-cta > a { margin-left: 1rem; padding: 0.6rem 1.4rem; background: var(--navy); color: var(--white) !important; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; border-radius: 4px; }
.main-navigation .menu-item-cta > a::after { display: none; }
.main-navigation .menu-item-cta > a:hover { background: var(--blue-accent); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); transition: all 0.3s; border-radius: 1px; }

/* HERO */
.hero { position: relative; min-height: 85vh; display: flex; align-items: center; background: var(--navy); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 20%, rgba(27,79,138,0.4) 0%, transparent 60%), radial-gradient(ellipse at 80% 80%, rgba(200,164,78,0.08) 0%, transparent 50%), linear-gradient(175deg, var(--navy) 0%, var(--navy-dark) 100%); }
.hero__grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(ellipse at 40% 50%, black 30%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 40% 50%, black 30%, transparent 70%); }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero__content { position: relative; z-index: 2; padding: var(--section-pad) 0; }
.hero__badge { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.45rem 1rem; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 100px; font-size: 0.78rem; font-weight: 500; color: var(--gold-light); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 2rem; animation: fadeUp 0.8s var(--ease-out) 0.2s both; }
.hero__badge::before { content: ''; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; animation: pulse 2s infinite; }
.hero__title { font-family: var(--font-display); font-size: clamp(2.4rem, 4.5vw, 3.8rem); color: var(--white); line-height: 1.1; font-weight: 400; margin-bottom: 1.5rem; animation: fadeUp 0.8s var(--ease-out) 0.4s both; }
.hero__title em { font-style: italic; color: var(--gold-light); }
.hero__desc { font-size: 1.05rem; color: var(--grey-300); line-height: 1.7; margin-bottom: 2.5rem; animation: fadeUp 0.8s var(--ease-out) 0.6s both; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; animation: fadeUp 0.8s var(--ease-out) 0.8s both; }

/* Hero visual (right column) */
.hero__visual { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; animation: fadeUp 0.8s var(--ease-out) 0.5s both; }
.hero__img { width: 100%; max-width: 540px; border-radius: 12px; box-shadow: 0 40px 80px rgba(0,0,0,0.35); }
.hero__illustration { width: 100%; max-width: 540px; }
.hero__svg { width: 100%; height: auto; filter: drop-shadow(0 24px 48px rgba(0,0,0,0.28)); }

.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.8rem; font-size: 0.88rem; font-weight: 600; letter-spacing: 0.03em; border-radius: 4px; transition: all 0.4s var(--ease); border: none; cursor: pointer; }
.btn--primary { background: var(--gold); color: var(--navy-dark); }
.btn--primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(200,164,78,0.3); }
.btn--outline { border: 1px solid rgba(255,255,255,0.2); color: var(--white); background: transparent; }
.btn--outline:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--blue-accent); }
.btn--white { background: var(--white); color: var(--navy); }
.btn--white:hover { background: var(--gold-light); color: var(--navy-dark); }
.btn--ghost { border: 1px solid rgba(255,255,255,0.25); color: var(--white); background: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,0.08); }
.btn svg { width: 16px; height: 16px; }

/* STATS BAR */
.stats-bar { background: var(--white); padding: 0; border-bottom: 1px solid var(--grey-100); box-shadow: 0 4px 24px rgba(10,30,61,0.06); position: relative; }
.stats-bar::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--navy) 0%, var(--blue-accent) 50%, var(--gold) 100%); }
.stats-bar__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-bar__item { text-align: center; padding: 2.2rem 1.5rem; border-right: 1px solid var(--grey-100); transition: background 0.3s var(--ease); cursor: default; }
.stats-bar__item:last-child { border-right: none; }
.stats-bar__item:hover { background: var(--off-white); }
.stats-bar__num { font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 3rem); color: var(--navy); line-height: 1; margin-bottom: 0.5rem; transition: color 0.3s; }
.stats-bar__item:hover .stats-bar__num { color: var(--blue-accent); }
.stats-bar__label { font-size: 0.73rem; color: var(--grey-500); text-transform: uppercase; letter-spacing: 0.11em; font-weight: 600; }

/* SECTIONS */
.section { padding: var(--section-pad) 0; }
.section--grey { background: var(--off-white); }
.section--navy { background: var(--navy); color: var(--white); }
.section__header { margin-bottom: 3.5rem; max-width: 600px; }
.section__header--center { text-align: center; margin-left: auto; margin-right: auto; }
.section__label { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--blue-accent); margin-bottom: 1rem; }
.section__label::before { content: ''; width: 24px; height: 2px; background: var(--gold); }
.section--navy .section__label { color: var(--gold-light); }
.section__title { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.8rem); color: var(--navy); line-height: 1.15; font-weight: 400; }
.section--navy .section__title { color: var(--white); }
.section__title em { font-style: italic; color: var(--blue-accent); }
.section--navy .section__title em { color: var(--gold-light); }
.section__desc { margin-top: 1rem; font-size: 1.05rem; color: var(--grey-500); line-height: 1.7; }
.section--navy .section__desc { color: var(--grey-300); }

/* SERVICE CARDS */
.services__grid { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; }

/* Larghezza card per numero di colonne */
.services--cols-4 .service-card { flex: 0 0 calc(25%     - 1.125rem); } /* 4 col: gap*3/4 = 1.125 */
.services--cols-3 .service-card { flex: 0 0 calc(33.333% - 1rem);     } /* 3 col: gap*2/3 = 1     */
.services--cols-2 .service-card { flex: 0 0 calc(50%     - 0.75rem);  } /* 2 col: gap*1/2 = 0.75  */
.services--cols-1 .service-card { flex: 0 0 min(100%, 400px);         }
/* default (nessuna classe): 3 colonne */
.services__grid:not([class*="services--cols"]) .service-card { flex: 0 0 calc(33.333% - 1rem); }

.service-card { position: relative; padding: 2.2rem; background: var(--white); border: 1px solid var(--grey-100); border-radius: 8px; transition: all 0.5s var(--ease); overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--navy), var(--blue-accent)); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease-out); }
.service-card:hover { border-color: var(--grey-200); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(10,30,61,0.08); }
.service-card:hover::before { transform: scaleX(1); }
.service-card__icon { width: 48px; height: 48px; background: var(--off-white); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; transition: all 0.4s; }
.service-card:hover .service-card__icon { background: var(--navy); }
.service-card__icon svg { width: 24px; height: 24px; color: var(--navy); transition: color 0.4s; }
.service-card:hover .service-card__icon svg { color: var(--white); }
.service-card__title { font-family: var(--font-display); font-size: 1.3rem; color: var(--navy); margin-bottom: 0.8rem; }
.service-card__desc { font-size: 0.92rem; color: var(--grey-500); line-height: 1.7; margin-bottom: 1.2rem; }
.service-card__link { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; font-weight: 600; color: var(--blue-accent); text-transform: uppercase; letter-spacing: 0.06em; transition: gap 0.3s; }
.service-card__link:hover { gap: 0.8rem; }
.service-card__link svg { width: 14px; height: 14px; }

/* ABOUT */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about__image { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; background: var(--grey-100); }
.about__image img { width: 100%; height: 100%; object-fit: cover; }
.about__image-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--navy) 0%, var(--blue-accent) 100%); display: flex; align-items: center; justify-content: center; position: relative; }
.about__image-placeholder::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 40px 40px; }
.about__image-placeholder span { position: relative; z-index: 1; font-family: var(--font-display); font-size: 5rem; color: rgba(255,255,255,0.1); font-style: italic; }
.about__accent { position: absolute; bottom: -1rem; right: -1rem; width: 120px; height: 120px; border: 3px solid var(--gold); border-radius: 8px; z-index: -1; }
.about__text { font-size: 1rem; color: var(--grey-500); line-height: 1.8; margin-bottom: 1.5rem; }
.about__highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.about__highlight { display: flex; align-items: flex-start; gap: 0.7rem; padding: 1rem; background: var(--off-white); border-radius: 6px; }
.about__highlight-icon { width: 32px; height: 32px; background: var(--navy); border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.about__highlight-icon svg { width: 16px; height: 16px; color: var(--gold); }
.about__highlight-text { font-size: 0.85rem; font-weight: 600; color: var(--navy); line-height: 1.4; }

/* NEWS CARDS */
.news__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.5rem; }
.news-card { position: relative; border-radius: 8px; overflow: hidden; background: var(--white); border: 1px solid var(--grey-100); transition: all 0.5s var(--ease); display: block; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(10,30,61,0.08); }
.news-card__img { height: 220px; background: linear-gradient(135deg, var(--grey-100), var(--grey-200)); position: relative; overflow: hidden; }
.news-card--featured .news-card__img { height: 280px; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; }
.news-card__img-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, var(--navy) 0%, var(--blue-accent) 60%); opacity: 0.85; display: flex; align-items: center; justify-content: center; }
.news-card__img-overlay svg { width: 48px; height: 48px; color: rgba(255,255,255,0.15); }
.news-card__body { padding: 1.5rem; }
.news-card__meta { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.8rem; }
.news-card__tag { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.25rem 0.6rem; background: var(--off-white); color: var(--blue-accent); border-radius: 3px; }
.news-card__date { font-size: 0.78rem; color: var(--grey-400); }
.news-card__title { font-family: var(--font-display); font-size: 1.2rem; color: var(--navy); line-height: 1.35; margin-bottom: 0.6rem; transition: color 0.3s; }
.news-card--featured .news-card__title { font-size: 1.5rem; }
.news-card:hover .news-card__title { color: var(--blue-accent); }
.news-card__excerpt { font-size: 0.9rem; color: var(--grey-500); line-height: 1.6; }

/* ENTI */
.enti__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.enti-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 2rem; text-align: center; transition: all 0.4s var(--ease); }
.enti-card:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); transform: translateY(-3px); }
.enti-card__icon { width: 56px; height: 56px; margin: 0 auto 1.2rem; background: rgba(200,164,78,0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.enti-card__icon svg { width: 28px; height: 28px; color: var(--gold); }
.enti-card__name { font-family: var(--font-display); font-size: 1.15rem; color: var(--white); margin-bottom: 0.5rem; }
.enti-card__desc { font-size: 0.82rem; color: var(--grey-400); line-height: 1.5; }

/* SEDI */
.sedi__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.sede-card { padding: 2rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.09); border-radius: 8px; position: relative; overflow: hidden; transition: all 0.4s var(--ease); }
.sede-card::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--gold); opacity: 0.65; transition: opacity 0.4s; }
.sede-card:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.18); transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,0.22); }
.sede-card:hover::before { opacity: 1; }
.sede-card__province { font-family: var(--font-display); font-size: 1.4rem; color: var(--white); margin-bottom: 0.3rem; }
.sede-card__president { font-size: 0.85rem; color: var(--gold-light); font-weight: 600; margin-bottom: 1rem; }
.sede-card__info { font-size: 0.88rem; color: var(--grey-300); line-height: 1.8; }
.sede-card__info p { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.3rem; }
.sede-card__info svg { width: 14px; height: 14px; color: rgba(200,164,78,0.55); flex-shrink: 0; }
.sede-card__info a { color: var(--gold-light); transition: color 0.3s; }
.sede-card__info a:hover { color: var(--white); }

/* PARTNER / SPONSOR ───────────────────────────────────── */
.partners-section { background: var(--white); padding: var(--section-pad) 0; border-top: 1px solid var(--grey-100); }
.partners-grid { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; align-items: stretch; margin-top: 2.5rem; }

.partners-grid__item {
    flex: 0 0 calc(16.666% - 1.25rem);
    min-width: 100px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 1.4rem 1.5rem;
    border: 1px solid var(--grey-100);
    border-radius: 10px;
    background: var(--white);
    transition: box-shadow .25s var(--ease), border-color .25s, transform .25s var(--ease);
}
.partners-grid__item:hover { box-shadow: 0 8px 28px rgba(10,30,61,.09); border-color: var(--blue-accent); transform: translateY(-3px); }

.partners-grid__link { display: flex; align-items: center; justify-content: center; width: 100%; }

.partners-grid__logo {
    display: block;
    max-width: 100%;
    max-height: 58px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(15%) opacity(0.82);
    transition: filter .25s, transform .2s;
}
.partners-grid__item:hover .partners-grid__logo { filter: grayscale(0) opacity(1); transform: scale(1.04); }

.partners-grid__desc { font-size: 0.76rem; color: var(--grey-500); text-align: center; line-height: 1.45; width: 100%; padding-top: 0.2rem; border-top: 1px solid var(--grey-100); }

/* CTA BANNER */
.cta-banner { padding: var(--section-pad) 0; background: var(--off-white); }
.cta-banner__inner { position: relative; background: var(--navy); border-radius: 16px; padding: 4rem; display: flex; align-items: center; justify-content: space-between; gap: 3rem; overflow: hidden; }
.cta-banner__inner::before { content: ''; position: absolute; top: -50%; right: -10%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(27,79,138,0.4) 0%, transparent 60%); }
.cta-banner__content { position: relative; z-index: 1; max-width: 560px; }
.cta-banner__title { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--white); line-height: 1.2; margin-bottom: 1rem; }
.cta-banner__title em { font-style: italic; color: var(--gold-light); }
.cta-banner__desc { color: var(--grey-300); font-size: 1rem; line-height: 1.7; }
.cta-banner__actions { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 0.8rem; }

/* FOOTER */
.site-footer { background: var(--navy-dark); color: var(--grey-400); padding-top: 4rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.footer__brand-desc { font-size: 0.9rem; line-height: 1.7; margin: 1.2rem 0; }
.footer__social { display: flex; gap: 0.6rem; margin-top: 1.2rem; }
.footer__social a { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; transition: all 0.3s; }
.footer__social a:hover { border-color: var(--gold); background: rgba(200,164,78,0.1); }
.footer__social svg { width: 16px; height: 16px; color: var(--grey-400); }
.footer__social a:hover svg { color: var(--gold); }
.footer__heading { font-family: var(--font-display); font-size: 1.1rem; color: var(--white); margin-bottom: 1.2rem; }
.footer__links { list-style: none; margin: 0; padding: 0; }
.footer__links li { margin-bottom: 0.6rem; }
.footer__links a { font-size: 0.88rem; color: var(--grey-400); transition: color 0.3s; }
.footer__links a:hover { color: var(--gold-light); }
.footer-widgets .widget { margin-bottom: 2rem; }
.footer-widgets .widget-title { font-family: var(--font-display); font-size: 1.1rem; color: var(--white); margin-bottom: 1.2rem; }
.footer-widgets .widget ul { list-style: none; margin: 0; padding: 0; }
.footer-widgets .widget ul li { margin-bottom: 0.6rem; }
.footer-widgets .widget ul li a { font-size: 0.88rem; color: var(--grey-400); transition: color 0.3s; }
.footer-widgets .widget ul li a:hover { color: var(--gold-light); }
.footer__contact-item { display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: 1rem; font-size: 0.88rem; }
.footer__contact-item svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--gold); }
.footer__bottom { padding: 1.5rem 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.78rem; }
.footer__bottom a:hover { color: var(--gold-light); }
.footer__legal { display: flex; gap: 1.5rem; }

/* PAGE BANNER */
.page-banner { background: var(--navy); padding: 4rem 0; position: relative; overflow: hidden; }
.page-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 50%, rgba(27,79,138,0.3) 0%, transparent 60%); }
.page-banner .container { position: relative; z-index: 1; }
.page-banner__title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem); color: var(--white); margin-bottom: 0.5rem; }
.page-banner__breadcrumb { font-size: 0.85rem; color: var(--grey-400); }
.page-banner__breadcrumb a { color: var(--gold-light); transition: color 0.3s; }
.page-banner__breadcrumb a:hover { color: var(--white); }

/* IMPRESE ASSOCIATE — ARCHIVIO ─────────────────────────────── */
.impresa-filter { background: var(--white); border: 1px solid var(--grey-100); border-radius: 10px; padding: 1.8rem 2rem; margin-bottom: 2.5rem; box-shadow: 0 2px 16px rgba(10,30,61,.05); }
.impresa-filter__row { display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap; }
.impresa-filter__field { display: flex; flex-direction: column; gap: .4rem; min-width: 200px; }
.impresa-filter__field--grow { flex: 1; }
.impresa-filter__field label { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--grey-500); display: flex; align-items: center; gap: .35rem; }
.impresa-filter__field label svg { width: 13px; height: 13px; }
.impresa-filter__field input, .impresa-filter__field select { padding: .7rem 1rem; border: 1px solid var(--grey-200); border-radius: 6px; font-family: var(--font-body); font-size: .9rem; color: var(--grey-700); background: var(--white); transition: border-color .3s; height: 44px; }
.impresa-filter__field input:focus, .impresa-filter__field select:focus { outline: none; border-color: var(--blue-accent); box-shadow: 0 0 0 3px rgba(27,79,138,.1); }
.impresa-filter__actions { display: flex; gap: .6rem; align-items: flex-end; }
.impresa-filter__reset { border-color: var(--grey-200) !important; color: var(--grey-500) !important; background: transparent !important; font-size: .82rem !important; }
.impresa-filter__reset:hover { border-color: var(--grey-400) !important; color: var(--grey-700) !important; }
.impresa-filter__count { margin-top: 1rem; font-size: .88rem; color: var(--grey-500); border-top: 1px solid var(--grey-100); padding-top: 1rem; }

.impresa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.impresa-card { display: flex; align-items: center; gap: 1.2rem; background: var(--white); border: 1px solid var(--grey-100); border-radius: 8px; padding: 1.5rem; transition: all .4s var(--ease); text-decoration: none; color: inherit; }
.impresa-card:hover { border-color: var(--blue-accent); box-shadow: 0 12px 40px rgba(10,30,61,.08); transform: translateY(-3px); }
.impresa-card__logo { width: 72px; height: 72px; flex-shrink: 0; border-radius: 8px; overflow: hidden; border: 1px solid var(--grey-100); display: flex; align-items: center; justify-content: center; background: var(--off-white); }
.impresa-card__logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.impresa-card__initials { font-family: var(--font-display); font-size: 1.5rem; color: var(--navy); font-weight: 400; }
.impresa-card__body { flex: 1; min-width: 0; }
.impresa-card__name { font-family: var(--font-display); font-size: 1.1rem; color: var(--navy); margin-bottom: .4rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; }
.impresa-card:hover .impresa-card__name { color: var(--blue-accent); }
.impresa-card__loc { display: flex; align-items: center; gap: .3rem; font-size: .82rem; font-weight: 600; color: var(--blue-accent); margin-bottom: .3rem; }
.impresa-card__loc svg { width: 12px; height: 12px; flex-shrink: 0; }
.impresa-card__detail { display: flex; align-items: center; gap: .3rem; font-size: .8rem; color: var(--grey-500); margin-bottom: .2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.impresa-card__detail svg { width: 12px; height: 12px; flex-shrink: 0; color: var(--grey-400); }
.impresa-card__collegio { display: inline-flex; align-items: center; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; padding: 0.18rem 0.55rem; background: rgba(27,79,138,0.08); color: var(--blue-accent); border-radius: 3px; margin-bottom: 0.45rem; }
.impresa-card__arrow { color: var(--grey-300); transition: color .3s, transform .3s; flex-shrink: 0; }
.impresa-card__arrow svg { width: 18px; height: 18px; }
.impresa-card:hover .impresa-card__arrow { color: var(--blue-accent); transform: translateX(4px); }

.impresa-empty { text-align: center; padding: 4rem 2rem; color: var(--grey-500); }
.impresa-empty__icon { margin: 0 auto 1.5rem; width: 64px; height: 64px; background: var(--grey-100); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.impresa-empty__icon svg { width: 28px; height: 28px; color: var(--grey-400); }

/* IMPRESE ASSOCIATE — SINGOLO ───────────────────────────────── */
.impresa-header { display: flex; gap: 2.5rem; align-items: flex-start; background: var(--white); border: 1px solid var(--grey-100); border-radius: 12px; padding: 2.5rem; margin-bottom: 2.5rem; box-shadow: 0 2px 16px rgba(10,30,61,.05); }
.impresa-header__logo { width: 140px; height: 140px; flex-shrink: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--grey-100); display: flex; align-items: center; justify-content: center; background: var(--off-white); }
.impresa-header__logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.impresa-header__logo--placeholder { background: linear-gradient(135deg, var(--navy) 0%, var(--blue-accent) 100%); border: none; }
.impresa-header__logo--placeholder span { font-family: var(--font-display); font-size: 3rem; color: rgba(255,255,255,.7); text-transform: uppercase; }
.impresa-header__info { flex: 1; }
.impresa-header__name { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--navy); margin-bottom: 1.2rem; line-height: 1.2; }
.impresa-meta-list { display: flex; flex-direction: column; gap: .7rem; }
.impresa-meta-item { display: flex; align-items: center; gap: .6rem; font-size: .92rem; color: var(--grey-600); }
.impresa-meta-item svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }
.impresa-meta-item a { color: var(--blue-accent); transition: color .3s; }
.impresa-meta-item a:hover { color: var(--navy); }
.impresa-meta-item__badge { display: inline-flex; align-items: center; padding: 0.2rem 0.65rem; background: rgba(27,79,138,0.08); color: var(--blue-accent); font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; border-radius: 4px; }
.impresa-desc { margin-bottom: 2rem; }
.impresa-desc h3 { font-family: var(--font-display); font-size: 1.4rem; color: var(--navy); margin-bottom: 1rem; }
.impresa-back { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--grey-100); }

/* ARCHIVE / BLOG */
.archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 2rem; }
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 3rem; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--grey-200); border-radius: 6px; font-size: 0.9rem; font-weight: 500; color: var(--grey-600); transition: all 0.3s; }
.pagination a:hover { border-color: var(--blue-accent); color: var(--blue-accent); }
.pagination .current { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* SINGLE CONTENT */
.single-content { max-width: 780px; margin: 0 auto; }
.content-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; }
.single-content h1, .single-content h2, .single-content h3, .single-content h4 { font-family: var(--font-display); color: var(--navy); margin-top: 2rem; margin-bottom: 1rem; }
.single-content p { margin-bottom: 1.2rem; color: var(--grey-600); line-height: 1.8; }
.single-content ul, .single-content ol { margin: 1rem 0 1.5rem 1.5rem; list-style: disc; }
.single-content ol { list-style: decimal; }
.single-content li { margin-bottom: 0.5rem; color: var(--grey-600); line-height: 1.7; }
.single-content img { border-radius: 8px; margin: 1.5rem 0; }
.single-content blockquote { border-left: 4px solid var(--gold); padding: 1.2rem 1.5rem; margin: 1.5rem 0; background: var(--off-white); border-radius: 0 8px 8px 0; font-style: italic; color: var(--grey-600); }
.single-content a { color: var(--blue-accent); text-decoration: underline; }
.single-content a:hover { color: var(--navy); }

/* SIDEBAR */
.sidebar .widget { margin-bottom: 2rem; padding: 1.5rem; background: var(--off-white); border-radius: 8px; }
.sidebar .widget-title { font-family: var(--font-display); font-size: 1.15rem; color: var(--navy); margin-bottom: 1rem; padding-bottom: 0.8rem; border-bottom: 2px solid var(--grey-200); }
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget ul li { padding: 0.5rem 0; border-bottom: 1px solid var(--grey-200); }
.sidebar .widget ul li:last-child { border-bottom: none; }
.sidebar .widget ul li a { font-size: 0.9rem; color: var(--grey-600); transition: color 0.3s; }
.sidebar .widget ul li a:hover { color: var(--blue-accent); }

/* CF7 FORMS */
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea, .wpcf7 select { width: 100%; padding: 0.8rem 1rem; border: 1px solid var(--grey-200); border-radius: 6px; font-family: var(--font-body); font-size: 0.95rem; color: var(--grey-700); background: var(--white); transition: border-color 0.3s; }
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--blue-accent); box-shadow: 0 0 0 3px rgba(27,79,138,0.1); }
.wpcf7 input[type="submit"] { display: inline-flex; padding: 0.85rem 2rem; background: var(--navy); color: var(--white); font-weight: 600; font-size: 0.9rem; border: none; border-radius: 4px; cursor: pointer; transition: all 0.4s; }
.wpcf7 input[type="submit"]:hover { background: var(--blue-accent); }
.wpcf7 label { display: block; margin-bottom: 0.4rem; font-size: 0.88rem; font-weight: 500; color: var(--grey-600); }
.wpcf7 .wpcf7-form-control-wrap { display: block; margin-bottom: 1.2rem; }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* WP COMPAT */
.wp-block-image { margin: 1.5rem 0; }
.wp-block-image img { border-radius: 8px; }
.aligncenter { text-align: center; }
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute; height: 1px; width: 1px; overflow: hidden; }
body.admin-bar .site-header { top: 32px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; gap: 0; }
  .hero__visual { display: none; }
  .impresa-grid { grid-template-columns: 1fr 1fr; }
  .impresa-header { flex-direction: column; gap: 1.5rem; }
  .impresa-header__logo { width: 100px; height: 100px; }
  .about__grid { grid-template-columns: 1fr; gap: 2rem; }
  .news__grid { grid-template-columns: 1fr 1fr; }
  .enti__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .content-sidebar { grid-template-columns: 1fr; }
  /* Servizi: max 2 colonne su tablet */
  .services--cols-4 .service-card,
  .services--cols-3 .service-card { flex: 0 0 calc(50% - 0.75rem); }
  /* Partner: 3 per riga su tablet */
  .partners-grid__item { flex: 0 0 calc(33.333% - 1rem); }
}
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
@media (max-width: 768px) {
  .topbar { display: none; }
  .site-header .container { height: 64px; }
  .main-navigation { display: none; }
  .menu-toggle { display: flex; }
  .main-navigation.toggled { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); padding: 1rem 1.5rem 1.5rem; border-bottom: 1px solid var(--grey-100); box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
  .main-navigation.toggled ul { flex-direction: column; }
  .main-navigation.toggled li { width: 100%; }
  .main-navigation.toggled a { padding: 0.8rem 0; }
  .main-navigation.toggled .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding-left: 1rem; }
  .main-navigation.toggled .menu-item-cta > a { margin: 0.5rem 0 0; text-align: center; display: block; }
  .hero { min-height: 70vh; }
  .stats-bar__grid { grid-template-columns: 1fr 1fr; }
  .impresa-grid { grid-template-columns: 1fr; }
  .impresa-filter__row { flex-direction: column; }
  .impresa-filter__field { min-width: 0; width: 100%; }
  .impresa-filter__actions { width: 100%; }
  .impresa-filter__actions .btn { flex: 1; justify-content: center; }
  /* Servizi: 1 colonna su mobile */
  .service-card,
  .services--cols-4 .service-card,
  .services--cols-3 .service-card,
  .services--cols-2 .service-card { flex: 0 0 100% !important; }
  .stats-bar__item { border-bottom: 1px solid var(--grey-100); }
  .stats-bar__item:nth-child(2) { border-right: none; }
  .stats-bar__item:nth-child(3) { border-right: 1px solid var(--grey-100); border-bottom: none; }
  .stats-bar__item:nth-child(4) { border-right: none; border-bottom: none; }
  .news__grid { grid-template-columns: 1fr; }
  .enti__grid { grid-template-columns: 1fr; }
  .cta-banner__inner { flex-direction: column; padding: 2.5rem; text-align: center; }
  .cta-banner__actions { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .about__highlights { grid-template-columns: 1fr; }
  .sedi__grid { grid-template-columns: 1fr; }
  /* Partner: 2 per riga su mobile */
  .partners-grid__item { flex: 0 0 calc(50% - .75rem); min-height: 80px; padding: 1rem 1.2rem; }
  .archive-grid { grid-template-columns: 1fr; }
}
