/* Pagine eSIM (/esim, /esim/:code): stesso linguaggio di /nuove-date. */
.es_page { color: #3e1a09; background: #f5f4ee; }
.es_wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.es_topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; max-width: 1100px; margin: 0 auto; }
.es_topbar img { height: 34px; }
.es_topbar_link { font-size: 14px; font-weight: 700; color: #3e1a09; border: 1.5px solid rgba(62,26,9,0.18); border-radius: 50px; padding: 8px 16px; }

.es_kicker { display: inline-block; background: #febb00; color: #3e1a09; font-weight: 800; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; padding: 7px 14px; border-radius: 50px; margin-bottom: 18px; }
.es_hero { padding: 28px 20px 36px; text-align: center; max-width: 780px; margin: 0 auto; }
.es_hero h1 { font-size: clamp(34px, 8.5vw, 60px); font-weight: 900; line-height: 1.02; margin: 0 0 14px; letter-spacing: -0.02em; }
.es_hero h1 span { background: linear-gradient(transparent 62%, #febb00 62%); }
.es_hero p { font-size: 17px; line-height: 1.45; color: rgba(62,26,9,0.8); margin: 0 auto 24px; max-width: 560px; }
.es_hero_cta { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; }
.es_from { font-weight: 700; }

.es_btn { display: inline-block; background: #febb00; color: #3e1a09 !important; font-weight: 800; font-size: 16px; border-radius: 50px; padding: 14px 26px; border: 0; }
.es_btn:hover { filter: brightness(.96); }

.es_section { padding-top: 36px; padding-bottom: 36px; }
.es_section h2 { font-size: clamp(26px, 5vw, 36px); font-weight: 900; margin: 0 0 20px; }

.es_search { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.es_search input { flex: 1 1 280px; max-width: 460px; border: 1.5px solid rgba(62,26,9,0.15); border-radius: 50px; padding: 13px 20px; font-size: 16px; color: #3e1a09; background: #fff; outline: none; }
.es_search input:focus { border-color: #febb00; }
.es_filters { display: flex; gap: 8px; }
.es_filter { border: 1.5px solid rgba(62,26,9,0.15); background: #fff; color: rgba(62,26,9,0.75); font-weight: 700; font-size: 14px; border-radius: 50px; padding: 8px 15px; cursor: pointer; }
.es_filter.is-active { background: #3e1a09; border-color: #3e1a09; color: #fff; }

.es_grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.es_dest { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 17px; padding: 14px 16px; box-shadow: 0 8px 28px rgba(62,26,9,0.08); color: #3e1a09; transition: transform .15s, box-shadow .15s; }
.es_dest:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(62,26,9,0.14); color: #3e1a09; }
.es_dest[hidden] { display: none; }
.es_flag { flex: 0 0 36px; display: flex; align-items: center; justify-content: center; color: #3e1a09; }
.es_flag img { display: block; width: 36px; height: 24px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(62,26,9,0.1); }
.es_flag svg { width: 28px; height: 28px; }
.es_flag--big { flex-basis: 66px; }
.es_flag--big img { width: 66px; height: 44px; border-radius: 6px; }
.es_flag--big svg { width: 48px; height: 48px; }
.es_dest_name { flex: 1; min-width: 0; }
.es_dest_name strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.es_dest_name small, .es_muted { color: #8a7060; font-size: 13px; }
.es_dest_price { text-align: right; }
.es_dest_price small { display: block; color: #8a7060; font-size: 11px; }
.es_dest_price strong { font-weight: 900; }
.es_more { margin-top: 14px; color: #8a7060; font-size: 14px; }
.es_notice { background: #fff; border-radius: 17px; padding: 22px; color: #8a7060; box-shadow: 0 4px 16px rgba(62,26,9,0.06); }
.es_discount { margin-top: 18px; background: #fff9e0; border-radius: 17px; padding: 18px 20px; }

.es_cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; padding: 0; margin: 0; list-style: none; }
.es_card { background: #fff; border-radius: 17px; padding: 22px; box-shadow: 0 4px 16px rgba(62,26,9,0.06); }
.es_card h3 { font-size: 18px; font-weight: 800; margin: 12px 0 6px; }
.es_card p { color: #8a7060; font-size: 14px; line-height: 1.5; margin: 0; }
.es_step { width: 40px; height: 40px; border-radius: 50%; background: #febb00; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 18px; }
.es_icon { font-size: 30px; }

.es_faq details { background: #fff; border-radius: 17px; padding: 18px 20px; margin-bottom: 10px; box-shadow: 0 4px 16px rgba(62,26,9,0.06); }
.es_faq summary { cursor: pointer; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.es_faq summary::-webkit-details-marker { display: none; }
.es_faq summary::after { content: "+"; color: #8a7060; transition: transform .15s; }
.es_faq details[open] summary::after { transform: rotate(45deg); }
.es_faq p { margin: 12px 0 0; color: #8a7060; font-size: 15px; line-height: 1.55; }

.es_final { background: #3e1a09; color: #fff; border-radius: 24px; padding: 40px 24px; text-align: center; margin: 20px 0 60px; }
.es_final h2 { color: #fff; margin-bottom: 10px; }
.es_final p { color: rgba(255,255,255,0.75); max-width: 520px; margin: 0 auto 22px; }

/* Pagina della meta */
.es_back { display: inline-block; margin-top: 18px; color: #8a7060; font-weight: 700; font-size: 14px; }
.es_dest_head { display: flex; align-items: center; gap: 16px; margin: 18px 0 10px; }
.es_dest_head h1 { font-size: clamp(32px, 7vw, 52px); font-weight: 900; margin: 0; line-height: 1.05; }
.es_lead { color: rgba(62,26,9,0.8); max-width: 640px; line-height: 1.5; margin: 10px 0 8px; }

/* Lista dei piani con filtri */
.es_list_block { margin-top: 28px; }
.es_list_head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.es_list_head h2 { font-size: clamp(26px, 5vw, 36px); font-weight: 900; margin: 0; letter-spacing: -0.01em; }
.es_filters_bar { display: flex; gap: 10px; flex-wrap: wrap; }
.es_select { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.es_select span { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #8a7060; }
.es_select select { appearance: none; -webkit-appearance: none; min-width: 170px; border: 1.5px solid rgba(62,26,9,0.15); border-radius: 50px; padding: 10px 38px 10px 16px; font-size: 15px; font-weight: 700; color: #3e1a09; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233e1a09' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center; }
.es_select select:focus-visible, .es_buy:focus-visible { outline: 3px solid #febb00; outline-offset: 2px; }

.es_list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.es_row { display: grid; grid-template-columns: minmax(150px, 1.4fr) 1fr 1.2fr 96px 104px; align-items: center; gap: 16px; background: #fff; border-radius: 16px; padding: 14px 16px 14px 20px; box-shadow: 0 4px 16px rgba(62,26,9,0.06); }
.es_row[hidden] { display: none; }
.es_row.is-unlimited { background: #3e1a09; color: #fff; }
.es_row_data { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.es_row_data strong { font-size: 22px; font-weight: 900; letter-spacing: -0.01em; }
.es_row_days { font-weight: 700; }
.es_row_unit { font-size: 13px; color: #8a7060; }
.es_row.is-unlimited .es_row_unit { color: rgba(255,255,255,0.75); }
.es_row_price { font-size: 20px; font-weight: 900; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.es_badge { background: #febb00; color: #3e1a09; font-size: 11px; font-weight: 800; text-transform: uppercase; border-radius: 50px; padding: 4px 10px; white-space: nowrap; }
.es_buy { display: inline-block; text-align: center; background: #3e1a09; color: #fff !important; font-weight: 800; font-size: 14px; border-radius: 50px; padding: 10px 20px; white-space: nowrap; }
.es_row.is-unlimited .es_buy { background: #fff9e0; color: #3e1a09 !important; }
@media (max-width: 640px) {
  .es_row { grid-template-columns: 1fr auto; grid-template-areas: "data price" "meta buy"; row-gap: 6px; padding: 14px 16px; }
  .es_row_data { grid-area: data; }
  .es_row_price { grid-area: price; }
  .es_row_days { grid-area: meta; font-size: 13px; }
  .es_row_unit { display: none; }
  .es_buy { grid-area: buy; }
  .es_select { flex: 1 1 140px; }
  .es_select select { min-width: 0; width: 100%; }
}
.es_fineprint { margin: 22px 0 10px; font-size: 13px; max-width: 760px; line-height: 1.5; }
