/* ── Google Fonts ──────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Lato:wght@300;400;700&display=swap');

/* ── Palette ───────────────────────────────── */
:root {
  --c-dark:      #17100b;
  --c-dark2:     #1e1408;
  --c-dark3:     #231a0f;
  --c-dark4:     #261d10;
  --c-bg:        #fdf8f0;
  --c-accent:    #b5541c;
  --c-accent-h:  #9a4415;
  --c-gold:      #c49a3c;
  --c-text:      #1c1208;
  --c-body:      #5a3f2a;
  --c-muted:     #c4a882;
  --c-muted-h:   #f0e0c0;
  --c-label:     #c49a3c;
  --c-border:    #ede4d4;
  --c-footer:    #6b5040;
  --header-h:    72px;   /* altezza header fisso */
}

/* ── Reset & Base ─────────────────────────── */
.iet-homepage { margin: 0; padding: 0; background: var(--c-bg); font-family: 'Lato', sans-serif; }
.iet-wrapper  { min-height: 100vh; display: flex; flex-direction: column; }
.iet-img      { width: 100%; height: 100%; object-fit: cover; display: block; }
.iet-img-ph   { background: #dedbd5; width: 100%; height: 100%; }

/* ══════════════════════════════════════════════
   HERO — immagine full-screen con header sovrapposto
   ══════════════════════════════════════════════ */
.iet-hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #1a0f07;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Gradiente overlay: più scuro in alto (header) e in basso (CTA) */
.iet-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(12, 6, 2, 0.62) 0%,
    rgba(12, 6, 2, 0.28) 30%,
    rgba(12, 6, 2, 0.42) 58%,
    rgba(12, 6, 2, 0.68) 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* ── Hero content (slogan grande + CTA) ──── */
.iet-hero__content {
  flex: 1;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 48px 40px;
}
.iet-hero__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 64px;
  font-weight: 600;
  line-height: 1.08;
  color: #fff;
  margin: 0 0 20px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.45);
}
.iet-hero__desc {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.85;
  margin: 0 0 36px;
  text-shadow: 0 1px 14px rgba(0,0,0,0.85), 0 2px 4px rgba(0,0,0,0.6);
}
.iet-hero__cta {
  display: inline-block;
  background: rgba(12, 6, 2, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.80);
  color: #fff;
  text-decoration: none;
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 14px 38px;
  border-radius: 2px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.3s, border-color 0.3s;
}
.iet-hero__cta:hover { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }

/* ══════════════════════════════════════════════
   HEADER — fixed, trasparente su hero / scuro su eventi
   ══════════════════════════════════════════════ */
.iet-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: transparent;
  transition: background 0.35s;
}
.iet-header.is-events {
  background: rgba(23, 16, 11, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(196,154,60,0.12);
}
.iet-header__name {
  color: #fff;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.2px;
  flex: 1;
  text-shadow: 0 1px 8px rgba(0,0,0,0.55);
}
.iet-header__logo {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}
.iet-header__logo img { max-height: 52px; width: auto; border-radius: 50%; }
.iet-logo-placeholder {
  width: 52px; height: 52px;
  background: rgba(30,20,8,0.55);
  border-radius: 50%;
  border: 2px solid rgba(196,154,60,0.5);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-gold); font-size: 12px; font-weight: 700;
  font-family: 'Lato', sans-serif;
  backdrop-filter: blur(4px);
}

/* ── Pill nav: centrata nell'header ──── */
.iet-pill-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(18, 10, 4, 0.92);
  border: 1px solid rgba(196, 154, 60, 0.12);
  border-radius: 50px;
  padding: 5px 5px;
  box-shadow: 0 6px 32px rgba(0,0,0,0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: all;
}
.iet-pill-nav a,
.iet-pill-nav a:link,
.iet-pill-nav a:visited {
  color: #c4a882 !important;
  text-decoration: none;
  font-size: 12px;
  font-family: 'Lato', sans-serif;
  letter-spacing: 0.5px;
  padding: 8px 20px;
  border-radius: 40px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.iet-pill-nav a:hover { background: rgba(196,154,60,0.10); color: #f0e0c0 !important; }

/* Link attivo: terracotta pill — gestito via JS in base alla sezione */
.iet-pill-nav a.is-active,
.iet-pill-nav a.is-active:link,
.iet-pill-nav a.is-active:visited {
  background: var(--c-accent);
  color: #fff !important;
  font-weight: 700;
  letter-spacing: 1.2px;
}
.iet-pill-nav a.is-active:hover { background: var(--c-accent-h); color: #fff !important; }

/* ══════════════════════════════════════════════
   BODY layout: sidebar + eventi
   ══════════════════════════════════════════════ */
.iet-body {
  display: flex;
  flex: 1;
  align-items: stretch;
}

/* ── Sidebar ──────────────────────────────── */
.iet-sidebar {
  width: 240px;
  min-width: 240px;
  background: var(--c-dark);
  flex-shrink: 0;
  border-right: 1px solid var(--c-dark3);
}
.iet-sidebar__inner {
  position: sticky;
  top: var(--header-h);
  padding: 28px 0 24px;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.iet-sidebar__label {
  color: var(--c-label);
  font-size: 11px;
  letter-spacing: 3px;
  font-family: 'Lato', sans-serif;
  padding: 0 22px;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.iet-sidebar__link,
.iet-sidebar__link:link,
.iet-sidebar__link:visited {
  display: block;
  color: var(--c-muted) !important;
  text-decoration: none;
  font-size: 14px;
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  padding: 12px 22px;
  border-bottom: 1px solid var(--c-dark3);
  transition: color 0.2s, background 0.2s;
  line-height: 1.4;
}
.iet-sidebar__link:hover { color: var(--c-muted-h) !important; background: var(--c-dark2); }
.iet-sidebar__link.is-active,
.iet-sidebar__link.is-active:link,
.iet-sidebar__link.is-active:visited {
  color: #f0e0c0 !important;
  background: var(--c-dark4);
  border-left: 3px solid var(--c-accent);
  padding-left: 19px;
  font-weight: 400;
}

/* ── Events main area ─────────────────────── */
.iet-events {
  flex: 1;
  padding: 52px 56px 72px;
  min-width: 0;
}

/* ── Single event ─────────────────────────── */
.iet-event {
  padding-bottom: 72px;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 72px;
}
.iet-event:last-child { border-bottom: none; margin-bottom: 0; }
.iet-event__num {
  color: var(--c-gold);
  font-size: 9px;
  letter-spacing: 4px;
  font-family: 'Lato', sans-serif;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.iet-event h2 {
  color: var(--c-text);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 38px;
  font-weight: 600;
  margin: 0 0 16px;
  line-height: 1.1;
  letter-spacing: -0.3px;
}
.iet-event p {
  color: var(--c-body);
  font-size: 16px;
  line-height: 1.85;
  margin: 0 0 26px;
  font-family: 'Lato', sans-serif;
  font-weight: 300;
}
.iet-btn {
  display: inline-block;
  border: 1.5px solid var(--c-accent);
  color: var(--c-accent);
  background: transparent;
  text-decoration: none;
  font-size: 11px;
  font-family: 'Lato', sans-serif;
  padding: 11px 28px;
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
  transition: background 0.25s, color 0.25s;
}
.iet-btn:hover { background: var(--c-accent); color: #fff; }

/* ── Layout 1 ─────────────────────────────── */
.iet-l1 { display: flex; gap: 36px; align-items: flex-start; }
.iet-l1 .iet-event__imgs { flex: 1.5; display: flex; flex-direction: column; gap: 10px; }
.iet-l1 .iet-event__img-big { height: 320px; }
.iet-l1 .iet-event__img-big img,
.iet-l1 .iet-event__img-big .iet-img-ph { height: 320px; }
.iet-l1 .iet-event__img-row { display: flex; gap: 10px; }
.iet-l1 .iet-event__img-row img,
.iet-l1 .iet-event__img-row .iet-img-ph { height: 140px; flex: 1; }
.iet-l1 .iet-event__text { flex: 1; padding-top: 12px; }

/* ── Layout 2 ─────────────────────────────── */
.iet-l2 { display: flex; gap: 36px; align-items: flex-start; }
.iet-l2 .iet-event__text { flex: 1; padding-top: 12px; }
.iet-l2 .iet-event__imgs { flex: 1.5; display: flex; flex-direction: column; gap: 10px; }
.iet-l2 .iet-event__img-row { display: flex; gap: 10px; }
.iet-l2 .iet-event__img-row img,
.iet-l2 .iet-event__img-row .iet-img-ph { height: 180px; flex: 1; }
.iet-l2 .iet-event__img-big { height: 320px; }
.iet-l2 .iet-event__img-big img,
.iet-l2 .iet-event__img-big .iet-img-ph { height: 320px; }

/* ── Layout 3 ─────────────────────────────── */
.iet-l3 .iet-event__img-panoramic { height: 380px; margin-bottom: 32px; }
.iet-l3 .iet-event__img-panoramic img,
.iet-l3 .iet-event__img-panoramic .iet-img-ph { height: 380px; width: 100%; object-fit: cover; }
.iet-l3 .iet-event__bottom { display: flex; gap: 36px; align-items: flex-start; }
.iet-l3 .iet-event__text { flex: 1; }
.iet-l3 .iet-event__img-trio { flex: 1; display: flex; gap: 8px; }
.iet-l3 .iet-event__img-trio img,
.iet-l3 .iet-event__img-trio .iet-img-ph { flex: 1; height: 160px; }

/* ── Layout 4 ─────────────────────────────── */
.iet-l4 .iet-event__img-grid { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 10px; margin-bottom: 32px; }
.iet-l4 .iet-grid-sm img,
.iet-l4 .iet-grid-sm .iet-img-ph { height: 320px; }
.iet-l4 .iet-grid-lg img,
.iet-l4 .iet-grid-lg .iet-img-ph { height: 320px; }
.iet-l4 .iet-event__content-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }

/* ── Layout 5 ─────────────────────────────── */
.iet-l5 { display: flex; gap: 28px; align-items: flex-start; }
.iet-l5 .iet-event__img-vert { flex: 1.2; }
.iet-l5 .iet-event__img-vert img,
.iet-l5 .iet-event__img-vert .iet-img-ph { height: 420px; width: 100%; object-fit: cover; }
.iet-l5 .iet-event__right { flex: 1; display: flex; flex-direction: column; gap: 18px; }
.iet-l5 .iet-event__img-trio { display: flex; gap: 10px; }
.iet-l5 .iet-event__img-trio img,
.iet-l5 .iet-event__img-trio .iet-img-ph { flex: 1; height: 180px; }

/* ══════════════════════════════════════════════
   SEZIONE CONTATTI
   ══════════════════════════════════════════════ */
.iet-contatti {
  background: var(--c-dark2);
  scroll-margin-top: var(--header-h);
  padding: 120px 72px;
}
.iet-contatti__wrap {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 96px;
  align-items: start;
}
.iet-contatti__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 52px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 40px;
  letter-spacing: -0.3px;
}
.iet-contatti__list {
  list-style: none;
  margin: 0 0 48px;
  padding: 0;
}
.iet-contatti__list li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 30px;
}
.iet-contatti__label {
  font-family: 'Lato', sans-serif;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--c-gold);
}
.iet-contatti__list a,
.iet-contatti__list a:link,
.iet-contatti__list a:visited {
  color: #d4bfa0 !important;
  text-decoration: none;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 300;
  transition: color 0.2s;
}
.iet-contatti__list a:hover { color: #fff !important; }
.iet-contatti__socials {
  display: flex;
  gap: 16px;
}
.iet-social,
.iet-social:link,
.iet-social:visited {
  color: var(--c-muted) !important;
  text-decoration: none;
  width: 42px; height: 42px;
  border: 1px solid rgba(196,154,60,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.iet-social:hover { color: #fff !important; border-color: var(--c-gold); background: rgba(196,154,60,0.12); }

/* Form */
.iet-contact-form { display: flex; flex-direction: column; gap: 16px; }
.iet-cf__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.iet-cf__input,
.iet-cf__textarea {
  background: rgba(255,255,255,0.10) !important;
  border: 1px solid rgba(196,154,60,0.30) !important;
  color: #fff !important;
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  font-weight: 300;
  padding: 15px 18px;
  border-radius: 3px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s, background 0.2s;
}
.iet-cf__input::placeholder,
.iet-cf__textarea::placeholder { color: rgba(255,255,255,0.55) !important; }
.iet-cf__input:focus,
.iet-cf__textarea:focus { border-color: rgba(196,154,60,0.70) !important; background: rgba(255,255,255,0.15) !important; }
.iet-cf__textarea { resize: none; height: 160px; }
.iet-cf__footer { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 4px; }
.iet-cf__btn {
  background: var(--c-accent);
  color: #fff;
  border: none;
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.25s;
}
.iet-cf__btn:hover { background: var(--c-accent-h); }
.iet-cf__btn:disabled { opacity: 0.6; cursor: default; }
.iet-cf__feedback {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 300;
  margin: 0;
}
.iet-cf__feedback.ok  { color: #7ec8a0; }
.iet-cf__feedback.err { color: #e07070; }

/* ── Footer ───────────────────────────────── */
.iet-footer {
  background: var(--c-dark);
  padding: 20px 40px;
  text-align: center;
  color: var(--c-footer);
  font-size: 12px;
  font-family: 'Lato', sans-serif;
  letter-spacing: 0.3px;
  border-top: 1px solid var(--c-dark3);
}

/* ════════════════════════════════════════════
   MOBILE  ≤ 768px
   ════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Niente scroll orizzontale su mobile (sidebar qui è drawer fixed, sticky non usato) */
  .iet-homepage { overflow-x: hidden; }

  /* Hero mobile */
  .iet-hero { min-height: 100vh; height: 100svh; }

  /* Header mobile: compresso, logo nascosto */
  .iet-header {
    height: 58px;
    padding: 0 16px;
  }
  .iet-header__name { font-size: 18px; }
  .iet-header__logo { display: none; }
  .iet-pill-nav { gap: 1px; padding: 4px 4px; }
  .iet-pill-nav a { font-size: 10px; padding: 7px 12px; }

  /* Hero content mobile */
  .iet-hero__content { padding: 0 24px 40px; }
  .iet-hero__title { font-size: 36px; }
  .iet-hero__desc { font-size: 14px; margin-bottom: 28px; }
  .iet-hero__cta { font-size: 10px; padding: 12px 28px; letter-spacing: 2px; }

  /* Nascondi sidebar su mobile */
  .iet-sidebar { display: none; }

  /* Body: colonna singola */
  .iet-body { flex-direction: column; }

  /* Events area */
  .iet-events { padding: 28px 16px 48px; }

  /* Evento singolo */
  .iet-event { margin-bottom: 52px; padding-bottom: 52px; }
  .iet-event h2 { font-size: 30px; }
  .iet-event p { font-size: 15px; }
  .iet-event__num { margin-bottom: 14px; }

  .iet-l1 { flex-direction: column; gap: 14px; }
  .iet-l1 .iet-event__imgs { flex: none; width: 100%; }
  .iet-l1 .iet-event__img-big,
  .iet-l1 .iet-event__img-big img,
  .iet-l1 .iet-event__img-big .iet-img-ph { height: 220px; }
  .iet-l1 .iet-event__img-row img,
  .iet-l1 .iet-event__img-row .iet-img-ph { height: 100px; }
  .iet-l1 .iet-event__text { flex: none; padding-top: 4px; }

  .iet-l2 { flex-direction: column; gap: 14px; }
  .iet-l2 .iet-event__imgs { flex: none; width: 100%; }
  .iet-l2 .iet-event__img-big,
  .iet-l2 .iet-event__img-big img,
  .iet-l2 .iet-event__img-big .iet-img-ph { height: 220px; }
  .iet-l2 .iet-event__img-row img,
  .iet-l2 .iet-event__img-row .iet-img-ph { height: 100px; }
  .iet-l2 .iet-event__text { flex: none; padding-top: 4px; order: -1; }

  .iet-l3 .iet-event__img-panoramic,
  .iet-l3 .iet-event__img-panoramic img,
  .iet-l3 .iet-event__img-panoramic .iet-img-ph { height: 200px; margin-bottom: 16px; }
  .iet-l3 .iet-event__bottom { flex-direction: column; gap: 14px; }
  .iet-l3 .iet-event__img-trio { flex: none; }
  .iet-l3 .iet-event__img-trio img,
  .iet-l3 .iet-event__img-trio .iet-img-ph { height: 90px; }

  .iet-l4 .iet-event__img-grid { grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
  .iet-l4 .iet-grid-sm img,
  .iet-l4 .iet-grid-sm .iet-img-ph,
  .iet-l4 .iet-grid-lg img,
  .iet-l4 .iet-grid-lg .iet-img-ph { height: 140px; }
  .iet-l4 .iet-event__content-row { flex-direction: column; gap: 16px; align-items: flex-start; }

  .iet-l5 { flex-direction: column; gap: 14px; }
  .iet-l5 .iet-event__img-vert { flex: none; width: 100%; }
  .iet-l5 .iet-event__img-vert img,
  .iet-l5 .iet-event__img-vert .iet-img-ph { height: 220px; min-height: unset; }
  .iet-l5 .iet-event__img-trio img,
  .iet-l5 .iet-event__img-trio .iet-img-ph { height: 100px; }

  /* Contatti mobile: stack a colonna singola */
  .iet-contatti { padding: 64px 20px; }
  .iet-contatti__wrap { grid-template-columns: 1fr; gap: 44px; }
  .iet-contatti__title { font-size: 38px; margin-bottom: 28px; }
  .iet-contatti__list { margin-bottom: 32px; }
  .iet-cf__row { grid-template-columns: 1fr; }
  .iet-cf__textarea { height: 130px; }

  .iet-footer { padding: 16px 20px; }
}

/* ══════════════════════════════════════════════
   LANG SWITCHER  (homepage pill-nav)
   ══════════════════════════════════════════════ */
.iet-lang-select { position: relative; }
.iet-lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(196,154,60,0.20);
  color: #c4a882;
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 7px 12px 7px 10px;
  border-radius: 40px;
  cursor: pointer;
  margin-left: 4px;
  transition: background 0.2s, color 0.2s;
}
.iet-lang-btn:hover { background: rgba(255,255,255,0.13); color: #f0e0c0; }
.iet-lang-arrow { font-size: 9px; }
.iet-lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: rgba(23,16,11,0.98);
  border: 1px solid rgba(196,154,60,0.16);
  border-radius: 10px;
  padding: 6px 0;
  list-style: none;
  min-width: 148px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(0.97);
  transform-origin: top right;
  transition: opacity 0.18s, transform 0.18s;
  z-index: 500;
  box-shadow: 0 14px 44px rgba(0,0,0,0.5);
  backdrop-filter: blur(12px);
}
.iet-lang-menu.is-open {
  opacity: 1;
  pointer-events: all;
  transform: none;
}
.iet-lang-menu li {
  padding: 10px 18px;
  cursor: pointer;
  font-size: 13px;
  font-family: 'Lato', sans-serif;
  color: #c4a882;
  transition: color 0.15s, background 0.15s;
}
.iet-lang-menu li:hover { background: rgba(255,255,255,0.05); color: #f0e0c0; }

/* ── Mobile sidebar drawer ──────────────── */
@media (max-width: 768px) {
  .iet-sidebar {
    display: block !important;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 270px;
    z-index: 250;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    padding-top: 58px;
    overflow-y: auto;
    box-shadow: none;
  }
  .iet-sidebar.is-mob-open {
    transform: translateX(0);
    box-shadow: 8px 0 40px rgba(0,0,0,0.55);
  }
  .iet-sidebar__inner { position: static; max-height: none; overflow-y: visible; }

  .iet-sidebar__close {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    background: none;
    border: none;
    color: #c4a882;
    font-size: 18px;
    padding: 12px 18px 8px;
    cursor: pointer;
  }

  .iet-mob-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0);
    z-index: 240;
    pointer-events: none;
    transition: background 0.3s;
  }
  .iet-mob-overlay.is-active {
    background: rgba(0,0,0,0.55);
    pointer-events: all;
  }

  .iet-lang-btn { padding: 5px 9px 5px 8px; font-size: 10px; }
}

/* ── Page exit transition ───────────────── */
@keyframes iet-page-exit {
  to { opacity: 0; transform: translateY(-10px); }
}
body.iet-page-exit {
  animation: iet-page-exit 0.4s ease forwards;
  pointer-events: none;
}

/* ── Sidebar close button (hidden on desktop) */
.iet-sidebar__close { display: none; }

/* ── Canvas dark ───────────────────────────
   NB: niente overflow-x:hidden su .iet-wrapper/.iet-homepage
   in desktop: romperebbe il position:sticky della sidebar.
   Su mobile è applicato dentro la media query (sidebar = drawer fixed). */
html { background: var(--c-dark); }

/* ── Nascondi il language switcher di TranslatePress ── */
#trp-floater-ls,
.trp-language-switcher-container,
.trp-floater,
[id^="trp-floater"],
[class^="trp-floater"],
.trp-language-switcher { display: none !important; }

/* ══════════════════════════════════════════════
   GTRANSLATE — switcher nella pill-nav + hide barra Google
   ══════════════════════════════════════════════ */
.iet-gt-switch { display: inline-flex; align-items: center; margin-left: 4px; }
.iet-gt-switch .gtranslate_wrapper { display: inline-flex; align-items: center; }
.iet-gt-switch select,
.iet-gt-switch .gt_selector {
  background: rgba(255,255,255,0.07);
  color: #c4a882;
  border: 1px solid rgba(196,154,60,0.20);
  border-radius: 40px;
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 7px 26px 7px 12px;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c4a882' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
}
.iet-gt-switch select:hover,
.iet-gt-switch .gt_selector:hover { background-color: rgba(255,255,255,0.13); color: #f0e0c0; }
.iet-gt-switch select option,
.iet-gt-switch .gt_selector option { background: #17100b; color: #c4a882; }
.iet-gt-switch img { display: none !important; }

/* Nascondi la barra/popup di Google Translate e l'offset del body */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
.skiptranslate iframe,
#goog-gt-tt,
.goog-te-balloon-frame { display: none !important; }
body { top: 0 !important; position: static !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
@media (max-width: 768px) {
  .iet-gt-switch select, .iet-gt-switch .gt_selector { font-size: 10px; padding: 5px 22px 5px 9px; }
}

/* ── Lang switcher custom + motore GTranslate nascosto ── */
.iet-gt-engine { display: none !important; }
.iet-lang-flag { font-size: 14px; line-height: 1; }
.iet-lang-menu li.is-active { color: #f0e0c0; background: rgba(196,154,60,0.12); }

/* ── Offset scroll: cliccando un evento dalla sidebar non deve finire sotto l'header fisso ── */
.iet-event { scroll-margin-top: 96px; }
@media (max-width: 768px) { .iet-event { scroll-margin-top: 70px; } }
