/* --- VARIABILI & RESET --- */
@font-face {
  font-family: "Druk Text";
  src: url("fonts/DrukText-Medium.woff2") format('woff2'),
      url("fonts/DrukText-Medium.woff") format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "GT America Extended";
  src: url("fonts/GTAmerica-ExtendedRegular.woff2") format('woff2'),
      url("fonts/GTAmerica-ExtendedRegular.woff") format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-black: #111111;
  --color-white: #ffffff;
  --color-grey-light: #e5e5e5;
  --color-grey-text: #757575;
  --color-orange: #fa5400;
  --color-orange-hover: #d84800;
  --font-family: "GT America Extended", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-family-title: "Druk Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --spacing-unit: 16px;
  --border-radius: 30px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--color-black);
  background-color: var(--color-white);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --- UTILITY ACCESSIBILITÀ --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus ring visibile per navigazione tastiera */
*:focus-visible {
  outline: 2px solid #005fcc;
  outline-offset: 2px;
}

/* --- HEADER --- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-unit) 24px;
  background: var(--color-white);
	border-bottom:1px solid #ccc;
}

.logo svg {
  width: 60px;
  height: auto;
  display: block;
}

.header-controls {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
  font-weight: bold;
  align-items: center;
}

.header-controls {
  color: #666;
	font-weight:normal;
  text-decoration: none;
}

.header-controls span a{
  color: #000;
	font-weight:bold;
  text-decoration: none;
}

.header-controls span a:hover{
  color: #000;
	font-weight:bold;
  text-decoration: underline;
}

div.utility-content{
	color:#666;
	margin-left:20px;
}

div.utility-content a{
	color:#666;
	font-size:.8em;
	text-decoration:none;
}

div.utility-content a:hover{
	color:#666;
	text-decoration:underline;
}

div section#termini{
	margin-top:40px;
}

div section#termini h2 {
  font-family: var(--font-family-title);
  font-weight: 400;
  margin-bottom: 16px;
}

p#disclaimer{
	font-size: .8em;
	margin-bottom: 40px;	
} 

/* --- MAIN CONTENT --- */
main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px;
}

main.--thank {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
}

.page-title {
  text-align: center;
  margin-bottom: 80px;
}

main.--thank .page-title {
  margin-bottom: 0;
}

h1 {
  font-family: var(--font-family-title);
  font-size: 2rem;
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.subtitle {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-black);
  margin-bottom: 40px;
}

.subtitle a {
  color: #000;
  text-decoration: underline;
}

.subtitle a:hover{
  color: #000;
  text-decoration: none;
}

.main-ctas a{
  display: block;
  color: #000;
	font-weight:bold;
  text-decoration: underline;
}

.main-ctas a + a{
  margin-top: 20px;
}

.main-ctas a:hover{
  color: #000;
  text-decoration: none;
}

/* GRID LAYOUT */
.gift-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .gift-layout {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: start;
  }
}

/* COLONNA SINISTRA (Immagine) */
.design-section h2 {
  font-size: 1rem;
  margin-bottom: 16px;
  font-weight: 400;
}

.card-preview {
  width: 100%;
  aspect-ratio: 16/14;
  background-image: url("airdom-egiftcard.png");
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card-preview::after {
  color: white;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
}

.swoosh-overlay {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 120%;
  height: 100px;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 20%, transparent 20%);
  background-size: 4px 4px;
  transform: rotate(-15deg);
  opacity: 0.6;
  pointer-events: none;
}

/* COLONNA DESTRA (Controlli) */
.amount-section fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.amount-section legend {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 16px;
  display: block;
  width: 100%;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

/* STILE RADIO BUTTONS CUSTOM */
.radio-container {
  position: relative;
}

.radio-input {
  opacity: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 1;
}

.radio-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 8px;
  background: var(--color-white);
  border: 1px solid var(--color-grey-light);
  /* border-radius: var(--border-radius); */
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.radio-container:hover .radio-label {
  border-color: var(--color-black);
}

.radio-input:checked + .radio-label {
  background-color: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

.radio-input:focus-visible + .radio-label {
  outline: 2px solid #005fcc;
  outline-offset: 2px;
}

.other-amount {
  grid-column: span 2;
}

/* CTA BUTTON */
.cta-button {
  width: 100%;
  background-color: #cc0000;
  color: var(--color-white);
  border: none;
  padding: 18px;
  font-size: 1rem;
  font-family: var(--font-family-title);
  font-weight: 400;
  /* border-radius: var(--border-radius); */
  cursor: pointer;
  transition: background-color 0.2s;
  text-transform: uppercase;
}

.cta-button:hover {
  background-color: #d25050;
}

.mandatory-note {
  display: block;
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--color-grey-text);
}

/* --- FOOTER --- */
footer {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 40px 24px;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 0.75rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  border-top: 1px solid #333;
  padding-top: 20px;
}

.payment-icons {
  display: flex;
  gap: 8px;
}

.payment-placeholder {
  width: 30px;
  height: 20px;
  background: #fff;
  border-radius: 2px;
}