/* Area clienti pubblica — layout coordinato alla vetrina e al logo del negozio. */
:root{
  --customer-primary:var(--logo-primary,#28a9e0);
  --customer-primary-dark:var(--logo-primary-dark,#147aa8);
  --customer-primary-faint:var(--logo-primary-faint,#edf8fc);
  --customer-accent:var(--logo-accent,#e94b4b);
  --customer-text:#17384b;
  --customer-muted:#607784;
  --customer-line:#cfe2eb;
  --customer-bg:#f4f9fc;
  --customer-card:#fff;
  --customer-shadow:0 18px 48px rgba(22,79,106,.11);
}
body.customer-area-body{
  min-height:100vh;
  margin:0;
  background:
    radial-gradient(circle at 8% 2%,color-mix(in srgb,var(--customer-primary) 12%,transparent),transparent 34rem),
    linear-gradient(180deg,#fff 0%,var(--customer-bg) 100%);
  color:var(--customer-text);
  font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
}
.customer-area-shell{width:min(1180px,calc(100% - 36px));margin-inline:auto}
.customer-area-header{padding:18px 0 0}
.customer-area-header-inner{
  min-height:124px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:14px 20px;
  background:rgba(255,255,255,.96);
  border:1px solid var(--customer-line);
  border-radius:22px;
  box-shadow:0 10px 28px rgba(22,79,106,.07);
}
.customer-area-brand{display:flex;align-items:center;gap:14px;min-width:0;text-decoration:none;color:inherit}
.customer-area-logo{
  width:204px;
  height:96px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  padding:6px 10px;
  background:#fff;
  border-radius:12px;
}
.customer-area-logo img{width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;object-position:center;display:block}
.customer-area-brand-copy{display:flex;flex-direction:column;min-width:0}
.customer-area-brand-copy strong{font-size:26px;line-height:1;font-weight:900;color:var(--customer-primary-dark);letter-spacing:-.025em}
.customer-area-brand-copy small{margin-top:6px;color:var(--customer-muted);font-size:12px;font-weight:700}
.customer-area-nav{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end}
.customer-area-nav a,.customer-area-nav button{
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  border:1px solid var(--customer-line);
  border-radius:12px;
  background:#fff;
  color:var(--customer-primary-dark);
  font-weight:850;
  text-decoration:none;
  box-shadow:none;
}
.customer-area-nav a:hover,.customer-area-nav button:hover{background:var(--customer-primary-faint);border-color:var(--customer-primary)}
.customer-auth-main{padding:48px 0 72px}
.customer-auth-layout{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(310px,.72fr);gap:28px;align-items:stretch}
.customer-auth-layout.is-single{grid-template-columns:minmax(0,690px);justify-content:center}
.customer-auth-card,.customer-auth-info{
  border:1px solid var(--customer-line);
  border-radius:24px;
  background:var(--customer-card);
  box-shadow:var(--customer-shadow);
}
.customer-auth-card{padding:38px 40px}
.customer-auth-card h1{margin:0 0 12px;font-size:clamp(36px,4vw,52px);line-height:1.02;letter-spacing:-.045em;color:var(--customer-primary-dark)}
.customer-auth-card>p{max-width:620px;margin:0 0 26px;color:var(--customer-text);font-size:16px;line-height:1.55}
.customer-auth-card .booking-alert{margin-bottom:18px}
.customer-auth-form{display:grid;gap:16px}
.customer-auth-form label{display:grid;gap:7px;color:var(--customer-text);font-weight:800}
.customer-auth-form input{
  width:100%;
  min-height:50px;
  padding:12px 14px;
  border:1px solid #bfd3dd;
  border-radius:11px;
  background:#fff;
  color:var(--customer-text);
  font:inherit;
  outline:none;
}
.customer-auth-form input:focus{border-color:var(--customer-primary);box-shadow:0 0 0 4px color-mix(in srgb,var(--customer-primary) 15%,transparent)}
.customer-primary-button{
  min-height:50px;
  width:100%;
  border:0;
  border-radius:12px;
  background:var(--customer-primary);
  color:#fff;
  font-weight:900;
  font-size:16px;
  cursor:pointer;
  box-shadow:0 12px 24px color-mix(in srgb,var(--customer-primary) 22%,transparent);
}
.customer-primary-button:hover{background:var(--customer-primary-dark)}
.customer-auth-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px}
.customer-auth-actions.one{grid-template-columns:1fr}
.customer-auth-actions a{
  min-height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  text-align:center;
  border:1px solid var(--customer-line);
  border-radius:12px;
  background:#fff;
  color:var(--customer-primary-dark);
  font-weight:850;
  text-decoration:none;
}
.customer-auth-actions a:hover{background:var(--customer-primary-faint);border-color:var(--customer-primary)}
.customer-auth-info{
  position:relative;
  overflow:hidden;
  padding:36px;
  background:linear-gradient(145deg,var(--customer-primary-dark),var(--customer-primary));
  color:#fff;
}
.customer-auth-info::after{content:"";position:absolute;width:240px;height:240px;border-radius:50%;right:-90px;bottom:-100px;background:rgba(255,255,255,.10)}
.customer-auth-info h2{position:relative;margin:0 0 10px;font-size:30px;line-height:1.08;letter-spacing:-.035em}
.customer-auth-info>p{position:relative;margin:0 0 26px;color:rgba(255,255,255,.88);line-height:1.55}
.customer-auth-benefits{position:relative;display:grid;gap:12px;margin:0;padding:0;list-style:none}
.customer-auth-benefits li{display:grid;grid-template-columns:34px 1fr;gap:11px;align-items:start;padding:13px;border:1px solid rgba(255,255,255,.22);border-radius:14px;background:rgba(255,255,255,.10)}
.customer-auth-benefits span{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#fff;color:var(--customer-primary-dark);font-weight:900}
.customer-auth-benefits b{display:block;margin-bottom:2px}
.customer-auth-benefits small{color:rgba(255,255,255,.82);line-height:1.35}
.customer-area-footer{padding:0 0 28px;text-align:center}
.customer-area-footer a{color:var(--customer-primary-dark);font-weight:800;text-decoration:none}

/* Pannello cliente: stessa testata, senza doppio logo. */
body.customer-dashboard-body .storefront{width:min(1180px,calc(100% - 36px));margin-inline:auto}
body.customer-dashboard-body .client-portal-card{border-color:var(--customer-line);box-shadow:var(--customer-shadow)}
body.customer-dashboard-body .client-portal-card h1{color:var(--customer-primary-dark)}
body.customer-dashboard-body .client-portal-tabs a{border-color:var(--customer-line);color:var(--customer-primary-dark);background:#fff}
body.customer-dashboard-body .client-portal-tabs a:hover{background:var(--customer-primary-faint);border-color:var(--customer-primary)}

@media(max-width:860px){
  .customer-area-header-inner{min-height:108px;padding:12px 14px}
  .customer-area-logo{width:176px;height:84px;padding:4px 7px}
  .customer-area-brand-copy strong{font-size:22px}
  .customer-auth-layout{grid-template-columns:1fr}
  .customer-auth-info{order:2}
}
@media(max-width:620px){
  .customer-area-shell{width:calc(100% - 22px)}
  .customer-area-header{padding-top:10px}
  .customer-area-header-inner{align-items:center;gap:10px;border-radius:16px}
  .customer-area-logo{width:152px;height:74px;padding:3px 5px}
  .customer-area-brand-copy{display:none}
  .customer-area-nav a,.customer-area-nav button{min-height:40px;padding:8px 11px;font-size:13px}
  .customer-auth-main{padding:22px 0 44px}
  .customer-auth-card,.customer-auth-info{border-radius:18px}
  .customer-auth-card{padding:24px 20px}
  .customer-auth-card h1{font-size:36px}
  .customer-auth-actions{grid-template-columns:1fr}
  .customer-auth-info{padding:26px 22px}
  .customer-auth-info h2{font-size:26px}
}
.customer-auth-form .privacy-check{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:start;
  gap:10px;
  font-weight:700;
  line-height:1.45;
}
.customer-auth-form .privacy-check input{width:18px;height:18px;min-height:0;margin:2px 0 0;padding:0}
.customer-auth-form .privacy-check a{color:var(--customer-primary-dark);text-decoration:underline}

/* FIX 2026-07-12 — logo scontornato, più grande e contenuto sopra/sotto. */
.customer-area-header-inner{
  min-height:154px;
}
.customer-area-logo{
  width:240px;
  height:128px;
  padding:4px 8px;
  background:transparent;
  overflow:visible;
}
.customer-area-logo img{
  object-fit:contain;
  object-position:center;
  filter:none;
}
@media(max-width:860px){
  .customer-area-header-inner{min-height:132px}
  .customer-area-logo{width:210px;height:112px;padding:3px 6px}
}
@media(max-width:620px){
  .customer-area-header-inner{min-height:116px}
  .customer-area-logo{width:178px;height:98px;padding:2px 4px}
}

/* FIX 2026-07-12 — area clienti: logo interamente contenuto nella testata.
 * L'effetto a cavallo della linea resta esclusivo della home vetrina.
 */
body.customer-area-body .customer-area-header{
  padding-top:18px;
}
body.customer-area-body .customer-area-header-inner{
  min-height:176px;
  padding:16px 20px;
  overflow:hidden;
  align-items:center;
}
body.customer-area-body .customer-area-brand{
  align-self:stretch;
  display:flex;
  align-items:center;
}
body.customer-area-body .customer-area-logo{
  position:static;
  width:230px;
  height:142px;
  max-width:230px;
  max-height:142px;
  min-width:0;
  padding:0;
  margin:0;
  overflow:hidden;
  background:transparent;
  border:0;
  box-shadow:none;
  transform:none;
}
body.customer-area-body .customer-area-logo img{
  position:static;
  display:block;
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  object-position:center;
  margin:0;
  padding:0;
  transform:none;
}
body.customer-area-body .customer-auth-main{
  padding-top:34px;
}

@media(max-width:860px){
  body.customer-area-body .customer-area-header-inner{
    min-height:154px;
    padding:14px 16px;
  }
  body.customer-area-body .customer-area-logo{
    width:204px;
    height:124px;
    max-width:204px;
    max-height:124px;
  }
  body.customer-area-body .customer-auth-main{padding-top:28px}
}

@media(max-width:620px){
  body.customer-area-body .customer-area-header{padding-top:10px}
  body.customer-area-body .customer-area-header-inner{
    min-height:126px;
    padding:10px 12px;
    overflow:hidden;
  }
  body.customer-area-body .customer-area-logo{
    width:158px;
    height:100px;
    max-width:158px;
    max-height:100px;
  }
  body.customer-area-body .customer-auth-main{padding-top:22px}
}

/* FIX DEFINITIVO 2026-07-12 — area clienti: logo intero, grande e mai tagliato.
 * Il box segue quasi il rapporto reale del PNG; l'immagine mantiene il proprio
 * rapporto e non viene più allargata in altezza oltre il contenitore.
 */
body.customer-area-body .customer-area-header-inner{
  min-height:214px!important;
  padding:12px 20px!important;
  overflow:visible!important;
}
body.customer-area-body .customer-area-brand{
  min-height:190px!important;
  align-self:center!important;
  overflow:visible!important;
}
body.customer-area-body .customer-area-logo{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:220px!important;
  height:190px!important;
  max-width:220px!important;
  max-height:190px!important;
  flex:0 0 220px!important;
  overflow:visible!important;
  padding:0!important;
  margin:0!important;
  background:transparent!important;
}
body.customer-area-body .customer-area-logo > img{
  display:block!important;
  width:auto!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
}
body.customer-area-body .customer-auth-main{
  padding-top:36px!important;
}

@media(max-width:860px){
  body.customer-area-body .customer-area-header-inner{
    min-height:188px!important;
    padding:10px 16px!important;
  }
  body.customer-area-body .customer-area-brand{min-height:166px!important}
  body.customer-area-body .customer-area-logo{
    width:192px!important;
    height:166px!important;
    max-width:192px!important;
    max-height:166px!important;
    flex-basis:192px!important;
  }
}

@media(max-width:620px){
  body.customer-area-body .customer-area-header-inner{
    min-height:150px!important;
    padding:8px 12px!important;
  }
  body.customer-area-body .customer-area-brand{min-height:132px!important}
  body.customer-area-body .customer-area-logo{
    width:152px!important;
    height:132px!important;
    max-width:152px!important;
    max-height:132px!important;
    flex-basis:152px!important;
  }
  body.customer-area-body .customer-auth-main{padding-top:24px!important}
}
