/* === COMPONENT — BUTTONS (hamburger, ticket, icon-btn) — auto-partition draft === */

.btn-outline{
  display:inline-block; padding:10px 14px; border-radius:10px;
  border:1px solid var(--accent-a); color:var(--accent-a); text-decoration:none;
  font-weight:800; letter-spacing:.06em; transition:transform .2s, background .2s, color .2s, opacity .2s;
}

.btn-outline:hover{ transform:translateY(-1px); background:var(--accent-a); color:#000; opacity:.95; }

button.btn{
  background: var(--accent-a); color:#000; padding:14px 18px; border-radius:12px;
  font-weight:800; letter-spacing:.06em; cursor:pointer; transition: background .25s ease, transform .2s ease;
}

button.btn:hover{ background: var(--accent-b); transform: translateY(-1px); }

.next-cta .btn{ padding:10px 16px; border-radius:999px; }

.next-cta .btn.btn-outline{ background:transparent; border:1px solid rgba(255,255,255,.25); }

.btn-expand{ display:inline-block; padding:12px 16px; border-radius:999px; border:1px solid rgba(255,255,255,.2); background: var(--accent-a); color:#000; font-weight:800; letter-spacing:.06em; }

.official-disclosure[open] .btn-expand{ background: var(--accent-b); }

/* Hamburger button */
.euto-hamburger {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  background: rgba(0,0,0,.92);
  cursor: pointer;
  overflow: hidden;
  position: relative;
  z-index: 4100;
  margin-left: 0;
}

.euto-hamburger__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 26px;
  width: auto;
  transform: translate(-50%, -50%);
}

.euto-hamburger__lines {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 20px;
  width: auto;
  transform: translate(-50%, -50%);
}

/* Toolbar desktop (nav inline, appare su click) */
@media (min-width: 980px) {
  /* Nascondi il menu mobile */
  .euto-menu:not(.euto-menu--desktop) { display: none !important; }

  /* Menu desktop */
  .euto-menu--desktop {
    position: static;
    display: none;
    background: transparent;
    border: 0;
    padding: 0;
    min-width: auto;
    box-shadow: none;
    gap: 16px;
    align-items: center;
  }
  .euto-menu--desktop.is-open { display: flex; }

  .euto-menu--desktop a {
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    padding: 10px 12px;
    border-radius: 10px;
    letter-spacing: .04em;
  }
  .euto-menu--desktop a:hover {
    background: rgba(255,255,255,.08);
  }

  /* Righe header su desktop */
  .euto-topbar__row {
    justify-content: flex-start;
    gap: 20px;
  }

  /* Hamburger leggermente più compatto su desktop */
  .euto-hamburger {
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,.85);
  }

  /* Animazione reveal */
  .euto-menu--desktop.is-open {
    animation: eutoMenuIn .18s ease-out both;
  }
  @keyframes eutoMenuIn {
    from { transform: translateY(-6px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
  }
}

.page-contacts .btn-cosmos{
  width: min(240px, 70%);
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid #fff;
  background:#fff; color:#000;
  font: 800 14px/1 var(--font-body, Inter, system-ui, sans-serif);
  letter-spacing:.08em; text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transition: all .25s ease;
}

.page-contacts .btn-cosmos:hover{ background:#000; color:#fff; }

.page-contacts .btn-cosmos:active{ transform: translateY(1px); }

/* ===== HAMBURGER (cerchio + linee) ===== */
.euto-hamburger{
  width:44px; height:44px; display:grid; place-items:center;
  border:1px solid rgba(255,255,255,.18); border-radius:12px;
  background:rgba(0,0,0,.92); cursor:pointer; overflow:hidden;
  position:relative; z-index:1100;
}

.euto-hamburger__logo,
.euto-hamburger__lines{
  position:absolute; left:50%; top:50%;
  transform:translate(-50%,-50%) scale(1) rotate(0deg);
  width:26px; height:auto;
  backface-visibility:hidden; -webkit-backface-visibility:hidden;
  will-change:transform,opacity;
}

/* Stato iniziale */
.euto-hamburger__logo { opacity:1; }

.euto-hamburger__lines{ opacity:1; }

/* Apertura (click → JS aggiunge .is-open) */
.euto-hamburger.is-open .euto-hamburger__logo  { animation: circle-open .55s ease forwards; }

.euto-hamburger.is-open .euto-hamburger__lines { animation: lines-open  .55s ease forwards; }

/* Chiusura (JS mette .is-closing) */
.euto-hamburger.is-closing .euto-hamburger__logo  { animation: circle-close .55s ease forwards; }

.euto-hamburger.is-closing .euto-hamburger__lines { animation: lines-close  .55s ease forwards; }

.euto-hamburger.is-open .euto-hamburger__lines  { animation: lines-open  .55s ease forwards !important; }

.euto-hamburger.is-closing .euto-hamburger__lines{ animation: lines-close .55s ease forwards !important; }

/* === BUTTON TICKET · MINIMAL WHITE BG === */
.btn-ticket{
  display:inline-flex; align-items:center; justify-content:center;
  min-width: 170px;
  padding: 12px 30px;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 14px;
  text-decoration: none;

  color: #000;                /* testo nero */
  background: #fff;           /* sfondo bianco */
  border: 2px solid #000;     /* bordo nero */

  transition: background .2s ease, color .2s ease, transform .15s ease;
}

/* hover/active */
@media (hover:hover){
  .btn-ticket:hover{
    background: #000;          /* sfondo nero */
    color: #fff;               /* testo bianco */
    transform: translateY(-1px);
  }
}

.btn-ticket:active{ transform: scale(.97); }

/* focus accessibility */
.btn-ticket:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,0,0,.4), 0 0 0 5px #fff;
}

/* responsive */
@media (max-width: 820px){
  .btn-ticket{ min-width: 150px; padding: 11px 24px; font-size: 13px; }
}

.btn-ticket{
  display:inline-flex; align-items:center; justify-content:center;
  min-width: 170px;
  padding: 12px 30px;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 14px;
  text-decoration: none;

  color: #000 !important;        /* testo nero */
  background: #fff !important;   /* sfondo bianco */
  border: 2px solid #000 !important; /* bordo nero */
  box-shadow: none !important;

  transition: background .2s ease, color .2s ease, transform .15s ease;
}

@media (hover:hover){
  .btn-ticket:hover{
    background: #000 !important;
    color: #fff !important;
    transform: translateY(-1px);
  }
}

/* ===== Ticket in toolbar (SOLO mobile) – classi isolate ===== */
@media (max-width: 980px){
  /* il row deve fare da “ancora” per l’assoluto */
  .euto-topbar__row{ position: relative !important; }

  .top-ticket-btn{
    position: absolute; right: 12px; top: 50%;
    transform: translateY(-50%);
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    text-decoration: none;
    z-index: 4200;

    /* niente effetti ereditati */
    background: transparent !important;
    border: 0 !important; box-shadow: none !important; padding: 0 !important;
  }

  /* anello come l’hamburger */
  .top-ticket-ring{
    position: absolute; inset: 0; border-radius: 50%;
    border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.15) inset;
    pointer-events: none;
  }

  /* icona con dimensioni fisse */
  .top-ticket-icon{
    position: relative; display: block;
    width: 22px; height: 22px; object-fit: contain;
    filter: invert(1);              /* bianca su toolbar scura */
  }

  /* “scudo” contro regole globali che alterano le img */
  .top-ticket-btn img{
    max-width: none !important;
    height: 22px !important; width: 22px !important;
  }
}

/* desktop: nascosto */
@media (min-width: 980px){
  .top-ticket-btn{ display: none !important; }
}

/* === HAMBURGER con cornice come Ticket + animazioni === */
.euto-hamburger{
  width: 44px; height: 44px;
  border-radius: 50%;
  position: relative;
  display: grid; place-items: center;
  background: transparent;
  border: 0;
  overflow: hidden;
}

/* Cornice identica al Ticket */
.euto-hamburger .btn-ring__frame{
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,.15) inset;
  pointer-events: none;
}

/* Immagini sovrapposte e centrate */
.euto-hamburger .btn-ring__logo,
.euto-hamburger .btn-ring__lines{
  position: absolute; left: 50%; top: 50%;
  width: 62%; height: 62%;
  object-fit: contain;
  transform-origin: 50% 50%;
  transition: transform .45s cubic-bezier(.22,.61,.36,1);
  filter: none;
}

/* Base: cerchio normale, linee leggermente più grandi */
.euto-hamburger .btn-ring__logo{
  transform: translate(-50%,-50%) scale(1) rotate(0deg);
}

.euto-hamburger .btn-ring__lines{
  transform: translate(-50%,-50%) scale(1.1) rotate(0deg);
}

/* APERTURA → cerchio zoom-in +360°, linee zoom-out +90° */
.euto-hamburger.is-open .btn-ring__logo{
  transform: translate(-50%,-50%) scale(1.25) rotate(360deg);
}

.euto-hamburger.is-open .btn-ring__lines{
  transform: translate(-50%,-50%) scale(0.75) rotate(90deg);
}

.btn-ticket{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 22px; border-radius:999px;
  color:var(--text); text-decoration:none; font-weight:700;
  background: linear-gradient(90deg, #6e38ff, #00d8ff);
  box-shadow: 0 8px 18px rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.16);
}

.btn-ticket:hover{ filter:brightness(1.05); }

/* ——— Pill bianco come GET TICKETS ——— */
.btn, .btn:visited{ color: inherit; text-decoration: none; }

.btn-pill{
  display:inline-flex; align-items:center; justify-content:center;
  padding: .7rem 1.2rem;
  border-radius: 999px;
  font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: #fff; color: #000; border: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 8px 22px rgba(0,0,0,.28);
  transition: filter .15s ease, transform .12s ease, box-shadow .15s ease;
}
.btn-pill:hover{ filter: brightness(.95); transform: translateY(-1px); }
.btn-pill:active{ transform: translateY(0); box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 6px 16px rgba(0,0,0,.24); }

/* Texture leggera sul bottone (come prima, solo sui bottoni) */
.btn-tex{ position:relative; overflow:hidden; isolation:isolate; }
.btn-tex::before{
  content:""; position:absolute; inset:0; pointer-events:none; z-index:0;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(0,0,0,0) 38%, rgba(0,0,0,.12));
  mix-blend-mode: soft-light;
}
.btn-tex::after{
  content:""; position:absolute; inset:0; pointer-events:none; z-index:0;
  opacity:.14; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,\
  <svg xmlns='http://www.w3.org/2000/svg' width='100' height='100'>\
    <filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter>\
    <rect width='100%' height='100%' filter='url(%23n)' fill='rgba(255,255,255,1)'/>\
  </svg>");
  background-size: 220px; background-repeat: repeat;
}
.btn-tex > *{ position:relative; z-index:1; }

/* Non ereditare più il colore sui bottoni */
.btn, .btn:visited{
  text-decoration: none;
}

/* Pill bianco: testo nero SEMPRE */
.btn-pill,
.btn-pill:visited,
a.btn.btn-pill,
.btn-pill .cta__label{
  color: #000 !important;
}

/* Mantieni nero anche su hover/active */
.btn-pill:hover,
.btn-pill:active{
  color: #000 !important;
}
