:root{
  --bg: linear-gradient(135deg, #faf8f3 0%, #f5f2ec 100%);
  --glass: rgba(255, 255, 255, 0.98);
  --glass-stroke: rgba(212, 175, 55, 0.12);
  --fg: #1e3a8a;
  --muted: #64748b;
  --gold: #d4af37;
  --gold-dark: #b8960c;
  --navy: #1e3a8a;
  --cream: #faf8f3;
  --success: #1d4ed8;
  --success-bg: #f0f5ff;
  --success-border: #93c5fd;
  --ring: #1e3a8a;
  --radius: 12px;
  --space: 24px;
  --shadow-sm: 0 2px 8px rgba(30, 58, 138, 0.06);
  --shadow: 0 8px 25px rgba(30, 58, 138, 0.10);
  --shadow-lg: 0 20px 40px rgba(30, 58, 138, 0.15);
  --maxw: 920px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

*{box-sizing:border-box}

html,body{height:100%}

body{
  margin:0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color:var(--fg);
  background: var(--bg);
  background-attachment: fixed;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a{
  color:inherit;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: var(--transition);
}

a:hover{
  color: var(--gold);
  text-decoration-color: var(--gold);
}

a:focus-visible{
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: 8px;
}

.fa-whatsapp:before{
  content: "📱";
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.wrap{
  min-height: 100dvh;
  display:grid;
  grid-template-rows:auto 1fr auto;
  padding: clamp(20px, 5vw, 32px);
  gap: clamp(24px, 6vw, 40px);
}

header{
  display: grid;
  place-items: center;
  padding-top: clamp(12px, 3vw, 20px);
  animation: fadeInUp 0.8s ease-out;
}

.logo{
  width: min(420px, 70vw);
  height: auto;
  filter: drop-shadow(0 8px 32px rgba(15, 23, 42, 0.08));
  user-select: none;
  transition: var(--transition);
}

.logo:hover{
  filter: drop-shadow(0 12px 40px rgba(15, 23, 42, 0.12));
  transform: scale(1.02);
}

.glass{
  max-width: var(--maxw);
  width:100%;
  margin-inline:auto;
  background: var(--glass);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(24px, 6vw, 40px);
  position:relative;
  overflow:hidden;
  text-align: center;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.card{
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: clamp(20px, 5vw, 28px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
  width: 100%;
}

.card:hover{
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.3);
}


h1{
  font-family: "Playfair Display", serif;
  font-size: clamp(36px, 8vw, 56px);
  margin: 0 0 clamp(20px, 5vw, 32px) 0;
  letter-spacing: -0.015em;
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
}


.grid{
  display: grid;
  gap: clamp(16px, 4vw, 24px);
  margin-top: 0;
  justify-items: center;
}

.row{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 16px);
  padding: clamp(8px, 2vw, 12px) 0;
  min-height: 44px;
  animation: rowFadeIn 0.6s ease-out forwards;
}

.row:nth-child(1) { animation-delay: 0.1s; }
.row:nth-child(2) { animation-delay: 0.2s; }
.row:nth-child(3) { animation-delay: 0.3s; }
.row:nth-child(4) { animation-delay: 0.4s; }

.row a{
  text-decoration: underline;
  color: var(--fg);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  font-weight: 500;
  transition: var(--transition);
  word-break: break-word;
}

.row a:hover{
  color: var(--navy);
  text-decoration-color: var(--gold);
}

.pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 12px);
  padding: clamp(12px, 3vw, 16px) clamp(16px, 4vw, 20px);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 999px;
  font-size: clamp(14px, 3.5vw, 16px);
  color: var(--navy);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  margin: 0 auto clamp(16px, 4vw, 20px) auto;
  animation: pilPulse 2s ease-in-out;
}

.pill:hover{
  box-shadow: var(--shadow);
  transform: translateY(-1px);
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold);
}

.cta{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: clamp(10px, 2.5vw, 14px);
  width: 100%;
  min-height: 56px;
  margin-top: clamp(16px, 4vw, 24px);
  text-decoration: none;
  padding: clamp(16px, 4vw, 20px) clamp(20px, 5vw, 28px);
  font-weight: 600;
  font-size: clamp(16px, 4vw, 18px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: var(--navy);
  color: #fff;
  touch-action: manipulation;
  transition: var(--transition);
}

.cta:hover{
  background: var(--gold-dark);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.cta:active{
  transform: translateY(0) scale(0.98);
}



.muted{
  color:var(--muted);
}

#hours{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(8px, 2vw, 12px) clamp(12px, 3vw, 16px);
  margin: clamp(16px, 4vw, 20px) auto 0 auto;
  font-size: clamp(14px, 3.5vw, 16px);
  font-variant-numeric: tabular-nums;
  max-width: 280px;
  width: 100%;
}

#hours > div{
  padding: clamp(8px, 2vw, 10px) 0;
  transition: var(--transition);
}

#hours > div:nth-child(2n){
  color: var(--navy);
  font-weight: 600;
}

#hours > div:nth-child(2n-1){
  color: var(--muted);
  font-weight: 500;
}

footer{
  text-align: center;
  padding: clamp(24px, 6vw, 32px) clamp(12px, 3vw, 16px);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--muted);
  font-size: clamp(12px, 3vw, 14px);
  line-height: 1.6;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.cookie-banner{
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(30, 58, 138, 0.96);
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  padding: clamp(16px, 4vw, 24px);
  z-index: 9999;
  box-shadow: 0 -8px 32px rgba(30, 58, 138, 0.15);
  display: none;
}

.cookie-banner.show{
  display: block;
  animation: slideInUp 0.3s ease-out;
}

.cookie-content{
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 4vw, 24px);
  flex-wrap: wrap;
}

.cookie-text{
  color: #fff;
  font-size: clamp(13px, 3vw, 15px);
  flex: 1;
  min-width: 200px;
}

.cookie-text a{
  color: var(--gold);
  text-decoration: underline;
}

.cookie-buttons{
  display: flex;
  gap: clamp(8px, 2vw, 12px);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-btn{
  padding: clamp(8px, 2vw, 12px) clamp(16px, 4vw, 20px);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: clamp(12px, 3vw, 14px);
  cursor: pointer;
  transition: var(--transition);
  touch-action: manipulation;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cookie-btn-accept{
  background: var(--gold);
  color: var(--navy);
}

.cookie-btn-accept:hover{
  background: #f1c40f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.cookie-btn-reject{
  background: rgba(255,255,255, 0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255, 0.2);
}

.cookie-btn-reject:hover{
  background: rgba(255,255,255, 0.25);
  transform: translateY(-2px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.card:nth-child(1) {
  animation: slideIn 0.6s ease-out 0.4s both;
}

.card:nth-child(2) {
  animation: slideIn 0.6s ease-out 0.6s both;
}


.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
  justify-content: center;
}

.competenze{
  margin-top: clamp(32px, 8vw, 48px);
  padding-top: clamp(24px, 6vw, 32px);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.competenze-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(12px, 3vw, 16px);
  margin-top: clamp(16px, 4vw, 20px);
}

.competenze-item{
  padding: clamp(14px, 3vw, 18px);
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius);
  color: var(--navy);
  transition: var(--transition);
  animation: competenzaSlide 0.5s ease-out forwards;
}

.competenze-item h3{
  margin: 0 0 8px 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}

.competenze-item p{
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.competenze-item:nth-child(1) { animation-delay: 0s; }
.competenze-item:nth-child(2) { animation-delay: 0.1s; }
.competenze-item:nth-child(3) { animation-delay: 0.2s; }
.competenze-item:nth-child(4) { animation-delay: 0.3s; }

.competenze-item:hover{
  background: rgba(212, 175, 55, 0.12);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--gold);
}

.footer-line{
  margin-top:12px;
  font-size:12px;
}

.footer-line:first-child{
  margin-top: 0;
}

.footer-actions{
  margin-top:8px;
  font-size:11px;
  opacity:0.7;
}

.footer-link{
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
  font: inherit;
  transition: var(--transition);
  position: relative;
  text-decoration: none;
}

.footer-link::after{
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.4s ease-out;
}

.footer-link:hover{
  color: var(--gold);
}

.footer-link:hover::after{
  width: 100%;
}

.footer-sep{
  margin: 0 6px;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: rgba(255, 255, 255, 0.95);
  border-radius: clamp(10px, 2.5vw, 14px);
  padding: clamp(12px, 3vw, 16px) clamp(16px, 4vw, 20px);
  min-height: 44px;
  font-size: clamp(14px, 3.5vw, 16px);
  font-weight: 500;
  color: var(--navy);
  transition: var(--transition);
  touch-action: manipulation;
}

.btn:hover{
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: var(--navy);
}

.btn:active{
  transform: translateY(0) scale(0.98);
}

@media (min-width:680px){
  .grid{
    grid-template-columns: 1fr 1fr;
  }
  .cta{
    width: max-content;
    padding-inline: clamp(28px, 6vw, 36px);
  }
}

.privacy-modal{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  z-index: 10000;
}

.privacy-modal.show{
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease-out;
}

.privacy-backdrop{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.privacy-content{
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-stroke);
  border-radius: var(--radius);
  padding: clamp(24px, 6vw, 40px);
  max-width: 600px;
  width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease-out;
}

.privacy-close{
  position: absolute;
  top: clamp(12px, 3vw, 20px);
  right: clamp(12px, 3vw, 20px);
  background: none;
  border: none;
  font-size: 32px;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  line-height: 1;
}

.privacy-close:hover{
  color: var(--fg);
  transform: scale(1.1);
}

.privacy-body{
  color: var(--fg);
  line-height: 1.8;
}

.privacy-body h2{
  font-size: clamp(20px, 5vw, 28px);
  margin: 0 0 clamp(12px, 3vw, 16px) 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--gold) 60%, var(--navy) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.privacy-body h3{
  font-size: clamp(14px, 4vw, 18px);
  margin: clamp(16px, 4vw, 24px) 0 clamp(8px, 2vw, 12px) 0;
  color: var(--navy);
  font-weight: 600;
}

.privacy-body p{
  font-size: clamp(13px, 3.5vw, 15px);
  margin: 0 0 clamp(12px, 3vw, 16px) 0;
  color: var(--fg);
}

.privacy-body ul{
  margin: 0 0 clamp(12px, 3vw, 16px) 0;
  padding-left: clamp(16px, 4vw, 24px);
  font-size: clamp(13px, 3.5vw, 15px);
}

.privacy-body li{
  margin-bottom: clamp(6px, 1.5vw, 8px);
  color: var(--fg);
}

.privacy-body code{
  background: rgba(212, 175, 55, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: var(--navy);
}

@keyframes slideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pilPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

@keyframes rowFadeIn {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes competenzaSlide {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes underlineSlide {
  from {
    width: 0;
    left: 0;
  }
  to {
    width: 100%;
    left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
