/* =====================================================================
   Ital Global — multi-page components (loaded after style.css)
   ===================================================================== */

/* dropdown navigation */
.mainnav .navdrop { position: relative; }
.mainnav .navdrop__top {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 12px; border-radius: 9px; font-weight: 600; font-size: .92rem;
  color: var(--body); cursor: pointer; white-space: nowrap; border: 1px solid transparent; transition: .16s;
}
.mainnav .navdrop__top svg { width: 14px; height: 14px; transition: transform .2s; }
.mainnav .navdrop.is-current .navdrop__top, .mainnav .navdrop__top:hover { color: var(--ink); }
.mainnav .navdrop__menu a { color: var(--body); border-bottom: 0; }

@media (min-width: 880px) {
  .mainnav .navdrop__top:hover { background: #fff; box-shadow: var(--shadow-sm); }
  .mainnav .navdrop__menu {
    position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
    min-width: 230px; max-height: 70vh; overflow-y: auto; background: #fff; border: 1px solid var(--line);
    border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; display: grid; gap: 2px;
    opacity: 0; visibility: hidden; transition: .18s; z-index: 120;
  }
  .mainnav .navdrop:hover .navdrop__menu, .mainnav .navdrop:focus-within .navdrop__menu {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
  }
  .mainnav .navdrop:hover .navdrop__top svg { transform: rotate(180deg); }
  .mainnav .navdrop__menu a { padding: 9px 12px; border-radius: 9px; font-size: .9rem; font-weight: 600; white-space: nowrap; box-shadow: none; }
  .mainnav .navdrop__menu a:hover { background: var(--bg); color: var(--ink); box-shadow: none; }
}
@media (max-width: 879px) {
  .mainnav .navdrop__top { width: 100%; justify-content: space-between; padding: 12px 8px; border-bottom: 1px solid #f1f4f9; font-size: 1rem; }
  .mainnav .navdrop__menu { display: flex; flex-direction: column; padding: 2px 0 8px 14px; }
  .mainnav .navdrop__menu a { padding: 9px 8px; color: var(--muted); font-size: .95rem; box-shadow: none; }
  .mainnav .navdrop__menu a:hover { color: var(--ink); background: transparent; box-shadow: none; }
}

/* breadcrumbs */
.crumbs { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.5); }
.crumbs ol { list-style: none; margin: 0; padding: 12px 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .86rem; }
.crumbs li { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: "/"; color: #c2ccdb; }
.crumbs a { color: var(--muted); font-weight: 600; }
.crumbs a:hover { color: var(--green); }
.crumbs span { color: var(--ink); font-weight: 600; }

/* page headers */
.page-head { text-align: center; max-width: 760px; margin: 0 auto clamp(28px,4vw,48px); }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-head p { color: var(--muted); margin-top: 12px; font-size: 1.08rem; }
.page-head .tricolore { margin: 16px auto 0; }
.page-head--left { text-align: left; margin-inline: 0; }
.page-head--left .tricolore { margin-inline: 0; }

/* topic grid (corporate overview) */
.topic-grid { display: grid; gap: clamp(16px,2vw,24px); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.topic-card {
  position: relative; display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.topic-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #dde4ee; }
.topic-card__bar { position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.topic-card:hover .topic-card__bar { transform: scaleX(1); }
.topic-card__title { font-size: 1.18rem; color: var(--ink); margin-bottom: 8px; }
.topic-card__text { color: var(--body); font-size: .92rem; margin-bottom: 14px; }
.topic-card__more { font-weight: 700; color: var(--green); font-size: .88rem; }

/* chips + CTAs */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 900px; margin: 0 auto; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: .9rem; color: var(--ink); box-shadow: var(--shadow-sm); transition: .16s; }
.chip:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }
.center-cta { text-align: center; margin-top: 30px; }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 22px; font-weight: 700; color: var(--ink); box-shadow: var(--shadow-sm); transition: .16s; }
.btn-ghost:hover { border-color: #cfd8e6; transform: translateY(-2px); }
.cta-band { text-align: center; max-width: 640px; margin: 0 auto; }
.cta-band h2 { font-size: clamp(1.6rem,3vw,2.2rem); }
.cta-band p { color: var(--muted); margin: 12px 0 24px; font-size: 1.05rem; }

/* document layout (corporate topic) */
.doc-layout { display: grid; gap: clamp(24px,4vw,48px); grid-template-columns: 1fr; }
@media (min-width: 920px) { .doc-layout { grid-template-columns: minmax(0,1fr) 280px; align-items: start; } }
.doc { color: var(--body); font-size: 1.05rem; max-width: 760px; }
.doc p { margin-bottom: 16px; }
.doc h4 { color: var(--ink); font-size: 1.18rem; margin: 26px 0 8px; }
.doc ul { margin: 0 0 16px; padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc-aside { background: rgba(255,255,255,.6); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
@media (min-width: 920px) { .doc-aside { position: sticky; top: 92px; } }
.doc-aside__title { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.doc-aside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.doc-aside a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--body); font-weight: 600; font-size: .92rem; }
.doc-aside a:hover { background: var(--bg); color: var(--ink); }
.doc-aside a.is-active { background: var(--bg-2); color: var(--ink); }

/* brand page */
.brand { display: grid; gap: clamp(20px,4vw,44px); grid-template-columns: 1fr; align-items: center; margin-bottom: clamp(36px,6vw,64px); }
@media (min-width: 820px) { .brand { grid-template-columns: 360px 1fr; } }
.brand__logo { display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; min-height: 200px; box-shadow: var(--shadow-sm); border-top: 4px solid var(--accent, var(--ink)); }
.brand__logo img { max-width: 100%; max-height: 150px; object-fit: contain; }
.brand__info h1 { font-size: clamp(1.8rem,4vw,2.6rem); }
.brand__tag { color: var(--accent, var(--muted)); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .9rem; margin-top: 6px; }
.brand__info .tricolore { margin: 16px 0; }
.brand__desc { color: var(--body); font-size: 1.08rem; margin-bottom: 24px; max-width: 560px; }
.more-brands { border-top: 1px solid var(--line); padding-top: clamp(28px,4vw,40px); }
.more-brands h2 { font-size: 1.3rem; text-align: center; margin-bottom: 22px; }
.more-brands__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.more-brands__item { display: grid; place-items: center; width: 150px; height: 76px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; box-shadow: var(--shadow-sm); transition: .2s; }
.more-brands__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.more-brands__item img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* article (news) */
.article { max-width: 800px; margin-inline: auto; }
.article__date { font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--green); }
.article .page-head--left h1 { margin-top: 6px; font-size: clamp(1.7rem,3.6vw,2.4rem); }
.article__img { display: block; max-width: 100%; max-height: 480px; width: auto; height: auto; margin: 0 auto 26px; border-radius: 16px; box-shadow: var(--shadow-sm); }
.article__body { color: var(--body); font-size: 1.08rem; line-height: 1.75; }
.article__body p { margin-bottom: 18px; }
.article__body h4 { color: var(--ink); margin: 24px 0 8px; font-size: 1.2rem; }
.article__body ul { margin: 0 0 18px; padding-left: 22px; }
.article__link { display: inline-block; margin-top: 18px; font-weight: 700; color: var(--green); }
.article__back { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.article__back a { font-weight: 700; color: var(--ink); }
.article__back a:hover { color: var(--green); }

/* contact */
.contact-lead { text-align: center; margin-bottom: clamp(36px,5vw,56px); }
.contact__email { font-size: clamp(1.2rem,2.4vw,1.6rem); font-weight: 800; color: var(--ink); }
.contact__email a:hover { color: var(--green); }
.contact__phone { color: var(--muted); font-weight: 600; margin-top: 4px; }
.contact__phone a:hover { color: var(--green); }
.contact-lead .btn-cta { margin-top: 18px; }
.offices-title { text-align: center; font-size: 1.4rem; margin-bottom: 24px; }
.offices { display: grid; gap: clamp(16px,2vw,24px); grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); max-width: 980px; margin-inline: auto; }
.office { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); border-top: 4px solid var(--green); }
.office h3 { color: var(--ink); font-size: 1.15rem; margin-bottom: 10px; }
.office p { color: var(--body); font-size: .95rem; }
.office__tel { margin-top: 8px; }
.office__tel a { color: var(--ink); font-weight: 700; }
.office__tel a:hover { color: var(--green); }

/* 404 */
.notfound { text-align: center; max-width: 540px; margin: clamp(20px,5vw,60px) auto; }
.notfound__code { font-size: clamp(4rem,12vw,7rem); font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -.04em; }
.notfound h1 { font-size: 1.6rem; margin: 8px 0 12px; }
.notfound p { color: var(--muted); margin-bottom: 24px; }

/* footer (multi-column) */
.footer__grid { display: grid; gap: clamp(24px,4vw,40px); grid-template-columns: 1fr; padding-bottom: 30px; }
@media (min-width: 680px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer__brand img { height: 46px; width: auto; }
.footer__brand .tricolore { margin: 12px 0; }
.footer__col h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__col a { color: var(--body); font-size: .92rem; }
.footer__col a:hover { color: var(--green); }
.footer__base { border-top: 1px solid var(--line); padding-top: 22px; text-align: center; color: var(--muted); font-size: .86rem; }

/* FAQ accordion */
.faq { max-width: 800px; margin-inline: auto; display: grid; gap: 12px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq__item summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 1.5rem; color: var(--green); font-weight: 400; line-height: 1; }
.faq__item[open] summary::after { content: "\2212"; }
.faq__a { padding: 2px 22px 18px; color: var(--body); }
.faq__a p { margin: 0; }

/* brand cover photo */
.brand-photo { margin: 0 0 clamp(36px, 5vw, 56px); }
.brand-photo img { width: 100%; max-height: 460px; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow-sm); display: block; }
.brand-photo figcaption { margin-top: 8px; font-size: .78rem; color: var(--muted); text-align: right; }

/* corporate topic banner */
.topic-photo { margin: 0 0 clamp(28px, 4vw, 44px); }
.topic-photo img { width: 100%; height: clamp(200px, 30vw, 340px); object-fit: cover; border-radius: 16px; box-shadow: var(--shadow-sm); display: block; }
.topic-photo figcaption { margin-top: 8px; font-size: .78rem; color: var(--muted); text-align: right; }

/* chairman portrait inside the message */
.chairman-portrait { width: 210px; max-width: 42%; border-radius: 14px; box-shadow: var(--shadow-md); float: right; margin: 0 0 16px 26px; }
@media (max-width: 560px) { .chairman-portrait { float: none; display: block; width: 180px; max-width: 70%; margin: 0 auto 18px; } }

/* board of directors */
.directors { display: grid; gap: clamp(18px, 3vw, 32px); grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); max-width: 560px; }
.director { text-align: center; }
.director__photo { display: block; width: 160px; height: 160px; margin: 0 auto 14px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--line), var(--shadow-md); background: var(--bg-2); }
.director__photo img { width: 100%; height: 100%; object-fit: cover; }
.director__photo--mono { display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 3rem; letter-spacing: -1px; background: linear-gradient(135deg, #1d3454, var(--ink)); }
.director__name { font-size: 1.2rem; color: var(--ink); }
.director__role { color: var(--green); font-weight: 700; font-size: .9rem; margin-top: 2px; }
.director__cred { color: var(--muted); font-size: .82rem; margin-top: 2px; }
.director--link { display: block; text-decoration: none; color: inherit; border-radius: 16px; padding: 14px 10px; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.director--link:hover, .director--link:focus-visible { transform: translateY(-4px); background: #fff; box-shadow: var(--shadow-md); text-decoration: none; outline: none; }
.director__more { display: inline-block; margin-top: 10px; color: var(--green); font-weight: 700; font-size: .85rem; opacity: .85; }
.director--link:hover .director__more { opacity: 1; }

/* founder / leadership profile */
.founder { display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.founder__media { position: sticky; top: 90px; }
.founder__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow-md); display: block; background: var(--bg-2); }
.founder__mono { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 5; border-radius: 18px; color: #fff; font-weight: 800; font-size: 5rem; letter-spacing: -2px; background: linear-gradient(135deg, #1d3454, var(--ink)); box-shadow: var(--shadow-md); }
.founder__role { color: var(--green); font-weight: 800; font-size: 1.05rem; }
.founder__cred { color: var(--muted); font-weight: 600; font-size: .95rem; margin-top: 2px; }
.founder__bio { margin-top: 18px; color: var(--body); font-size: 1.06rem; line-height: 1.75; }
.founder__bio p { margin-bottom: 16px; }
.founder__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
@media (max-width: 680px) {
  .founder { grid-template-columns: 1fr; }
  .founder__media { position: static; max-width: 280px; margin: 0 auto; }
}

/* PWA install prompt */
.install-prompt {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translate(-50%, 24px);
  z-index: 300; display: flex; align-items: center; gap: 12px;
  width: min(440px, calc(100% - 28px)); background: #fff; border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow-lg); padding: 12px 12px 12px 14px;
  opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s;
}
.install-prompt.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.install-prompt[hidden] { display: none; }
.install-prompt__icon { width: 46px; height: 46px; border-radius: 11px; flex-shrink: 0; }
.install-prompt__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.32; }
.install-prompt__txt strong { color: var(--ink); font-size: .95rem; }
.install-prompt__txt span { color: var(--muted); font-size: .82rem; }
.install-prompt__go { flex-shrink: 0; background: var(--ink); color: #fff; border: 0; border-radius: 10px; padding: 9px 16px; font-weight: 700; font-size: .9rem; cursor: pointer; }
.install-prompt__go:hover { background: #1d2f4d; }
.install-prompt__x { flex-shrink: 0; background: none; border: 0; color: var(--muted); font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.install-prompt__x:hover { color: var(--ink); }
@media (max-width: 380px) { .install-prompt__icon { display: none; } }

/* notch / safe-area handling for installed app */
.topbar__inner { padding-left: max(0px, env(safe-area-inset-left)); padding-right: max(0px, env(safe-area-inset-right)); }
.totop { right: calc(20px + env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom)); }
