/* Capari Kitchen / Tavola V5 — mobile hero layout correction.
   Desktop untouched. The original V5 structure and checkout are preserved. */
@media(max-width:620px){
  .tavola-page .tavola-hero{width:100%;max-width:100%;overflow:clip}
  .tavola-page .hero-archline{padding:15px 18px 0}
  .tavola-page .hero-typography{
    padding:22px 18px 26px;
    width:100%;max-width:100%;
    overflow:hidden;box-sizing:border-box;
  }
  .tavola-page .hero-typography h1{
    font-size:clamp(35px,10.25vw,48px)!important;
    line-height:1.04!important;
    letter-spacing:-.067em!important;
    max-width:100%;margin:13px auto 12px!important;
    text-wrap:balance;overflow-wrap:normal;
  }
  .tavola-page .hero-typography p{
    font-size:11px;line-height:1.6;max-width:345px;
    overflow-wrap:break-word;
  }
  .tavola-page .tavola-mobile-picker{
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
    gap:7px;padding:13px 14px 14px;align-items:stretch;
    box-sizing:border-box;width:100%;position:relative;z-index:10;
  }
  .tavola-page .tavola-mobile-picker>span{
    grid-column:1/-1;max-width:none;letter-spacing:.16em;
    font-size:9px;line-height:1;margin-bottom:1px;
  }
  .tavola-page .tavola-mobile-picker button{
    min-width:0;min-height:43px;padding:10px 4px;
    font-size:9px;letter-spacing:.04em;
  }
  /* The mobile experience showcases only the chosen plate, as a real product feature.
     No desktop-positioned side plates overlap the printed receipt. */
  .tavola-page .tabletop{
    position:relative;isolation:isolate;
    width:100%;height:665px!important;min-height:665px;
    overflow:hidden;box-shadow:none!important;
  }
  .tavola-page .tabletop-cloth{
    inset:0!important;width:100%;height:100%;transform:none!important;
    background-size:78px 78px!important;
  }
  .tavola-page .tabletop-edge{inset:0!important}
  .tavola-page .tabletop-pasta-place,
  .tavola-page .tabletop-pizza-place,
  .tavola-page .tabletop-burger-place{
    position:absolute!important;
    inset:39px auto auto 50%!important;
    width:min(78vw,340px)!important;max-width:340px!important;
    height:330px!important;
    transform:translateX(-50%) rotate(-3deg)!important;
    display:none!important;
    z-index:5!important;
    align-items:flex-start;justify-content:center;
    pointer-events:none;
  }
  .tavola-page .tabletop[data-mobile-dish="pizza"] .tabletop-pizza-place,
  .tavola-page .tabletop[data-mobile-dish="pasta"] .tabletop-pasta-place,
  .tavola-page .tabletop[data-mobile-dish="burger"] .tabletop-burger-place{
    display:flex!important;
  }
  .tavola-page .tabletop-pasta-place .tabletop-dish,
  .tavola-page .tabletop-pizza-place .tabletop-dish,
  .tavola-page .tabletop-burger-place .tabletop-dish{
    display:block!important;width:100%;height:auto;
    aspect-ratio:1!important;filter:drop-shadow(0 11px 13px #251b1768);
    transform:none!important;
    transition:opacity .22s ease,filter .22s ease!important;
  }
  .tavola-page .tabletop-dish img{
    display:block;width:100%;height:100%;max-height:328px;
    object-fit:contain;transform:none!important;
  }
  .tavola-page .tabletop[data-mobile-dish="burger"] .tabletop-burger-place{
    top:42px!important;width:min(74vw,305px)!important;
  }
  .tavola-page .tabletop[data-mobile-dish="burger"] .dish-burger{aspect-ratio:1!important}
  .tavola-page .tabletop-marker.marker-top,
  .tavola-page .tabletop-marker.marker-bottom,
  .tavola-page .table-note-left,
  .tavola-page .tabletop-discover{
    display:none!important;
  }
  .tavola-page .tabletop-stamp{
    top:12px!important;right:12px!important;
    left:auto!important;width:56px!important;height:56px!important;
    z-index:8!important;transform:rotate(12deg);
  }
  .tavola-page .tabletop-stamp span{font-size:6px!important}
  .tavola-page .dish-caption{
    position:absolute;top:auto!important;right:7px!important;left:auto!important;
    bottom:17px!important;padding:8px 10px!important;
    font-size:8px!important;white-space:nowrap;z-index:9;
    transform:rotate(4deg)!important;
  }
  .tavola-page .tabletop-receipt{
    box-sizing:border-box;position:absolute;
    left:50%!important;right:auto!important;top:auto!important;
    bottom:26px!important;
    width:min(88%,372px)!important;min-height:0!important;
    padding:18px 20px 20px!important;
    transform:translateX(-50%) rotate(-1.1deg)!important;
    z-index:16!important;gap:8px;box-shadow:5px 9px 0 #3a272638;
  }
  .tavola-page .tabletop-receipt:hover{transform:translateX(-50%) rotate(-1.1deg)!important}
  .tavola-page .tabletop-receipt h2{
    font-size:clamp(36px,10vw,43px)!important;
    line-height:.92;margin:3px 0 1px!important;
  }
  .tavola-page .tabletop-receipt p{
    font-size:10px!important;line-height:1.45!important;
    max-width:100%;margin:2px 0!important;
  }
  .tavola-page .receipt-bottom{gap:10px}
  .tavola-page .receipt-bottom a{min-height:43px;padding:9px 12px;font-size:8px;white-space:nowrap}
  .tavola-page .tabletop-coaster{
    width:52px!important;height:52px!important;right:8px!important;
    bottom:13px!important;z-index:2!important;border-width:3px;
  }
  .tavola-page .tabletop-coaster span{font-size:7px!important}
  .tavola-page .tabletop-coaster b{font-size:5px!important}
  .tavola-page .hero-utility-row{overflow:hidden}
}
@media(max-width:365px){
  .tavola-page .hero-typography h1{font-size:clamp(34px,10.3vw,37px)!important}
  .tavola-page .tabletop{height:631px!important;min-height:631px}
  .tavola-page .tabletop-pasta-place,
  .tavola-page .tabletop-pizza-place,
  .tavola-page .tabletop-burger-place{
    top:27px!important;height:292px!important;width:min(81vw,305px)!important;
  }
  .tavola-page .tabletop-dish img{max-height:294px}
  .tavola-page .tabletop-receipt{bottom:19px!important;width:89%!important;padding:16px 16px 19px!important}
  .tavola-page .tabletop-receipt h2{font-size:36px!important}
  .tavola-page .tabletop-stamp{width:48px!important;height:48px!important}
}
@media(prefers-reduced-motion:reduce){
  .tavola-page .tabletop-dish,
  .tavola-page .tabletop-dish img{transition:none!important;animation:none!important}
}
/* Explicit mobile-only title line breaks, desktop retains original one-line text. */
.hero-break-mobile{display:none}
@media(max-width:620px){
  .tavola-page .hero-break-mobile{display:initial}
  .tavola-page .hero-typography h1{
    font-size:clamp(39px,11.5vw,53px)!important;
    line-height:.96!important;
    white-space:normal!important;
    width:100%;overflow:visible;
  }
  .tavola-page .hero-typography p{padding:0 4px}
}
@media(max-width:365px){
  .tavola-page .hero-typography h1{font-size:clamp(37px,11.4vw,43px)!important}
}