/* ═══════════════════════════════════════════════════════════════════════════
   SSFM – Main Stylesheet
   Colori: navy #1d3557 | teal #0099cc | teal-light #00b4d8 | gray #f4f7fb
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Reset & Variables ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy:        #1d3557;
    --navy-dark:   #142744;
    --teal:        #0099cc;
    --teal-light:  #00b4d8;
    --teal-pale:   #e0f4fb;
    --gray-bg:     #f4f7fb;
    --gray-light:  #eef1f6;
    --gray-mid:    #b0bcc8;
    --text:        #2d3748;
    --text-light:  #64748b;
    --white:       #ffffff;
    --shadow-sm:   0 2px 8px rgba(0,0,0,.07);
    --shadow-md:   0 4px 20px rgba(0,0,0,.12);
    --shadow-lg:   0 8px 40px rgba(0,0,0,.16);
    --radius:      8px;
    --radius-lg:   16px;
    --transition:  0.25s ease;
    --font:        'Inter', system-ui, -apple-system, sans-serif;
    --header-h:    72px;
    --topbar-h:    36px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font);
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-light); }
ul { list-style: none; }
address { font-style: normal; }

/* ── Container ──────────────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Topbar ─────────────────────────────────────────────────────────────── */
.topbar {
    background: var(--navy-dark);
    color: rgba(255,255,255,.75);
    font-size: .78rem;
    height: var(--topbar-h);
    display: flex;
    align-items: center;
}
.topbar__inner {
    display: flex;
    justify-content: flex-end;
    gap: 24px;
}
.topbar a { color: rgba(255,255,255,.75); }
.topbar a:hover { color: var(--white); }

/* ── Site Header ────────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    height: var(--header-h);
}
.header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--navy);
    text-decoration: none;
    flex-shrink: 0;
}
.logo:hover { color: var(--navy); }
.logo__icon {
    width: 44px;
    height: 44px;
    color: var(--teal);
    flex-shrink: 0;
}
.logo__icon--sm { width: 36px; height: 36px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.logo__main {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -.5px;
}
.logo__sub {
    font-size: .65rem;
    color: var(--text-light);
    font-weight: 400;
    max-width: 160px;
}
.logo__img {
    max-height: 48px;
    max-width: 200px;
    width: auto;
    object-fit: contain;
}
.footer__logo-img {
    max-height: 40px;
    max-width: 160px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}
.footer__logo-img--raw {
    filter: none;
}

/* Desktop Nav */
.nav--desktop {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav__link {
    padding: 6px 14px;
    font-size: .88rem;
    font-weight: 500;
    color: var(--text);
    border-radius: 6px;
    transition: background var(--transition), color var(--transition);
}
.nav__link:hover { background: var(--gray-bg); color: var(--teal); }
.nav__link--active { color: var(--teal); background: var(--teal-pale); }

/* Nav Dropdown */
.nav__dropdown {
    position: relative;
    display: inline-block;
}
.nav__link--dropdown {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.nav__chevron {
    width: 14px;
    height: 14px;
    transition: transform var(--transition);
}
.nav__dropdown:hover .nav__chevron,
.nav__dropdown[x-data] .nav__link--dropdown[aria-expanded="true"] .nav__chevron {
    transform: rotate(180deg);
}

.dropdown__menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius);
    border: 1px solid var(--gray-light);
    padding: 8px 0;
    margin-top: 2px;
    z-index: 120;
}
.dropdown__menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
    background: transparent;
}
.nav__dropdown:hover .dropdown__menu {
    display: block !important;
}
.dropdown__item {
    display: block;
    padding: 9px 18px;
    font-size: .86rem;
    font-weight: 500;
    color: var(--text);
    transition: background var(--transition), color var(--transition);
}
.dropdown__item:hover {
    background: var(--gray-bg);
    color: var(--teal);
}
.dropdown__item--active {
    color: var(--teal);
    font-weight: 600;
    background: var(--teal-pale);
}

/* Dropdown Transitions */
.dropdown-enter { transition: opacity .15s ease, transform .15s ease; }
.dropdown-enter-start { opacity: 0; transform: translateY(6px); }
.dropdown-enter-end { opacity: 1; transform: translateY(0); }

/* Mobile Nav */
.nav--mobile {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-top: 2px solid var(--teal);
    z-index: 99;
}
.nav--mobile .container { padding: 12px 20px; display: flex; flex-direction: column; gap: 4px; }
.nav--mobile .nav__link { padding: 10px 16px; border-radius: 6px; font-size: .95rem; }
.nav--mobile__sub {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 4px;
    padding-bottom: 4px;
}
.nav__link--sub {
    font-size: .88rem;
    color: var(--text-light);
    padding: 8px 14px;
    border-left: 2px solid var(--gray-light);
}
.nav__link--sub:hover,
.nav__link--sub.nav__link--active {
    color: var(--teal);
    border-left-color: var(--teal);
    background: var(--gray-bg);
}
.nav__chevron--open {
    transform: rotate(180deg);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .nav--desktop { display: none; }
    .hamburger { display: flex; }
}

/* Alpine transitions for mobile nav */
.nav-enter { transition: opacity .2s ease, transform .2s ease; }
.nav-enter-start { opacity: 0; transform: translateY(-8px); }
.nav-enter-end { opacity: 1; transform: translateY(0); }

/* ── Sections ────────────────────────────────────────────────────────────── */
section { padding: 72px 0; }
.section--gray { background: var(--gray-bg); }
.section--navy { background: var(--navy); color: var(--white); }
.section--teal { background: var(--teal); color: var(--white); }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header__label {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 8px;
}
.section-header__title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.25;
}
.section--navy .section-header__title,
.section--teal .section-header__title { color: var(--white); }
.section--navy .section-header__label { color: var(--teal-light); }
.section-header__line {
    width: 48px;
    height: 3px;
    background: var(--teal);
    border-radius: 2px;
    margin: 14px auto 0;
}
.section--navy .section-header__line { background: var(--teal-light); }

/* Page title */
.page-hero {
    background: var(--navy);
    color: var(--white);
    padding: 52px 0 48px;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--navy) 60%, rgba(0,153,204,.4));
}
.page-hero .container { position: relative; }
.page-hero__label {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--teal-light);
    margin-bottom: 10px;
}
.page-hero__title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
}
.page-hero__sub { margin-top: 10px; color: rgba(255,255,255,.75); font-size: 1rem; }

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    color: rgba(255,255,255,.6);
    margin-bottom: 12px;
}
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb__sep { color: rgba(255,255,255,.4); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: var(--radius);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
}
.btn--primary {
    background: var(--teal);
    color: var(--white);
    border-color: var(--teal);
}
.btn--primary:hover {
    background: var(--teal-light);
    border-color: var(--teal-light);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,153,204,.35);
}
.btn--outline {
    background: transparent;
    color: var(--teal);
    border-color: var(--teal);
}
.btn--outline:hover {
    background: var(--teal);
    color: var(--white);
}
.btn--white {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}
.btn--white:hover { background: var(--teal-pale); }
.btn--sm { padding: 7px 16px; font-size: .82rem; }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.card__image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: var(--gray-light);
}
.card__image-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.3);
    font-size: 3rem;
}
.card__body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.card__tag {
    display: inline-flex;
    align-items: center;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--teal);
    background: var(--teal-pale);
    padding: 3px 10px;
    border-radius: 20px;
    align-self: flex-start;
}
.card__date {
    font-size: .78rem;
    color: var(--text-light);
    margin-bottom: 8px;
}
.card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.35;
    margin-bottom: 10px;
}
.card__excerpt {
    font-size: .875rem;
    color: var(--text-light);
    line-height: 1.6;
    flex: 1;
}
.card__footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-light);
}

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Griglia articoli: 3 col desktop → 2 tablet → 1 mobile */
.grid-articles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

@media (max-width: 960px) {
    .grid-3    { grid-template-columns: repeat(2, 1fr); }
    .grid-4    { grid-template-columns: repeat(2, 1fr); }
    .grid-articles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .grid-articles { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
    .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
}

/* ── Hero (Home) ─────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    background: var(--navy);
    color: var(--white);
    padding: 100px 0 90px;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: center;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, rgba(0,153,204,.2) 100%);
}
.hero__bg-pattern {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 45%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: .6;
}
.hero .container { position: relative; }
.hero__content { max-width: 640px; }
.hero__eyebrow {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--teal-light);
    margin-bottom: 16px;
}
.hero__title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -.5px;
}
.hero__title span { color: var(--teal-light); }
.hero__sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,.8);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 520px;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Boxes (4 target groups) ─────────────────────────────────────────────── */
.boxes { background: var(--white); padding: 64px 0; }
.box-item {
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--teal);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), border-color var(--transition);
}
.box-item:hover { box-shadow: var(--shadow-md); }
.box-icon {
    width: 44px;
    height: 44px;
    background: var(--teal-pale);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--teal);
}
.box-icon svg { width: 22px; height: 22px; }
.box-item__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.box-item__text { font-size: .875rem; color: var(--text-light); line-height: 1.65; }

/* ── Featured project (home) ─────────────────────────────────────────────── */
.featured-project {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-height: 320px;
}
.featured-project__image {
    position: relative;
    background: var(--gray-light);
}
.featured-project__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.featured-project__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,.5), transparent);
    display: flex;
    align-items: flex-end;
    padding: 24px;
}
.featured-project__big-text {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 900;
    color: var(--white);
    text-transform: uppercase;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.featured-project__big-text em {
    color: var(--teal-light);
    font-style: normal;
    display: block;
}
.featured-project__content {
    background: var(--navy);
    color: var(--white);
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.featured-project__tag { color: var(--teal-light); font-size: .75rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.featured-project__date-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .72rem;
    font-weight: 600;
    color: var(--white);
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 20px;
    padding: 3px 10px;
}
.featured-project__title { font-size: 1.4rem; font-weight: 700; margin-bottom: 14px; line-height: 1.3; }
.featured-project__excerpt { font-size: .9rem; color: rgba(255,255,255,.75); line-height: 1.7; margin-bottom: 24px; }
@media (max-width: 720px) {
    .featured-project { grid-template-columns: 1fr; }
    .featured-project__image { min-height: 220px; }
}

/* ── Articles list ───────────────────────────────────────────────────────── */
.article-row {
    display: flex;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid var(--gray-light);
    align-items: flex-start;
}
.article-row:last-child { border-bottom: none; }
.article-row__image {
    width: 140px;
    min-width: 140px;
    aspect-ratio: 4/3;
    border-radius: var(--radius);
    object-fit: cover;
    background: var(--gray-light);
    overflow: hidden;
    flex-shrink: 0;
}
.article-row__image img { width: 100%; height: 100%; object-fit: cover; }
.article-row__image--placeholder {
    background: linear-gradient(135deg, var(--navy), var(--teal));
}
.article-row__body { flex: 1; min-width: 0; }
.article-row__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.article-row__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.35;
    margin-bottom: 8px;
}
.article-row__title a { color: inherit; }
.article-row__title a:hover { color: var(--teal); }
.article-row__excerpt { font-size: .875rem; color: var(--text-light); line-height: 1.6; }
@media (max-width: 540px) {
    .article-row { flex-direction: column; }
    .article-row__image { width: 100%; min-width: auto; aspect-ratio: 16/9; }
}

/* ── Single article ──────────────────────────────────────────────────────── */
.article-single { max-width: 800px; margin: 0 auto; }
.article-single__featured-img {
    width: 100%;
    border-radius: var(--radius-lg);
    margin-bottom: 36px;
    max-height: 460px;
    object-fit: cover;
}
.article-content h2, .article-content h3 {
    color: var(--navy);
    margin: 28px 0 12px;
    font-weight: 700;
    line-height: 1.3;
}
.article-content h2 { font-size: 1.5rem; }
.article-content h3 { font-size: 1.2rem; }
.article-content p { margin-bottom: 16px; line-height: 1.75; }
.article-content ul, .article-content ol { margin: 12px 0 16px 20px; }
.article-content li { margin-bottom: 6px; line-height: 1.65; }
.article-content ul li { list-style: disc; }
.article-content ol li { list-style: decimal; }
.article-content strong { color: var(--navy); font-weight: 600; }
.article-content blockquote {
    border-left: 4px solid var(--teal);
    padding: 12px 20px;
    background: var(--teal-pale);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 20px 0;
    font-style: italic;
}
.article-content img { border-radius: var(--radius); margin: 20px 0; }

/* Layout: featured article (full-width image banner) */
.article-featured-banner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 40px;
    min-height: 360px;
    display: flex;
    align-items: flex-end;
    background: var(--navy);
}
.article-featured-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .6;
}
.article-featured-banner__content {
    position: relative;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0,0,0,.7));
    width: 100%;
}
.article-featured-banner__title {
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 900;
    color: var(--white);
    text-transform: uppercase;
    line-height: 1.15;
    text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.article-featured-banner__title em { color: var(--teal-light); font-style: normal; }

/* ── Contact form ────────────────────────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-form h2 { font-size: 1.5rem; font-weight: 700; color: var(--navy); margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--gray-mid);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: .9rem;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(0,153,204,.15);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.form-success {
    padding: 14px 18px;
    background: #d1fae5;
    border: 1.5px solid #34d399;
    border-radius: var(--radius);
    color: #065f46;
    font-size: .9rem;
    margin-bottom: 18px;
}
.form-error {
    padding: 14px 18px;
    background: #fee2e2;
    border: 1.5px solid #f87171;
    border-radius: var(--radius);
    color: #991b1b;
    font-size: .9rem;
    margin-bottom: 18px;
}

/* Info block */
.info-block { padding: 32px; background: var(--navy); border-radius: var(--radius-lg); color: var(--white); }
.info-block h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 24px; }
.info-item { display: flex; gap: 14px; margin-bottom: 20px; }
.info-item svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--teal-light); margin-top: 2px; }
.info-item__label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.5); margin-bottom: 2px; }
.info-item__value { font-size: .9rem; color: rgba(255,255,255,.9); line-height: 1.5; }
.info-item__value a { color: var(--teal-light); }
.info-item__value a:hover { color: var(--white); }

/* ── Pagination ──────────────────────────────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    font-size: .9rem;
    font-weight: 500;
    border: 1.5px solid var(--gray-mid);
    color: var(--text);
    transition: all var(--transition);
}
.pagination a:hover { border-color: var(--teal); color: var(--teal); }
.pagination .active { background: var(--teal); border-color: var(--teal); color: var(--white); }

/* ── Tag filter ──────────────────────────────────────────────────────────── */
.tag-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.tag-filter {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
    border: 1.5px solid var(--gray-mid);
    color: var(--text-light);
    cursor: pointer;
    transition: all var(--transition);
    background: none;
}
.tag-filter:hover, .tag-filter.active {
    border-color: var(--teal);
    color: var(--teal);
    background: var(--teal-pale);
}

/* ── About page ──────────────────────────────────────────────────────────── */
.about-content { max-width: 860px; margin: 0 auto; }
.about-content h2 { font-size: 1.7rem; font-weight: 700; color: var(--navy); margin: 36px 0 14px; }
.about-content h3 { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin: 24px 0 10px; }
.about-content p { line-height: 1.8; margin-bottom: 16px; color: var(--text); }
.about-content ul { margin: 12px 0 16px 20px; }
.about-content ul li { list-style: disc; margin-bottom: 8px; line-height: 1.7; color: var(--text); }
.about-content strong { color: var(--navy); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { background: var(--navy); color: rgba(255,255,255,.8); padding: 64px 0 0; }
.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 1.4fr;
    gap: 40px;
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__col {}
.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    text-decoration: none;
    margin-bottom: 16px;
}
.footer__logo-main { font-size: 1.2rem; font-weight: 700; display: block; }
.footer__logo-sub { font-size: .65rem; color: rgba(255,255,255,.5); display: block; max-width: 140px; line-height: 1.4; }
.footer__logo .logo__icon { color: var(--teal-light); }
.footer__desc { font-size: .82rem; line-height: 1.7; color: rgba(255,255,255,.55); }
.footer__heading {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 16px;
}
.footer__links li { margin-bottom: 8px; }
.footer__links a { font-size: .85rem; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer__links a:hover { color: var(--teal-light); }
.footer__address {
    display: flex;
    gap: 10px;
    font-size: .85rem;
    color: rgba(255,255,255,.65);
    line-height: 1.6;
}
.footer__address svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--teal-light); margin-top: 2px; }
.footer__contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: .85rem;
}
.footer__contact-list svg { width: 15px; height: 15px; color: var(--teal-light); flex-shrink: 0; }
.footer__contact-list a { color: rgba(255,255,255,.7); }
.footer__contact-list a:hover { color: var(--teal-light); }
.footer__hours { margin-top: 16px; }
.footer__hours h5 { font-size: .72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 4px; }
.footer__hours p { font-size: .8rem; color: rgba(255,255,255,.55); line-height: 1.6; }
.footer__bottom {
    margin-top: 48px;
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 20px 0;
}
.footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: .78rem;
    color: rgba(255,255,255,.4);
}
.footer__bottom-inner nav { display: flex; gap: 16px; }
.footer__bottom-inner nav a { color: rgba(255,255,255,.4); }
.footer__bottom-inner nav a:hover { color: rgba(255,255,255,.7); }

/* ── Utility ─────────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ── Admin styles (used in admin pages) ─────────────────────────────────── */
.admin-bar {
    background: var(--navy-dark);
    color: rgba(255,255,255,.7);
    font-size: .78rem;
    padding: 6px 0;
    text-align: center;
}
.admin-bar a { color: var(--teal-light); }

/* ── Hero con immagine di sfondo ─────────────────────────────────────────── */
.hero--has-image::before {
    background: none !important;
}
.hero__bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero__overlay {
    position: absolute;
    inset: 0;
}

/* ── Card data badge ─────────────────────────────────────────────────────── */
.card__date-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-light);
    background: var(--gray-bg);
    padding: 3px 10px;
    border-radius: 20px;
}
.card__date-badge svg { width: 12px; height: 12px; flex-shrink: 0; }

/* ── Sezione 5x1000 ──────────────────────────────────────────────────────── */
.section-5x1000 {
    background: linear-gradient(135deg, var(--navy) 0%, #1a4a7a 100%);
    color: var(--white);
    padding: 72px 0;
    position: relative;
    overflow: hidden;
}
.section-5x1000::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 300px; height: 300px;
    background: rgba(0,153,204,.12);
    border-radius: 50%;
}
.section-5x1000__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}
.section-5x1000__inner--has-image {
    grid-template-columns: 1fr 1fr;
}
@media (max-width: 768px) {
    .section-5x1000__inner--has-image { grid-template-columns: 1fr; }
}
.section-5x1000__text-col {}
.section-5x1000__image-col {
    display: flex;
    align-items: center;
    justify-content: center;
}
.section-5x1000__img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.section-5x1000__label {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--teal-light);
    margin-bottom: 10px;
}
.section-5x1000__title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 14px;
}
.section-5x1000__text {
    font-size: 1rem;
    color: rgba(255,255,255,.8);
    line-height: 1.7;
    max-width: 600px;
}
.section-5x1000__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 28px;
}
.section-5x1000__cf-box {
    flex-shrink: 0;
    text-align: left;
    background: rgba(255,255,255,.07);
    border: 2px solid rgba(255,255,255,.15);
    border-radius: var(--radius-lg);
    padding: 28px 36px;
    min-width: 200px;
}
.section-5x1000__cf-label {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--teal-light);
    margin-bottom: 6px;
}
.section-5x1000__cf-number {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--white);
    font-family: monospace;
}
.section-5x1000__cf-number--iban {
    font-size: 1.1rem;
    letter-spacing: 2px;
}
.section-5x1000__video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.section-5x1000__iframe {
    position: absolute;
    top: 0;
    left: 50%;
    /* video 16:9 che riempie un box 1:1: larghezza = altezza × 16/9 */
    width: 177.78%;
    height: 100%;
    transform: translateX(-50%);
    border: none;
    pointer-events: none;
}

/* ── Premi di Laurea (home) ──────────────────────────────────────────────── */
.panel-table-home { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 8px; }
.premio-table-home { width: 100%; border-collapse: collapse; font-size: .93rem; }
.premio-table-home thead { background: var(--navy); color: #fff; }
.premio-table-home th { padding: 13px 20px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; text-align: left; }
.premio-table-home td { padding: 13px 20px; border-bottom: 1px solid var(--gray-light); vertical-align: middle; }
.premio-table-home tr:last-child td { border-bottom: none; }
.premio-table-home tr:hover td { background: var(--gray-bg); }
.premio-year-home { font-weight: 700; color: var(--navy); vertical-align: top; background: var(--gray-bg); border-right: 2px solid var(--gray-light); white-space: nowrap; }
.btn-pdf-home { display:inline-flex;align-items:center;gap:4px;padding:4px 10px;background:#fee2e2;color:#c0392b;border-radius:6px;font-size:.75rem;font-weight:700;text-decoration:none;transition:background .2s; }
.btn-pdf-home:hover { background:#fecaca; }
@media (max-width: 600px) { .premio-table-home th, .premio-table-home td { padding: 10px 12px; } }

/* ── Sezione Sponsor ─────────────────────────────────────────────────────── */
.section-sponsor { padding: 52px 0; background: var(--gray-bg); }
.section-sponsor__title {
    text-align: center;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 36px;
}
.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(var(--sponsor-cols, 4), 1fr);
    gap: 24px 32px;
    align-items: center;
    justify-items: center;
}
@media (max-width: 900px) { .sponsor-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .sponsor-grid { grid-template-columns: repeat(2, 1fr); } }
.sponsor-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px 24px;
    width: 100%;
    aspect-ratio: 3/2;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}
.sponsor-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.sponsor-item img {
    max-height: 70%;
    max-width: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.sponsor-item--text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: .5px;
}

/* ── Sezione Contatti home ───────────────────────────────────────────────── */
.section-contact-home {
    padding: 72px 0;
}
.contact-home-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
@media (max-width: 768px) {
    .contact-home-inner { grid-template-columns: 1fr; gap: 36px; }
}
.contact-home-left h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 14px;
}
.contact-home-left p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 24px;
}
.contact-home-info { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.contact-home-info__item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .9rem;
    color: var(--text);
}
.contact-home-info__item svg { width: 18px; height: 18px; color: var(--teal); flex-shrink: 0; }
.contact-home-mini-form { background: var(--gray-bg); border-radius: var(--radius-lg); padding: 32px; }
.contact-home-mini-form h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 20px; }
