:root {
    --brand-green: #009042;
    --brand-green-dark: #02602d;
    --brand-sand: #f5f5f4;
    --brand-ink: #000000;
    --brand-muted: #6a6a6a;
    --brand-muted-light: #8d8d8d;
    --brand-line: #c2c2c2;
    --brand-white: #ffffff;
    --brand-accent: #e7f3ea;
    --brand-error: #b90707;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--brand-ink);
    background: var(--brand-white);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-wordmark {
    font-family: "Museo Sans", Arial, Helvetica, sans-serif;
    font-weight: 700;
}

a {
    color: var(--brand-green);
    text-decoration: none;
}

a:hover {
    color: var(--brand-green-dark);
}

.brand-wordmark {
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--brand-green-dark);
}

.utility-bar {
    /* Head Office (KHIT pptx, slide 1, #7): rimosso lo sfondo grigio */
    background: var(--brand-white);
    border-bottom: 1px solid rgba(194, 194, 194, 0.5);
}

.utility-bar-inner {
    display: flex;
    justify-content: flex-end;
    gap: 1.4rem;
    padding: 0.5rem 0;
    flex-wrap: wrap;
}

.utility-bar-inner a {
    color: var(--brand-muted);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.utility-bar-inner a:hover {
    color: var(--brand-green-dark);
}

.nav-link {
    color: var(--brand-ink);
    font-weight: 500;
}

.nav-link.active,
.nav-link:hover {
    color: var(--brand-green);
}

/* Bottoni Kyowa — specifiche da Kyowa USA Web Component Library / Style Guide:
   Primary = verde · Default = bordo verde · Secondary = nero · Link = testo · raggio 5px, peso 400. */
.btn-brand {
    background: var(--brand-green);
    border-color: var(--brand-green);
    color: var(--brand-white);
    border-radius: 5px;
    font-weight: 400;
}

.btn-brand,
.btn-outline-secondary,
.btn-outline-light,
.btn-light,
.branded-promo-btn {
    border-radius: 5px;
}

/* "Default" Kyowa (verde con bordo) — sostituisce il grigio Bootstrap di btn-outline-secondary */
.btn-outline-secondary {
    background: transparent;
    color: var(--brand-green);
    border-color: var(--brand-green);
    font-weight: 400;
}
.btn-outline-secondary:hover {
    background: var(--brand-green);
    border-color: var(--brand-green);
    color: var(--brand-white);
}

.btn-brand:hover {
    background: var(--brand-green-dark);
    border-color: var(--brand-green-dark);
    color: var(--brand-white);
}

.hero-section,
.page-hero {
    /* Head Office (KHIT pptx): rimosso lo sfondo grigio degli hero */
    background: var(--brand-white);
    padding: 5.5rem 0 4.5rem;
}

.home-carousel-section {
    position: relative;
    background: var(--brand-white);
    padding: 1rem 0 1.1rem;
}

.home-carousel-frame {
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.home-carousel-section .carousel-inner {
    height: 400px;
}

.home-carousel-section .carousel-item {
    height: 400px;
}

.home-carousel-media {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.home-carousel-media img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center center;
    filter: saturate(0.92) contrast(1.02);
}

.home-carousel-overlay {
    position: absolute;
    inset: 0;
    /* Overlay molto leggero: la leggibilità del testo è garantita dal box scuro della caption. */
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.30) 0%, rgba(0, 0, 0, 0.12) 45%, rgba(0, 0, 0, 0) 100%),
        linear-gradient(180deg, rgba(0, 144, 66, 0.10) 0%, rgba(0, 80, 40, 0.06) 100%);
}

.home-carousel-caption {
    left: 0;
    right: auto;
    top: 50%;
    bottom: auto;
    transform: none;
    max-width: min(980px, calc(100% - 2rem));
    padding: 0;
    transform: translateY(-50%);
}

.home-carousel-content {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 620px;
    width: min(620px, 100%);
    padding: 1.35rem 1.5rem 1.3rem;
    border-left: 6px solid var(--brand-green);
    /* Box più chiaro (era 0.58): testo bianco ancora leggibile grazie a padding e border verde. */
    background: rgba(0, 0, 0, 0.40);
}

.home-carousel-caption h1 {
    font-size: clamp(1.45rem, 2.25vw, 2.15rem);
    line-height: 1.12;
    margin-bottom: 0.7rem;
    color: var(--brand-white);
    max-width: 18ch;
}

.home-carousel-caption .lead,
.home-carousel-caption .eyebrow {
    color: rgba(255, 255, 255, 0.92);
}

.home-carousel-caption .eyebrow {
    margin-bottom: 0.55rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.72rem;
}

.home-carousel-caption .lead {
    margin-bottom: 0;
    max-width: 52ch;
    font-size: 0.95rem;
    line-height: 1.55;
}

.home-carousel-actions {
    margin-top: 1.1rem;
}

.home-carousel-btn {
    padding: 0.72rem 1.18rem;
    font-size: 0.95rem;
}

.home-carousel-section .carousel-indicators {
    margin-bottom: 0.55rem;
}

.home-carousel-section .carousel-indicators [data-bs-target] {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    margin-inline: 0.3rem;
}

.home-carousel-section .carousel-control-prev,
.home-carousel-section .carousel-control-next {
    width: 4rem;
}

.home-carousel-section .carousel-control-prev-icon,
.home-carousel-section .carousel-control-next-icon {
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.18);
    background-size: 45%;
}

.hero-section-intro {
    padding-top: 4rem;
}
/* ULTIMA REVISIONE 19/10: intro home centrata in modo armonico con il resto della pagina.
   28/10 (cliente): larghezza aumentata + text-wrap: pretty per evitare l'ultima parola
   ("management") orfana su una riga a sé. */
.hero-section-intro .lead {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-wrap: pretty;
}

.hero-title-secondary {
    /* ULTIMA REVISIONE 19/10: ridotto per far stare il titolo intro home su una riga
       (prima "Bio" andava a capo da solo); text-wrap: balance bilancia su schermi stretti */
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: var(--brand-green);
    text-wrap: balance;
}

.hero-section h1,
.page-hero h1 {
    /* Kyowa style guide: titolo principale di pagina in verde */
    color: var(--brand-green-dark);
    /* ULTIMA REVISIONE 19/10 (slide 8): titolo allineato alle altre pagine (più piccolo) */
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

/* ULTIMA REVISIONE 19/10 (slide 8): meno spazio bianco sulle pagine senza banner (es. Global Network) */
.page-hero {
    padding-top: 3rem;
    padding-bottom: 1.5rem;
}

/* ULTIMA REVISIONE 19/10 (slide 18/20): corpo testo pagine contenuto un filo più grande */
.content-card p,
.content-card li {
    /* ULTIMA REVISIONE 21/10 (cliente) + 27/10 (#1 font uniforme su tutte le pagine):
       stessa dimensione/peso del corpo di .page-intro .lead. */
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.7;
    color: #262626;
}

/* ULTIMA REVISIONE 19/10 (slide 7): logo Kyowa Quality più grande e centrato (in evidenza) */
.section-image-kq {
    max-width: 280px;
    margin: 2rem auto 0;
    display: block;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.admin-card {
    /* ULTIMA REVISIONE 29/10: admin più moderno — card bianche, bordo tenue, angoli
       arrotondati e ombra leggera. */
    background: var(--brand-white);
    border: 1px solid #e6e8e6;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(16, 24, 16, 0.05), 0 1px 2px rgba(16, 24, 16, 0.03);
}

/* Head Office (KHIT pptx): rimossi sfondo e contorno grigi delle card sulle pagine pubbliche */
.hero-panel,
.content-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.hero-panel {
    display: grid;
    gap: 1rem;
}

.hero-stat {
    padding: 1rem 0;
    border-bottom: 1px solid var(--brand-line);
}

.hero-stat:last-child {
    border-bottom: 0;
}

.hero-stat strong,
.site-footer h3 {
    color: var(--brand-green);
}

/* Kyowa Type Scale: i titoli di sezione sono "Heading1" (verde, prominenti);
   i sotto-titoli dentro i blocchi di contenuto sono "Heading2+" (nero). */
.section-heading h2,
.hero-title-secondary {
    color: var(--brand-green);
}
.section-heading h2 {
    font-size: clamp(1.9rem, 3.2vw, 2.6rem);
}
.content-card h2 {
    color: var(--brand-ink);
}

.cta-box h2 {
    color: var(--brand-white);
}

.eyebrow,
.card-kicker {
    display: inline-block;
    color: var(--brand-green);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.content-section {
    padding: 5rem 0;
}

.quality-assured-section {
    /* Head Office (KHIT pptx, slide 3): rimosso lo sfondo grigio */
    background: var(--brand-white);
    padding-top: 4.25rem;
    padding-bottom: 4.25rem;
}

/* Lead centrato sotto i titoli di sezione (home Application Areas) */
.section-lead-centered {
    max-width: 60ch;
    margin: 0.75rem auto 0;
    color: var(--brand-muted);
}

.quality-assured-card {
    text-align: center;
    padding: 0.5rem 1rem;
}

.quality-assured-card h3 {
    color: var(--brand-green);
    font-size: 1.7rem;
    margin-bottom: 0.85rem;
}

.quality-assured-card p {
    color: var(--brand-muted);
    max-width: 34ch;
    margin: 0 auto;
}

.quality-assured-visual {
    display: grid;
    place-items: center;
    margin-bottom: 1.35rem;
}

.quality-assured-orb {
    width: 220px;
    height: 220px;
    border-radius: 0;
    display: grid;
    place-items: center;
    border: 1px solid var(--brand-line);
    position: relative;
    overflow: hidden;
}

.quality-assured-orb::before,
.quality-assured-orb::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    opacity: 0.88;
}

.quality-assured-orb::before {
    width: 92px;
    height: 92px;
    left: 22px;
    top: 24px;
}

.quality-assured-orb::after {
    width: 118px;
    height: 118px;
    right: 18px;
    bottom: 18px;
}

.quality-assured-orb-inner {
    width: 88px;
    height: 88px;
    border-radius: 0;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 0 0 12px rgba(255, 255, 255, 0.18);
}

.quality-theme-supplements .quality-assured-orb {
    background: linear-gradient(135deg, #e7f3ea, #ffffff);
}

.quality-theme-supplements .quality-assured-orb::before {
    background: rgba(0, 144, 66, 0.85);
}

.quality-theme-supplements .quality-assured-orb::after {
    background: rgba(2, 96, 45, 0.16);
}

.quality-theme-supplements .quality-assured-orb-inner {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(245, 245, 244, 0.92));
}

.quality-theme-food .quality-assured-orb {
    background: linear-gradient(135deg, #ffffff, #f5f5f4);
}

.quality-theme-food .quality-assured-orb::before {
    background: rgba(0, 144, 66, 0.62);
}

.quality-theme-food .quality-assured-orb::after {
    background: rgba(141, 141, 141, 0.26);
}

.quality-theme-food .quality-assured-orb-inner {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(231, 243, 234, 0.94));
}

.quality-theme-pharma .quality-assured-orb {
    background: linear-gradient(135deg, #f5f5f4, #ffffff);
}

.quality-theme-pharma .quality-assured-orb::before {
    background: rgba(106, 106, 106, 0.82);
}

.quality-theme-pharma .quality-assured-orb::after {
    background: rgba(0, 144, 66, 0.2);
}

.quality-theme-pharma .quality-assured-orb-inner {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(230, 237, 234, 0.92)),
        repeating-linear-gradient(
            90deg,
            rgba(1, 107, 84, 0.06) 0,
            rgba(1, 107, 84, 0.06) 10px,
            rgba(255, 255, 255, 0.14) 10px,
            rgba(255, 255, 255, 0.14) 20px
        );
}

.branded-section {
    padding-top: 4rem;
}

.branded-stack {
    display: grid;
    gap: 2rem;
}

.branded-promo {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    border-radius: 0;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    /* Grigio scuro invece del nero pieno: meno "pesante", testo bianco sempre leggibile. */
    background: #3d3d3d;
}

.branded-promo.is-reversed {
    grid-template-columns: 1fr 1.2fr;
}

.branded-promo.is-reversed .branded-promo-media {
    order: 2;
}

.branded-promo.is-reversed .branded-promo-copy {
    order: 1;
}

.branded-promo-media,
.branded-promo-placeholder {
    width: 100%;
    height: 100%;
}

.branded-promo-media {
    position: relative;
    /* ULTIMA REVISIONE 19/10: pannello bianco con logo centrato (H+V). */
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-white);
    padding: 2rem;
}

.branded-promo-placeholder {
    object-fit: cover;
}

.branded-theme-cognizin .branded-promo-placeholder {
    background:
        linear-gradient(120deg, rgba(0, 144, 66, 0.86), rgba(2, 96, 45, 0.92)),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.16) 0 12px, rgba(255, 255, 255, 0.05) 12px 24px);
}

.branded-theme-setria .branded-promo-placeholder {
    background:
        linear-gradient(120deg, #000000, #3b3b3b 58%, #6a6a6a),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.14) 0 12px, rgba(255, 255, 255, 0.03) 12px 24px);
}

.branded-theme-eyemuse .branded-promo-placeholder {
    background:
        linear-gradient(120deg, rgba(0, 122, 140, 0.86), rgba(0, 70, 92, 0.92)),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.16) 0 12px, rgba(255, 255, 255, 0.05) 12px 24px);
}

.branded-promo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 24, 37, 0.28), rgba(8, 24, 37, 0.04));
    /* Head Office (ULTIMA REVISIONE 19/10): promo "solo logo" → niente overlay scuro sul logo */
    display: none;
}

/* Promo "solo logo" su pannello bianco (ULTIMA REVISIONE 19/10).
   Tutti i loghi sono normalizzati nello stesso box (calibrato su Cognizin) e
   centrati verticalmente, così risultano della stessa dimensione ottica e allineati. */
.branded-promo-media img {
    /* Larghezza uniforme per tutti i loghi (riferimento: Cognizin), così hanno la
       stessa presenza ottica; i loghi piccoli vengono scalati su, non lasciati mini.
       ULTIMA REVISIONE 19/10: loghi ingranditi verso la dimensione del pannello. */
    width: min(88%, 430px);
    height: auto;
    max-height: 240px;
    object-fit: contain;
}

.branded-promo-copy {
    position: relative;
    display: grid;
    place-items: center;
    padding: 2.5rem;
    color: #fff;
}

.branded-promo-copy-inner {
    max-width: 420px;
}

.branded-promo-brand {
    display: inline-block;
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.branded-promo-copy h3 {
    color: #fff;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.08;
    margin-bottom: 1rem;
}

.branded-promo-copy p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.02rem;
    line-height: 1.6;
}

.branded-promo-btn {
    margin-top: 1rem;
    border-radius: 5px;
    padding-inline: 1.5rem;
}

.more-kyowa-box {
    padding: 3rem 1rem 1rem;
    text-align: center;
}

.more-kyowa-box h3 {
    color: var(--brand-green);
    font-size: clamp(2rem, 3vw, 2.8rem);
    margin-bottom: 1.25rem;
}

.usa-news-section {
    padding-top: 4rem;
}

.section-heading-inline {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--brand-line);
}

.section-heading-inline a {
    font-weight: 700;
}

.usa-news-item h3 {
    font-size: 2rem;
    line-height: 1.18;
    margin-bottom: 1rem;
}

.usa-news-item h3 a {
    color: var(--brand-green);
}

.usa-news-date {
    color: var(--brand-ink);
    font-size: 0.98rem;
    margin-bottom: 1rem;
}

.usa-news-item p {
    color: var(--brand-muted);
    font-size: 1.02rem;
}

.usa-news-link {
    display: inline-block;
    margin-top: 0.8rem;
    font-weight: 700;
}

.memberships-section {
    padding-top: 2rem;
}

.membership-card {
    text-align: center;
    padding: 1rem 1.2rem;
}

.membership-badge {
    width: 110px;
    height: 110px;
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
    border: 1px solid var(--brand-line);
    border-radius: 0;
    color: var(--brand-green);
    font-size: 2rem;
    font-weight: 800;
    background: var(--brand-white);
    box-shadow: none;
}

.membership-badge img {
    width: 54px;
    height: auto;
    display: block;
}

.membership-card h3 {
    color: var(--brand-green);
    font-size: 1.3rem;
    margin-bottom: 0.65rem;
}

.membership-card p {
    color: var(--brand-muted);
    max-width: 30ch;
    margin: 0 auto;
}

.newsletter-section {
    /* Head Office (KHIT pptx, slide 7): via il nero, sezione in palette Kyowa (verde) */
    background: linear-gradient(135deg, var(--brand-green-dark), var(--brand-green));
    color: #fff;
    padding: 4.25rem 0;
}

.newsletter-inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.newsletter-inner h2 {
    color: #fff;
    font-size: clamp(2rem, 3vw, 2.8rem);
    margin-bottom: 1rem;
}

.newsletter-copy .eyebrow {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-copy p {
    color: rgba(255, 255, 255, 0.88);
    max-width: 54ch;
}

.newsletter-privacy-note {
    margin-top: 1.1rem;
    font-size: 0.95rem;
}

.newsletter-privacy-note a {
    color: #fff;
    text-decoration: underline;
}

.newsletter-form {
    display: grid;
    grid-template-columns: 1fr 7rem auto;
    gap: 1rem;
}

.newsletter-form .form-control {
    min-height: 58px;
}

.newsletter-captcha {
    text-align: center;
}

.alt-section {
    background: var(--brand-sand);
}

.section-heading {
    margin-bottom: 2rem;
}

.info-block,
.product-card,
.news-card,
.admin-stat {
    background: var(--brand-white);
    border: 1px solid var(--brand-line);
    border-radius: 0;
    padding: 1.75rem;
    height: 100%;
}

/* ULTIMA REVISIONE 19/10: fascia media uniforme nelle product card.
   Branded = logo del brand (larghezza uniforme, ricalibrato come in home);
   Pharmaceuticals = immagine della molecola (struttura chimica). */
.product-card-media {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--brand-line);
    background: #fff;
}
.product-card-media img {
    object-fit: contain;
}
/* Loghi: larghezza uniforme per tutti i brand (stessa presenza ottica). */
.product-card-media.is-logo img {
    width: min(72%, 195px);
    height: auto;
    max-height: 96px;
}
/* Molecole: diagramma struttura, normalizzato per altezza (file piccoli, niente upscale forzato). */
.product-card-media.is-molecule img {
    width: auto;
    height: auto;
    max-width: 85%;
    max-height: 120px;
}

.product-card p,
.news-card p,
.info-block p {
    color: var(--brand-muted);
}

.category-pills {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Head Office (KHIT pptx, slide 9): pills come bottoni Kyowa "Default" (bordo verde, round square) */
.category-pills span,
.category-pills a {
    background: transparent;
    color: var(--brand-green);
    border: 1px solid var(--brand-green);
    border-radius: 5px;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.category-pills a:hover {
    background: var(--brand-green);
    color: var(--brand-white);
}

.cta-section {
    padding: 0 0 5rem;
}

.cta-box {
    background: linear-gradient(135deg, var(--brand-green-dark), var(--brand-green));
    color: var(--brand-white);
    border-radius: 0;
    padding: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.cta-box .eyebrow {
    color: rgba(255, 255, 255, 0.85);
}

.site-footer {
    background: #fff;
    color: var(--brand-muted);
    padding: 4rem 0 2rem;
    border-top: 4px solid var(--brand-green);
}

.site-footer h3,
.site-footer h4,
.site-footer a {
    color: var(--brand-ink);
}

.site-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    max-width: 340px;
}

.site-footer-brand img {
    align-self: flex-start;
}

.site-footer-brand h3 {
    font-size: 1.15rem;
    margin-bottom: 0.55rem;
}

.site-footer-brand p {
    color: var(--brand-muted);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Simboli ® / ™ in apice, discreti rispetto al testo */
.reg-mark {
    font-size: 0.6em;
    vertical-align: super;
    line-height: 0;
    margin-left: 0.04em;
    font-weight: inherit;
}

.section-card-link {
    font-weight: 600;
    color: var(--brand-green);
}
.section-card-link:hover {
    color: var(--brand-green-dark);
}

.footer-legal {
    margin: 1rem 0 0;
    font-style: normal;
    color: var(--brand-muted);
    font-size: 0.82rem;
    line-height: 1.55;
}
.footer-legal strong {
    display: block;
    color: var(--brand-ink);
    font-size: 0.86rem;
}
.footer-legal span {
    display: block;
}

.site-footer h4 {
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    margin-bottom: 1.1rem;
}

.site-footer .footer-links a {
    color: var(--brand-muted);
    transition: color 0.15s ease;
}

.site-footer .footer-links a:hover {
    color: var(--brand-green-dark);
}

.footer-links li + li {
    margin-top: 0.7rem;
}

.footer-socials {
    display: flex;
    gap: 0.55rem;
    margin-top: 1rem;
}

.footer-socials a {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 0;
    background: var(--brand-green);
    color: #fff;
    font-weight: 800;
}

/* LinkedIn: glifo Kyowa ufficiale (Style Guide Kyowa USA) in quadrato verde, coerente con lo stile social */
.footer-socials a.footer-social-linkedin {
    background: var(--brand-green);
    border-radius: 0;
    color: #fff;
}
.footer-social-glyph {
    width: 22px;
    height: 22px;
    display: block;
    fill: currentColor;
}

.footer-social-icon {
    width: 22px;
    height: 22px;
    display: block;
}

.footer-bottom {
    border-top: 1px solid var(--brand-line);
    margin-top: 2rem;
    padding-top: 1.2rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1080;
    background: #fcf4cc;
    border-top: 1px solid #ded18c;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.08);
}

.cookie-banner-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
}

.cookie-banner p,
.cookie-banner a {
    color: #443f25;
}

.contact-list {
    padding-left: 1.1rem;
}

.article-content {
    max-width: 860px;
}

.login-body,
.admin-body {
    background: #eef1ee;
    min-height: 100vh;
}

.login-card {
    max-width: 440px;
    margin: 8vh auto;
    background: #fff;
    border-radius: 0;
    padding: 2rem;
    border: 1px solid var(--brand-line);
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    background: linear-gradient(90deg, var(--brand-green-dark), var(--brand-green));
}

.login-footer-note {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--brand-line);
    color: var(--brand-muted);
    font-size: 0.95rem;
}

.admin-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background:
        linear-gradient(180deg, rgba(0, 144, 66, 0.98), rgba(2, 96, 45, 0.98)),
        var(--brand-green-dark);
    color: #fff;
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.admin-sidebar::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -40px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
    pointer-events: none;
}

.admin-brand {
    display: inline-block;
    margin-bottom: 0.5rem;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
}

.admin-brand-wrap {
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.admin-brand-wrap p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid transparent;
    transition: 0.2s ease;
}

.admin-sidebar .nav-link.active,
.admin-sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.admin-nav {
    position: relative;
    z-index: 1;
}

/* ULTIMA REVISIONE 29/10: barra di navigazione admin condivisa (stessa su tutte le pagine). */
.admin-topnav {
    background: var(--brand-white);
    border-bottom: 2px solid var(--brand-green);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.admin-topnav .container {
    display: flex;
    align-items: center;
    gap: 0.75rem 1rem;
    flex-wrap: wrap;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}
.admin-topnav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--brand-green-dark);
    text-decoration: none;
    font-size: 1.05rem;
}
.admin-topnav-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.35rem;
    margin-left: auto;
}
.admin-topnav-link {
    padding: 0.4rem 0.7rem;
    border-radius: 5px;
    color: var(--brand-ink);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    white-space: nowrap;
}
.admin-topnav-link:hover {
    background: var(--brand-sand);
    color: var(--brand-green-dark);
}
.admin-topnav-link.is-active {
    background: var(--brand-green);
    color: #fff;
}
.admin-topnav-logout {
    color: var(--brand-error);
}
.admin-topnav-logout:hover {
    background: #fde8e8;
    color: var(--brand-error);
}
.admin-topnav-sep {
    width: 1px;
    align-self: stretch;
    background: var(--brand-line);
    margin: 0.2rem 0.35rem;
}

.nav-link-logout {
    margin-top: 0.75rem;
}

.admin-content {
    padding: 2rem;
}

.admin-topbar {
    margin-bottom: 1.5rem;
}

.admin-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    background: var(--brand-white);
    border: 1px solid #e6e8e6;
    border-top: 3px solid var(--brand-green);
    border-radius: 10px;
    padding: 1.7rem 1.9rem;
    box-shadow: 0 1px 3px rgba(16, 24, 16, 0.05);
}

.admin-hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Barra di salvataggio in alto, sopra i contenuti del form (resta visibile scrollando). */
.admin-save-bar {
    position: sticky;
    top: 46px;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(4px);
    border: 1px solid #e6e8e6;
    border-radius: 10px;
    padding: 0.7rem 1.1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(16, 24, 16, 0.07);
}
.admin-save-bar .admin-save-hint {
    margin-right: auto;
    color: var(--brand-muted);
    font-size: 0.9rem;
}
.admin-save-bar .btn {
    white-space: nowrap;
}

.admin-stat span {
    display: block;
    color: var(--brand-muted);
    margin-bottom: 0.5rem;
}

.admin-stat strong {
    font-size: 2.4rem;
    color: var(--brand-green-dark);
}

.admin-intro-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.75rem 2rem;
    border-radius: 0;
    color: var(--brand-white);
    background: linear-gradient(135deg, var(--brand-green-dark), var(--brand-green));
    box-shadow: none;
}

.admin-intro-card h2,
.admin-intro-card p,
.admin-mini-card h3 {
    color: inherit;
}

.admin-intro-card .eyebrow {
    color: rgba(255, 255, 255, 0.7);
}

.admin-intro-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.admin-mini-card {
    height: 100%;
}

.admin-mini-card p {
    margin-bottom: 0.75rem;
}

.admin-table thead th {
    color: var(--brand-muted);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom-color: var(--brand-line);
}

.admin-table tbody tr:hover {
    background: rgba(216, 234, 223, 0.2);
}

.admin-table td,
.admin-table th {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.carousel-admin-preview {
    border: 1px solid var(--brand-line);
    border-radius: 0;
    overflow: hidden;
    background: var(--brand-sand);
    min-height: 220px;
}

.carousel-admin-preview img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.admin-code-block {
    margin: 0;
    padding: 1.2rem 1.3rem;
    border-radius: 0;
    background: #000000;
    color: #ffffff;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 991px) {
    .branded-promo,
    .branded-promo.is-reversed {
        grid-template-columns: 1fr;
    }

    .branded-promo.is-reversed .branded-promo-media,
    .branded-promo.is-reversed .branded-promo-copy {
        order: initial;
    }

    .newsletter-inner {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        grid-template-columns: 1fr;
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .cta-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-hero,
    .admin-intro-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    .utility-bar-inner {
        justify-content: center;
        gap: 0.9rem 1.2rem;
        padding: 0.45rem 0;
    }

    .utility-bar-inner a {
        font-size: 0.75rem;
    }

    .hero-section,
    .page-hero,
    .content-section {
        padding: 3.5rem 0;
    }

    .quality-assured-orb {
        width: 180px;
        height: 180px;
    }

    .quality-assured-card h3 {
        font-size: 1.35rem;
    }

    .branded-promo {
        min-height: auto;
    }

    .branded-promo-media {
        height: 260px;
    }

    .branded-promo-brand {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .branded-promo-copy {
        padding: 1.5rem;
    }

    .branded-promo-copy h3 {
        font-size: 1.7rem;
    }

    .section-heading-inline {
        flex-direction: column;
        align-items: flex-start;
    }

    .usa-news-item h3 {
        font-size: 1.45rem;
    }

    .site-footer-brand {
        flex-direction: column;
    }

    .cookie-banner-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-section h1,
    .page-hero h1 {
        font-size: 2.3rem;
    }

    .home-carousel-section .carousel-item,
    .home-carousel-section .carousel-inner,
    .home-carousel-media,
    .home-carousel-media img {
        height: 260px;
    }

    .home-carousel-caption {
        top: 50%;
        max-width: calc(100% - 2rem);
        transform: translateY(-50%);
    }

    .home-carousel-content {
        max-width: 360px;
        width: 100%;
        padding: 0.95rem 1rem 0.9rem;
        border-radius: 0.85rem;
    }

    .home-carousel-caption h1 {
        font-size: 1.28rem;
        max-width: none;
    }

    .home-carousel-caption .lead {
        font-size: 0.84rem;
        line-height: 1.45;
    }

    .home-carousel-section .carousel-control-prev,
    .home-carousel-section .carousel-control-next {
        width: 3rem;
    }

    .home-carousel-actions {
        margin-top: 0.65rem;
    }

    .home-carousel-btn {
        padding: 0.58rem 0.95rem;
        font-size: 0.88rem;
    }
}

/* Sezioni statiche: immagini, segnaposto e liste prodotti (modifiche R2 16-06-2026) */
.section-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin-top: 1.25rem;
    border-radius: 8px;
}

.section-image-placeholder {
    margin-top: 1.25rem;
    min-height: 180px;
    display: grid;
    place-items: center;
    border: 1px dashed #b8c2bd;
    border-radius: 8px;
    background:
        repeating-linear-gradient(45deg, rgba(0, 144, 66, 0.04) 0 10px, rgba(0, 144, 66, 0.08) 10px 20px);
    color: #5a6b62;
    font-size: 0.85rem;
    text-align: center;
    padding: 1rem;
}

/* Elenco puntato dentro la descrizione prodotto (es. EYEMUSE "has been shown to") */
.product-lead-list {
    margin: 0 0 1.25rem;
    padding-left: 1.2rem;
    max-width: 820px;
}
.product-lead-list li {
    margin-bottom: 0.4rem;
    color: var(--brand-muted);
    font-size: 1.05rem;
}

.product-molecule {
    margin-top: 1rem;
}

.product-molecule img {
    display: block;
    height: auto;
    object-fit: contain;
}
/* ULTIMA REVISIONE 21/10: loghi brand alla STESSA dimensione (larghezza uniforme). */
.product-molecule.is-logo img {
    width: min(90%, 420px);
    max-height: 210px;
}
/* Molecole (pharma): mostrate a dimensione naturale e nitide. Il cliente non dispone di
   immagini struttura a risoluzione maggiore (24/10), quindi non vengono ingrandite a forza. */
.product-molecule.is-molecule img {
    width: auto;
    max-width: 300px;
    max-height: 240px;
}

/* Link ai PDF delle informative complete (modifiche R2) */
.legal-doc-links {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--brand-line);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ===== Mappa network interattiva (about/global-network) ===== */
/* I colori delle aree sono nell'SVG (attributi fill) e gestiti via JS al click. */
.network-section { background: var(--brand-white); }

.network-section .network-hint {
    color: var(--brand-muted);
    margin-top: 0.4rem;
}

.network-map-wrap {
    max-width: 860px;
    margin: 2.25rem auto 0;
    background: var(--brand-white);
    border: 1px solid var(--brand-line);
    padding: 1rem 1.25rem;
}

.network-svg { width: 100%; height: auto; display: block; }
.network-svg path { transition: fill 0.25s ease; }

.svg-pin { cursor: pointer; }
.svg-pin-pulse { transform-box: fill-box; transform-origin: center; }
.svg-pin.is-active .svg-pin-pulse { animation: svgPinPulse 1.6s ease-out infinite; }

@keyframes svgPinPulse {
    0% { opacity: 0.55; transform: scale(1); }
    100% { opacity: 0; transform: scale(3.4); }
}

.network-offices { margin-top: 2rem; }

.network-office-card {
    height: 100%;
    background: var(--brand-white);
    border: 1px solid var(--brand-line);
    border-top: 3px solid var(--brand-line);
    padding: 1.6rem;
    cursor: pointer;
    transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.network-office-card:hover { transform: translateY(-2px); }
.network-office-card:focus-visible { outline: 2px solid #009042; outline-offset: 2px; }
.network-office-card.is-active { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); }

.network-theme-emea.network-office-card { border-top-color: #009042; }
.network-theme-americas.network-office-card { border-top-color: #c0894e; }
.network-theme-asia.network-office-card { border-top-color: #7d6fa8; }
.network-theme-emea.network-office-card.is-active { border-color: #009042; }
.network-theme-americas.network-office-card.is-active { border-color: #c0894e; }
.network-theme-asia.network-office-card.is-active { border-color: #7d6fa8; }

.network-office-region {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--brand-green-dark);
    margin-bottom: 0.4rem;
}
.network-office-card h3 { font-size: 1.12rem; margin-bottom: 0.6rem; color: var(--brand-ink); }
.network-office-territories { font-size: 0.9rem; color: var(--brand-muted); margin-bottom: 0.7rem; }
.network-office-address { font-size: 0.92rem; color: var(--brand-ink); margin-bottom: 0.5rem; }
.network-office-contacts { font-size: 0.88rem; color: var(--brand-muted); display: flex; flex-direction: column; gap: 0.15rem; }

/* Sotto-titoli interni alle sezioni (Innovation) */
.content-card .section-subheading {
    /* ULTIMA REVISIONE 27/10 (#1): i sottotitoli devono essere più grandi del corpo (1.2rem),
       prima erano 1.05rem (più piccoli del testo). */
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--brand-green);
    margin-top: 1.6rem;
    margin-bottom: 0.6rem;
}
.content-card .section-subheading:first-child {
    margin-top: 0;
}

/* Card prodotto con immagine molecola + spaziatura gruppi (Products) */
.product-group + .product-group {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--brand-line);
}

.product-card-molecule {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-white);
    border-bottom: 1px solid var(--brand-line);
    padding: 0.75rem 1.25rem;
}

.product-card-molecule img {
    height: 78px;
    width: auto;
    max-width: 100%;
}

/* Nota privacy sotto il form contatti */
.form-privacy-note {
    font-size: 0.85rem;
    color: var(--brand-muted);
}

/* Illustrazioni delle aree applicative (home) */
.quality-assured-img {
    width: 100%;
    max-width: 340px;
    height: 210px;
    object-fit: cover;
    border-radius: 14px;
}

/* ===== News: copertine + corpo articolo rich ===== */
.news-card-cover {
    display: block;
    overflow: hidden;
    line-height: 0;
}
.news-card-cover img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.news-card:hover .news-card-cover img {
    transform: scale(1.04);
}

.news-article-cover {
    margin: 0 auto 2rem;
    max-width: 980px;
    line-height: 0;
}
.news-article-cover img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 10px;
}

.news-article-body {
    max-width: 860px;
    margin: 0 auto;
}
.news-article-body p { margin-bottom: 1rem; }
.news-article-body h2,
.news-article-body h3,
.news-article-body h4 {
    color: var(--brand-green-dark);
    margin-top: 1.6rem;
    margin-bottom: 0.6rem;
}
.news-article-body a {
    color: var(--brand-green);
    text-decoration: underline;
}
.news-article-body a:hover { color: var(--brand-green-dark); }
.news-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.25rem 0;
}
.news-article-body ul,
.news-article-body ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.news-article-body li { margin-bottom: 0.35rem; }
.news-article-body blockquote {
    border-left: 4px solid var(--brand-green);
    padding: 0.25rem 0 0.25rem 1.1rem;
    margin: 1.25rem 0;
    color: var(--brand-muted);
    font-style: italic;
}

/* Email contatti allineate con etichetta */
.contact-emails { margin-top: 1rem; }
.contact-emails dt {
    font-weight: 700;
    color: var(--brand-ink);
    font-size: 0.9rem;
    margin-top: 0.7rem;
}
.contact-emails dd { margin: 0; }

/* Cartine regionali nella sezione network (home) */
.membership-map {
    display: block;
    margin: -1rem -1.2rem 1.25rem;
    aspect-ratio: 4 / 3;
    line-height: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--brand-line);
    background: var(--brand-white);
}
.membership-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.25s ease;
}
.membership-map:hover img {
    transform: scale(1.03);
}
.membership-link {
    color: inherit;
    text-decoration: none;
}
.membership-link:hover {
    color: var(--brand-green);
}

/* ===== Banner immagine in cima alle pagine interne (chiaro, titolo scuro a sinistra) ===== */
.page-hero-banner {
    position: relative;
    /* ULTIMA REVISIONE 19/10: altezza responsiva per ridurre il ritaglio verticale
       delle immagini di testata su schermi larghi. */
    min-height: clamp(260px, 21vw, 420px);
    display: flex;
    align-items: center;
    background-color: #ffffff;
    /* ULTIMA REVISIONE 21/10: richiesta cliente — le immagini con `cover` risultavano
       "troppo zoomate" (es. collage e foto Products, aspect diversi dai banner 1920x440).
       `contain` + `center` mostra l'immagine INTERA, senza ritaglio; la sfumatura bianca
       a sinistra tiene leggibile il titolo. */
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--brand-ink);
    overflow: hidden;
}
/* Sfumatura bianca a sinistra: garantisce leggibilità del titolo scuro, immagine chiara a destra. */
.page-hero-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.92) 34%, rgba(255, 255, 255, 0.25) 62%, rgba(255, 255, 255, 0) 100%);
}
.page-hero-banner .container { position: relative; z-index: 1; }
.page-hero-banner-content { max-width: 640px; padding: 2.5rem 0; }
.page-hero-banner .eyebrow { color: var(--brand-green); }
/* Titolo testata: MAI a capo — font responsivo che si adatta per stare su una riga. */
.page-hero-banner h1 {
    color: var(--brand-green-dark);
    margin: 0;
    white-space: nowrap;
    font-size: clamp(1rem, 3.4vw, 2.4rem);
}

.page-intro {
    /* Head Office (KHIT pptx): rimosso lo sfondo grigio della fascia intro */
    background: var(--brand-white);
    padding: 3rem 0;
}
/* ULTIMA REVISIONE 27/10: #2 testi a tutta larghezza (no max-width) e #1 font uniforme
   (stessa dimensione/peso del corpo delle content-card). */
.page-intro .lead {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.7;
    color: #262626;
}
.page-intro .lead:last-of-type { margin-bottom: 0; }

@media (max-width: 767px) {
    .page-hero-banner { min-height: 200px; }
    .page-hero-banner-content { padding: 1.5rem 0; }
    /* Su mobile l'immagine è stretta: rinforzo il bianco per tenere il titolo leggibile. */
    .page-hero-banner-overlay {
        background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.95) 55%, rgba(255, 255, 255, 0.55) 100%);
    }
}

/* ===== Disclaimer legale in fondo a tutte le pagine (KHIT pptx, slide 8) ===== */
.footer-disclaimer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--brand-line);
}
.footer-disclaimer p {
    margin: 0;
    color: var(--brand-muted);
    font-size: 0.76rem;
    line-height: 1.55;
    max-width: 100%;
}
