/* Pagina /partner (programma di affiliazione): stesso linguaggio di /esim e /nuove-date. */
.pt_page { color: #3e1a09; background: #f5f4ee; padding-top: 16px; }
.pt_wrap { max-width: 1100px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.pt_page h2 { font-size: clamp(28px, 5vw, 40px); font-weight: 900; letter-spacing: -0.01em; line-height: 1.08; margin: 0 0 22px; color: #3e1a09; }
.pt_page h3 { font-size: 18px; font-weight: 800; margin: 0 0 6px; color: #3e1a09; }
.pt_page p { margin: 0; }
.pt_muted { color: #8a7060; line-height: 1.5; }

.pt_btn { display: inline-block; background: #febb00; color: #3e1a09 !important; font-weight: 800; font-size: 16px; border-radius: 50px; padding: 15px 28px; border: 0; cursor: pointer; }
.pt_btn:hover { filter: brightness(.96); }
.pt_link { font-weight: 800; color: #3e1a09 !important; text-decoration: underline; text-underline-offset: 4px; }
.pt_btn:focus-visible, .pt_link:focus-visible, .pt_faq summary:focus-visible { outline: 3px solid #3e1a09; outline-offset: 3px; }

/* Hero: testo + carta d'imbarco */
.pt_hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; padding-top: 40px; padding-bottom: 56px; }
.pt_kicker { display: inline-block; background: #3e1a09; color: #fff; font-weight: 800; font-size: 13px; padding: 7px 14px; border-radius: 50px; margin-bottom: 20px !important; }
.pt_hero h1 { font-size: clamp(38px, 6.2vw, 68px); font-weight: 900; line-height: 1.0; letter-spacing: -0.03em; margin: 0 0 20px; color: #3e1a09; }
.pt_lead { font-size: 18px; line-height: 1.5; color: rgba(62,26,9,0.8); max-width: 540px; margin-bottom: 28px !important; }
.pt_hero_cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

.pt_pass { background: #fff; border-radius: 26px; box-shadow: 0 24px 60px rgba(62,26,9,0.16); padding: 24px 26px 20px; transform: rotate(2.5deg); max-width: 400px; justify-self: center; width: 100%; }
.pt_pass small { display: block; font-size: 12px; font-weight: 700; color: #8a7060; margin-bottom: 2px; }
.pt_pass strong { display: block; font-size: 17px; font-weight: 900; line-height: 1.15; }
.pt_pass_top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.pt_pass_top img { height: 30px; }
.pt_pass_top span { font-size: 12px; font-weight: 800; color: #8a7060; }
.pt_pass_route { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pt_pass_route svg { color: #febb00; flex: 0 0 auto; }
.pt_right { text-align: right; }
.pt_pass_tear { position: relative; border-top: 2px dashed rgba(62,26,9,0.18); margin: 22px -26px; }
.pt_pass_tear::before, .pt_pass_tear::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: #f5f4ee; }
.pt_pass_tear::before { left: -12px; }
.pt_pass_tear::after { right: -12px; }
.pt_pass_bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.pt_code { font-size: 26px !important; letter-spacing: .08em; }
.pt_percent { background: #febb00; border-radius: 50px; padding: 6px 12px; font-size: 18px !important; white-space: nowrap; }
.pt_pass_link { margin-top: 16px !important; font-size: 13px; color: #8a7060; }

.pt_section { padding-top: 48px; padding-bottom: 48px; }

/* Come funziona: sequenza vera, quindi numerata */
.pt_steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: none; }
.pt_steps li { position: relative; padding: 0 22px 0 0; }
.pt_steps li:not(:last-child)::after { content: ""; position: absolute; top: 21px; left: 52px; right: 10px; border-top: 2px dashed rgba(62,26,9,0.2); }
.pt_step_num { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #febb00; font-weight: 900; font-size: 19px; margin-bottom: 16px; }
.pt_steps p { color: #8a7060; font-size: 15px; line-height: 1.5; }

/* A chi si rivolge: fascia scura */
.pt_band { background: #3e1a09; color: #fff; }
.pt_band h2, .pt_band h3 { color: #fff; }
.pt_band .pt_muted { color: rgba(255,255,255,0.7); max-width: 360px; }
.pt_split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
.pt_audience { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.pt_audience li { border-top: 2px solid #febb00; padding-top: 14px; }
.pt_audience p { color: rgba(255,255,255,0.72); font-size: 15px; line-height: 1.5; }

/* Vantaggi */
.pt_perks { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.pt_perk { background: #fff; border-radius: 17px; padding: 22px; box-shadow: 0 4px 16px rgba(62,26,9,0.06); }
.pt_perk p { color: #8a7060; font-size: 15px; line-height: 1.5; }
.pt_perk--main { grid-row: span 2; background: #febb00; box-shadow: none; display: flex; flex-direction: column; justify-content: flex-end; min-height: 220px; }
.pt_perk--main h3 { font-size: clamp(28px, 4vw, 38px); font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 10px; }
.pt_perk--main p { color: rgba(62,26,9,0.8); font-size: 16px; }

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

/* Candidatura */
.pt_apply { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; background: #fff; border-radius: 26px; padding: 40px; box-shadow: 0 8px 28px rgba(62,26,9,0.08); margin-bottom: 40px; }
.pt_apply_intro p { color: #8a7060; line-height: 1.5; }
.pt_form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pt_form[hidden], .pt_sent[hidden], .pt_error[hidden] { display: none; }
.pt_field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.pt_field--wide { grid-column: 1 / -1; }
.pt_field > span { font-size: 14px; font-weight: 800; }
.pt_field em { font-style: normal; font-weight: 500; color: #8a7060; }
.pt_field input, .pt_field select, .pt_field textarea { width: 100%; border: 1.5px solid rgba(62,26,9,0.15); border-radius: 14px; padding: 12px 14px; font-size: 16px; color: #3e1a09; background: #fff; outline: none; font-family: inherit; }
.pt_field select { appearance: none; -webkit-appearance: none; padding-right: 38px;
  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 14px center; }
.pt_field input:focus, .pt_field select:focus, .pt_field textarea:focus { border-color: #febb00; box-shadow: 0 0 0 3px rgba(254,187,0,0.3); }
.pt_check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #8a7060; margin: 0; }
.pt_check input { margin-top: 3px; width: 18px; height: 18px; accent-color: #3e1a09; flex: 0 0 auto; }
.pt_check a { color: #3e1a09; text-decoration: underline; }
.pt_error { background: #fff1ec; color: #a2390c; border-radius: 12px; padding: 12px 14px; font-weight: 700; font-size: 14px; }
.pt_sent { align-self: center; background: #fff9e0; border-radius: 17px; padding: 26px; }
.pt_sent p { color: rgba(62,26,9,0.8); line-height: 1.5; }

/* Confronto referral / partner / creator (static-sections/collaborations.ejs), anche su /creator */
.pt_compare_wrap { padding-bottom: 56px; }
.pt_page .pt_compare_title { font-size: clamp(22px, 3vw, 28px); margin-bottom: 16px; }
.pt_compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pt_compare_col { display: flex; flex-direction: column; gap: 16px; background: #fff; border-radius: 22px; padding: 24px; border: 2px solid transparent; box-shadow: 0 4px 16px rgba(62,26,9,0.06); }
.pt_compare_col--here { border-color: #febb00; }
.pt_compare_who { font-size: 13px; font-weight: 800; color: #8a7060; margin-bottom: 2px !important; }
.pt_compare_name { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 22px; font-weight: 900; letter-spacing: -0.01em; }
.pt_compare_here { font-size: 12px; font-weight: 800; background: #febb00; border-radius: 50px; padding: 5px 11px; white-space: nowrap; letter-spacing: 0; }
.pt_compare_link { margin-top: auto; align-self: flex-start; }
.pt_compare_rule { margin-top: 14px !important; font-size: 15px; font-weight: 700; color: #8a7060; }
.pt_checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pt_checks li { position: relative; padding-left: 30px; line-height: 1.45; font-size: 15px; }
.pt_checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: #febb00 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' fill='none' stroke='%233e1a09' stroke-width='2.2'/%3E%3C/svg%3E") no-repeat center; }

@media (max-width: 991px) {
  .pt_page { padding-top: 8px; }
  .pt_hero { grid-template-columns: 1fr; gap: 36px; padding-top: 20px; }
  .pt_pass { transform: rotate(1.5deg); }
  .pt_steps { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .pt_steps li:nth-child(2)::after { display: none; }
  .pt_split, .pt_apply, .pt_compare { grid-template-columns: 1fr; gap: 26px; }
  .pt_compare { gap: 14px; }
  .pt_perks { grid-template-columns: 1fr 1fr; }
  .pt_perk--main { grid-row: auto; grid-column: 1 / -1; min-height: 0; }
}
@media (max-width: 640px) {
  .pt_section { padding-top: 36px; padding-bottom: 36px; }
  .pt_lead { font-size: 17px; }
  .pt_steps { grid-template-columns: 1fr; gap: 0; }
  .pt_steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 0 0 26px; }
  .pt_steps li:not(:last-child)::after { display: block !important; top: 50px; bottom: 6px; left: 21px; right: auto; border-top: 0; border-left: 2px dashed rgba(62,26,9,0.2); }
  .pt_steps li:last-child::after { display: none !important; }
  .pt_step_num { grid-row: span 2; margin: 0; }
  .pt_audience, .pt_perks, .pt_form { grid-template-columns: 1fr; }
  .pt_apply { padding: 26px 20px; border-radius: 22px; }
  .pt_compare_col { padding: 22px 20px; }
  .pt_compare_wrap { padding-bottom: 36px; }
  .pt_hero_cta .pt_btn { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .pt_faq summary::after { transition: none; }
}
.pt_trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.pt_error a { color: #a2390c; text-decoration: underline; }
.pt_btn:disabled { opacity: .6; cursor: wait; }
.pt_field [aria-invalid="true"] { border-color: #a2390c; }
