﻿/* ========================================
   AIKAM - Accademia Italiana di Karate
   Personalizzazioni layout pubblico
   ======================================== */

/* === Colori brand AIKAM === */
:root {
    --aikam-dark: #0a0a0a;
    --aikam-navy: #111111;
    --aikam-blue: #1a1a1a;
    --aikam-red: #c9a84c;
    --aikam-gold: #c9a84c;
    --aikam-light: #f5f0e8;
    --gold: #c9a84c;
    --gold-light: #e8c97a;
    --gold-dark: #8b6914;
    --black: #0a0a0a;
    --black-mid: #111111;
    --white: #f0ece4;
    --white-dim: rgba(240,236,228,0.6);
}

/* === Preloader === */
.preload-wrapper { overflow-x: hidden; }

/* === Announcement bar - colore AIKAM === */
.announcement-bar.bg_violet-1 {
    background-color: var(--aikam-dark) !important;
}

/* === Header compatto unico (logo | nav | login) === */
.aikam-header {
    position: fixed !important;
    top: 0 !important;       /* blocca il JS ecomus che imposta top:-Xpx o top:unset */
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #000 !important;
}
/* ecomus headerSticky aggiunge .header-bg con sfondo chiaro: forziamo nero */
.aikam-header.header-bg {
    background-color: #000 !important;
    box-shadow: 0 1px 8px rgba(0,0,0,.5);
}

/* Compensa l'altezza dell'header fisso */
body { padding-top: 64px; }
@media (max-width: 991px) { body { padding-top: 56px; } }
@media (max-width: 480px)  { body { padding-top: 52px; } }

/* Contenitore topbar: flexbox a 3 zone */
.aikam-topbar {
    display: flex;
    align-items: center;
    height: 64px;
}

/* Logo (sinistra) */
.aikam-topbar-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}
.aikam-topbar-logo .logo {
    height: 52px;
    width: auto;
    display: block;
    object-fit: contain;
    object-position: left center;
}

/* Nav (centro): nascosta di default, visibile solo da desktop ≥992px */
.aikam-topbar-nav {
    flex: 1;
    display: none;
    justify-content: center;
    align-items: center;
}
.aikam-topbar-nav .box-nav-ul {
    gap: 36px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Link nav: bianco con underline dorato su hover/active */
.aikam-topbar-nav .item-link,
#header .aikam-topbar-nav .item-link,
#header .aikam-topbar-nav .box-nav-ul .item-link {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,.75) !important;
    letter-spacing: .07em;
    text-transform: uppercase;
    text-decoration: none !important;
    display: inline-block;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}
/* Annulla lo pseudo-element ecomus che potrebbe interferire */
.aikam-topbar-nav .item-link::before,
.aikam-topbar-nav .item-link::after { display: none !important; }

.aikam-topbar-nav .item-link:hover,
#header .aikam-topbar-nav .item-link:hover {
    color: #fff !important;
    border-bottom-color: var(--aikam-gold) !important;
}
.aikam-topbar-nav .menu-item.active .item-link,
#header .aikam-topbar-nav .menu-item.active .item-link {
    color: var(--aikam-gold) !important;
    border-bottom-color: var(--aikam-gold) !important;
}

/* Destra: login + hamburger */
.aikam-topbar-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}
.aikam-topbar-right .nav-icon-item {
    color: rgba(255,255,255,.8);
    font-size: 20px;
    display: flex;
    align-items: center;
    transition: color .2s;
    text-decoration: none;
}
.aikam-topbar-right .nav-icon-item:hover { color: var(--aikam-gold); }

/* Hamburger: visibile su mobile, nascosto su desktop */
.aikam-hamburger {
    color: rgba(255,255,255,.85);
    display: flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    line-height: 0;
}
.aikam-hamburger:hover { color: #fff; }

/* Desktop ≥992px: mostra nav, nascondi hamburger */
@media (min-width: 992px) {
    .aikam-topbar-nav { display: flex; }
    .aikam-hamburger { display: none !important; }
}

/* ── Menu offcanvas mobile ── */
#mobileMenu.canvas-mb {
    max-width: 280px !important;
    width: 280px !important;
    background: #fff;
}
#mobileMenu .mb-canvas-content {
    padding: 0 !important;
    display: flex !important;
    flex-direction: column;
    height: 100%;
    width: 100%;
    grid-auto-rows: unset !important;
}
/* Header del pannello: sfondo nero, logo + tasto chiudi */
#mobileMenu .mb-canvas-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #000;
    border-bottom: 1px solid rgba(255,255,255,.1);
    flex-shrink: 0;
    position: relative;
}
#mobileMenu .mb-canvas-header .logo-header { line-height: 0; }
#mobileMenu .mb-canvas-header .logo-header img {
    height: 42px !important;
    width: auto !important;
    display: block;
}
/* Tasto chiudi: posizione relativa dentro header */
#mobileMenu .icon-close-popup {
    position: static !important;
    color: rgba(255,255,255,.7) !important;
    font-size: 18px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color .2s;
}
#mobileMenu .icon-close-popup:hover { color: #fff !important; }

/* Body del pannello: voci di menu */
#mobileMenu .mb-canvas-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}
#mobileMenu .nav-ul-mb {
    list-style: none;
    padding: 0;
    margin: 0;
}
#mobileMenu .nav-ul-mb .nav-mb-item {
    border-bottom: 1px solid #f0f0f0;
    padding: 0 !important;
}
#mobileMenu .nav-ul-mb .nav-mb-item .nav-mb-link {
    display: flex !important;
    align-items: center;
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 500;
    color: #111 !important;
    text-decoration: none;
    border-bottom: none !important;
    transition: color .15s, background .15s;
    min-height: unset;
}
#mobileMenu .nav-ul-mb .nav-mb-item .nav-mb-link:hover {
    color: var(--aikam-gold) !important;
    background: #fafafa;
}

/* === Hero slider === */
.tf-slideshow .box-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,.5);
}

/* === Sezione features === */
.bg_light-green-3 {
    background-color: var(--aikam-light) !important;
}

/* === Sezione notizie / articoli === */
.aikam-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: .75rem;
}
.aikam-section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--aikam-red);
}

/* Card notizie */
.article-thumb img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.blog-article-item .article-content { padding: 1rem 0; }
.blog-article-item .article-label a { background-color: var(--aikam-red) !important; }

/* === Galleria album === */
.aikam-album-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}
.aikam-album-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform .4s ease;
}
.aikam-album-card:hover img { transform: scale(1.05); }
.aikam-album-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.75));
    padding: 1.5rem 1rem .75rem;
    color: #fff;
}
.aikam-album-overlay h6 { margin: 0; font-weight: 600; }
.aikam-album-overlay small { opacity: .8; }

/* === Modulistica (accordion style) === */
.flat-accordion.style-default .flat-toggle {
    border-bottom: 1px solid #e5e5e5;
}
.flat-accordion.style-default .toggle-title {
    cursor: pointer;
    padding: 1.1rem 0;
    font-weight: 600;
    font-size: .95rem;
    position: relative;
    padding-right: 2rem;
}
.flat-accordion.style-default .toggle-title::after {
    content: '+';
    position: absolute;
    right: 0;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--aikam-dark);
    transition: transform .3s;
}
.flat-accordion.style-default .flat-toggle.active .toggle-title::after {
    content: '−';
}
.flat-accordion.style-default .toggle-content {
    display: none;
    padding: .5rem 0 1.25rem;
    color: #555;
    line-height: 1.7;
}
.flat-accordion.style-default .flat-toggle.active .toggle-content {
    display: block;
}

/* Icona download documento */
.aikam-doc-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: box-shadow .2s, border-color .2s;
}
.aikam-doc-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    border-color: var(--aikam-red);
}
.aikam-doc-icon { font-size: 2rem; color: var(--aikam-red); flex-shrink: 0; margin-top: .1rem; }
.aikam-doc-body { flex: 1; }
.aikam-doc-body h6 { margin: 0 0 .3rem; font-weight: 600; }
.aikam-doc-body p { margin: 0; font-size: .85rem; color: #777; }

/* === Contatti === */
.tf-content-left h5, .tf-content-right h5 { color: var(--aikam-dark); }
.form-contact input[type=text],
.form-contact input[type=password],
.form-contact input[type=date],
.form-contact input[type=file],
.form-contact input[type=email],
.form-contact input[type=tel],
.form-contact textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: .75rem 1rem;
    font-size: .95rem;
    transition: border-color .2s;
    background: #fafafa;
}
.form-contact input:focus, .form-contact textarea:focus {
    outline: none;
    border-color: var(--aikam-dark);
    background: #fff;
}
.form-contact textarea { min-height: 160px; resize: vertical; }

/* Alert messaggio inviato */
.alert-aikam-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}
.alert-aikam-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

/* === Footer AIKAM === */
#footer { background-color: var(--aikam-dark) !important; color: rgba(255,255,255,.8); }
#footer .footer-body { padding: 3rem 0 2rem; }
#footer .footer-heading h6 { color: #fff; }
#footer .footer-menu_item, #footer .footer-menu_item a { color: rgba(255,255,255,.65); }
#footer .footer-menu_item a:hover { color: var(--aikam-gold); }
#footer a { color: rgba(255,255,255,.65); }
#footer a:hover { color: var(--aikam-gold); }
#footer .footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.25rem 0; }
#footer .footer-bottom .footer-menu_item { color: rgba(255,255,255,.5); font-size: .85rem; }

/* Nasconde elementi e-commerce non necessari */
.tf-payment { display: none !important; }
.footer-newsletter .tf-cur,
.footer-newsletter .tf-languages,
.footer-newsletter .tf-currencies { display: none !important; }

/* === Breadcrumb === */
.tf-page-title { background-color: #f5f5f5; padding: 2.5rem 0; }
.tf-page-title .heading { font-size: 2rem; font-weight: 700; color: var(--aikam-dark); }
.breadcrumbs li { color: #888; font-size: .9rem; }
.breadcrumbs a { color: var(--aikam-dark); }
.breadcrumbs .icon-arrow-right { font-size: .7rem; margin: 0 .5rem; color: #aaa; }

/* === Pulsanti AIKAM === */
.tf-btn.btn-fill { background-color: var(--aikam-dark); color: #fff; border: none; }
.tf-btn.btn-fill:hover { background-color: var(--aikam-blue); color: #fff; }
.tf-btn.btn-line { color: var(--aikam-dark); }
.tf-btn.btn-line:hover { color: var(--aikam-blue); }

/* === Slider AIKAM (solo immagini, no testo) === */
.aikam-slider-clean .wrap-slider,
.tf-slideshow .wrap-slider { min-height: 70vh; }

.aikam-slide-img {
    position: relative;
    overflow: hidden;
}
.aikam-slide-img img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.4s ease;
}
.swiper-slide-active .aikam-slide-img img {
    transform: scale(1.04);
}

/* Paginazione slider */
.tf-slideshow .wrap-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}
.tf-slideshow .sw-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
}

/* === Sezione presentazione AIKAM === */
.aikam-intro {
    padding: 5rem 0;
    background: #fff;
}
.aikam-intro-photo-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 12px 40px rgba(0,0,0,.15);
}
.aikam-intro-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.aikam-intro-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--aikam-dark);
    margin-bottom: .75rem;
    line-height: 1.25;
}
.aikam-intro-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--aikam-gold);
    margin-bottom: 1.25rem;
    letter-spacing: .03em;
}
.aikam-intro-text {
    color: #444;
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 2rem;
}
.aikam-intro-actions {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    flex-wrap: wrap;
}
.aikam-intro-actions .tf-btn.btn-fill {
    background-color: var(--aikam-dark);
    color: #fff;
    padding: .75rem 2rem;
}
.aikam-intro-actions .tf-btn.btn-fill:hover {
    background-color: var(--aikam-gold);
    color: var(--aikam-dark);
}

/* === Pagina articolo === */
.blog-detail .blog-detail-main-heading .title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--aikam-dark);
    margin: 1rem 0;
}
.blog-detail .blog-detail-main-heading .meta { color: #888; margin-bottom: 1.5rem; }
.blog-detail .desc { line-height: 1.8; color: #333; font-size: 1rem; }
.blog-detail blockquote {
    border-left: 4px solid var(--aikam-red);
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    background: #f9f9f9;
    font-style: italic;
    color: #555;
}

/* === Testi e heading nei blocchi di contenuto === */
.aikam-content h2 {
    font-size: 1.75rem;
    line-height: 1.3;
    color: var(--aikam-dark);
    margin-bottom: 1rem;
}
.aikam-content h3 {
    font-size: 1.35rem;
    line-height: 1.35;
    color: var(--aikam-dark);
    margin-bottom: 0.75rem;
}
.aikam-content h4 {
    font-size: 1.1rem;
    line-height: 1.4;
    color: var(--aikam-dark);
    margin-bottom: 0.5rem;
}
.aikam-content p {
    line-height: 1.85;
    color: #444;
    margin-bottom: 1.5rem;
}

/* === Elenchi puntati nei testi di contenuto === */
.aikam-content ul,
.aikam-content ol {
    list-style: none;
    padding-left: 0;
    margin: 0.5rem 0 1.5rem;
}
.aikam-content ul li,
.aikam-content ol li {
    position: relative;
    padding-left: 1.4rem;
    line-height: 1.85;
    color: #444;
    margin-bottom: 0.4rem;
}
.aikam-content ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--aikam-gold);
    font-weight: 700;
    font-size: 0.9rem;
    top: 0.05em;
}
.aikam-content ol {
    counter-reset: aikam-ol;
}
.aikam-content ol li::before {
    counter-increment: aikam-ol;
    content: counter(aikam-ol) '.';
    position: absolute;
    left: 0;
    color: var(--aikam-gold);
    font-weight: 700;
    font-size: 0.9rem;
}

/* === Tabella Albo Yudansha === */
.aikam-yudansha-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.aikam-yudansha-table thead tr {
    background: var(--aikam-dark);
    color: var(--aikam-gold);
}
.aikam-yudansha-table thead th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    letter-spacing: 0.04em;
    white-space: nowrap;
    border: none;
}
.aikam-yudansha-table tbody tr {
    border-bottom: 1px solid #e8e4dc;
}
.aikam-yudansha-table tbody tr:nth-child(even) {
    background: #f9f7f3;
}
.aikam-yudansha-table tbody tr:hover {
    background: #f5f0e8;
}
.aikam-yudansha-table tbody td {
    padding: 0.65rem 1rem;
    color: #333;
    vertical-align: middle;
}
.aikam-yudansha-table tbody td:nth-child(4) {
    font-weight: 600;
    color: var(--aikam-dark);
    white-space: nowrap;
}

/* === Card tecnici === */
.aikam-tecnico-card {
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.aikam-tecnico-photo {
    width: 100%;
    aspect-ratio: 16/16;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.aikam-tecnico-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}
.aikam-tecnico-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.aikam-tecnico-grade {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--aikam-gold);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}
.aikam-tecnico-name {
    font-size: 1.35rem !important;
    margin-bottom: 0.25rem;
    color: var(--aikam-dark);
}
.aikam-tecnico-role {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.75rem;
}
.aikam-tecnico-bio {
    font-size: 0.875rem;
    line-height: 1.7;
    color: #555;
    flex: 1;
    margin-bottom: 1rem;
}

/* === Stile curriculum (pagine tecnico) === */
.aikam-cv-header {
    border-left: 4px solid var(--aikam-gold);
    padding-left: 1.25rem;
    margin-bottom: 2rem;
}
.aikam-cv-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--aikam-gold);
    margin-bottom: 0.4rem;
}
.aikam-cv-meta {
    font-size: 0.875rem;
    color: #777;
    margin-bottom: 0.2rem;
}
.aikam-cv-section-title {
    font-size: 1.2rem !important;
    border-bottom: 2px solid var(--aikam-gold);
    padding-bottom: 0.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* === Pagina Contatti – colonna info === */
.aikam-contact-infobox {
    padding: 0.5rem 0;
    height: 100%;
}
.aikam-contact-logo img {
    max-height: 140px;
    width: auto;
    margin-bottom: 1.25rem;
    display: block;
}
.aikam-contact-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--aikam-dark);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.aikam-contact-jp {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    color: #666;
}
.aikam-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.aikam-contact-list li {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0d8cc;
}
.aikam-contact-list li:last-child {
    border-bottom: none;
}
.aikam-contact-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--aikam-gold);
}
.aikam-contact-list a {
    color: var(--aikam-dark);
    font-weight: 500;
}
.aikam-contact-list a:hover {
    color: var(--aikam-gold);
}

/* === Utility === */
.flat-spacing-11 { padding: 4rem 0; }
.flat-spacing-21 { padding: 4rem 0; }
.flat-spacing-25 { padding: 2.5rem 0; }
.mb_20 { margin-bottom: 1.25rem !important; }
.mb_24 { margin-bottom: 1.5rem !important; }
.mb_36 { margin-bottom: 2.25rem !important; }
.mb_60 { margin-bottom: 3.75rem !important; }
.mt_40 { margin-top: 2.5rem !important; }
.gap30 { gap: 1.875rem; }
.gap-15 { gap: .9375rem; }
.gap-20 { gap: 1.25rem; }
.gap-10 { gap: .625rem; }
.w_34 { width: 2.125rem; height: 2.125rem; }

/* === Pulsante torna in cima === */
#backToTop {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    width: 44px;
    height: 44px;
    background: #000;
    color: #fff;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .3s ease, visibility .3s ease, transform .3s ease, background .2s ease, border-color .2s ease;
    text-decoration: none;
}
#backToTop svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
#backToTop.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#backToTop:hover {
    background: var(--aikam-gold);
    border-color: var(--aikam-gold);
    color: #000;
}

/* === Responsive === */
@media (max-width: 991px) {
    .aikam-topbar { height: 56px; }
    .aikam-topbar-logo .logo { height: 44px; }
}

@media (max-width: 767px) {
    .aikam-slider-clean .wrap-slider,
    .tf-slideshow .wrap-slider { min-height: 55vw; }
    .aikam-intro { padding: 2.5rem 0; }
    .aikam-intro-title { font-size: 1.5rem; }
    .aikam-intro-photo-wrap { margin-bottom: 1.5rem; aspect-ratio: 16/9; }
    .blog-detail .blog-detail-main-heading .title { font-size: 1.5rem; }
    .tf-grid-layout.lg-col-2 { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
    .aikam-topbar { height: 52px; }
    .aikam-topbar-logo .logo { height: 40px; }
    .aikam-slider-clean .wrap-slider,
    .tf-slideshow .wrap-slider { min-height: 60vw; }
    .aikam-intro-title { font-size: 1.3rem; }
    .aikam-intro-subtitle { font-size: 1rem; }
    .aikam-intro-actions { flex-direction: column; align-items: flex-start; gap: .75rem; }
}

/* ── Icone header ── */
#header .nav-icon .nav-icon-item {
    color: var(--white);
}
#header .main-header {
    padding: 16px 0;
}

/* === Dropdown desktop "Chi siamo" === */
.aikam-has-dropdown { position: relative; }

/* Ponte invisibile che colma il gap tra link e dropdown,
   mantenendo il :hover attivo durante lo spostamento del mouse */
.aikam-has-dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: -20px;
    right: -20px;
    height: 14px; /* copre il gap visivo tra link e dropdown */
    z-index: 1049;
}

.aikam-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    min-width: 240px;
    background: #0a0a0a;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 6px;
    padding: .4rem 0;
    list-style: none;
    margin: 0;
    z-index: 1050;
    box-shadow: 0 10px 40px rgba(0,0,0,.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
    pointer-events: none;
}
.aikam-has-dropdown:hover .aikam-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
/* Triangolino sopra il dropdown */
.aikam-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(255,255,255,.12);
}
.aikam-dropdown li a {
    display: block;
    padding: .55rem 1.25rem;
    font-size: 11.5px;
    font-weight: 500;
    color: rgba(255,255,255,.65);
    letter-spacing: .05em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s, background .15s;
}
.aikam-dropdown li a:hover {
    color: var(--aikam-gold);
    background: rgba(255,255,255,.05);
}

/* === Mobile submenu "Chi siamo" === */
.nav-mb-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f7f7f7;
}
.nav-mb-submenu li { border-top: 1px solid #ebebeb; }
.nav-mb-submenu li a {
    display: flex;
    align-items: center;
    padding: 11px 24px 11px 36px;
    font-size: 13px;
    font-weight: 400;
    color: #333;
    text-decoration: none;
    transition: color .15s, background .15s;
}
.nav-mb-submenu li a:hover {
    color: var(--aikam-gold);
    background: #f0f0f0;
}
.aikam-mb-chevron { transition: transform .25s; flex-shrink: 0; opacity: .55; }
.aikam-mb-toggle[aria-expanded="true"] .aikam-mb-chevron { transform: rotate(180deg); }

/* === Hero header pagine interne === */
.aikam-page-hero {
    position: relative;
    height: 320px;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.aikam-page-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.aikam-page-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10,10,10,.62);
}
.aikam-page-hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    text-align: center;
    width: 100%;
}
.aikam-page-hero-content h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: .5rem;
    line-height: 1.2;
}
.aikam-page-hero-content .aikam-page-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,.78);
    margin: 0;
}
@media (max-width: 767px) {
    .aikam-page-hero { height: 200px; }
    .aikam-page-hero-content h1 { font-size: 1.65rem; }
}

/* === Call to action home === */
.aikam-cta-section {
    background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 100%);
    padding: 4.5rem 0;
    text-align: center;
}
.aikam-cta-section h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1rem;
}
.aikam-cta-section p {
    color: rgba(255,255,255,.72);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}
.aikam-cta-section .tf-btn.btn-fill {
    background: var(--aikam-gold);
    border-color: var(--aikam-gold);
    color: #0a0a0a;
    font-weight: 700;
    padding: .85rem 2.5rem;
}
.aikam-cta-section .tf-btn.btn-fill:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
}
h5.font-young-serif {
    font-size: 24px;
    line-height: 33.6px;
}
.blog-article-item.style-row .article-thumb a {
    height: 100% !important;
}

/* === Footer: colonna logo centrata su mobile === */
@media (max-width: 767px) {
    .aikam-footer-logo-col .footer-infor {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .aikam-footer-logo-col .footer-infor ul li p { text-align: center; }
    .aikam-footer-logo-col .footer-infor ul li p a { text-align: center; }
}

/* === Footer: colonna logo ASI === */
.aikam-footer-loghi-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 1rem 0;
}
    .aikam-footer-loghi-inner img {
        width: 140px;
        height: 140px;
        object-fit: contain;
        background: #fff;
        padding: 20px;
        border-radius: 50%;
    }
.blog-article-item.style-row .article-thumb
 {
    height: 270px;
}