/* L.1350 Owner visual amendments. Preserve previous approved identity and all
   existing link destinations. Screen-reader carousel positions remain available. */

/* Counters disappear visually in ALL image / archive / Brand carousels. */
body.ama-site :is(
 [data-ama-brand-count],[data-ama-mortari-count],[data-ama-peirano-count],
 .ama-mortari-archive-counter,.ama-brand-home-count,
 .ama-gallery-dialog [data-gallery-counter],
 .ama-gallery-dialog [data-counter],
 .ama-photo-carousel-count,.ama-medicalshop-counter,
 .ama-home-hero__count,.ama-home-hero__counter,
 .ama-photo-count,.ama-gallery-count
){
 position:absolute!important;width:1px!important;height:1px!important;
 padding:0!important;margin:-1px!important;overflow:hidden!important;
 clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;
 white-space:nowrap!important;border:0!important;
}

/* Screenshot 1: elegant centered on-duty territory selector. */
body.ama-site #farmacie-di-turno{
 padding-block:clamp(32px,4vw,60px)!important;
 background:linear-gradient(125deg,#e7efe7 0%,#f7f8f3 49%,#e0edf0 100%)!important;
}
body.ama-site #farmacie-di-turno .ama-section-head{
 max-width:880px!important;margin:0 auto 26px!important;text-align:center!important;
 display:flex!important;flex-direction:column!important;align-items:center!important;
}
body.ama-site #farmacie-di-turno .ama-section-head>*{
 width:100%!important;max-width:none!important;text-align:center!important;
}
body.ama-site #farmacie-di-turno .ama-section-head h2{
 font-family:Georgia,'Times New Roman',serif!important;
 font-weight:700!important;font-size:clamp(2rem,3.3vw,3.5rem)!important;
 line-height:1.12!important;letter-spacing:-.027em!important;color:#315645!important;
}
body.ama-site #farmacie-di-turno .ama-section-head p{
 font-size:clamp(1rem,1.14vw,1.13rem)!important;line-height:1.5!important;
}
body.ama-site #farmacie-di-turno .ama-review-branches{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 gap:clamp(12px,2vw,24px)!important;align-items:stretch!important;
}
body.ama-site #farmacie-di-turno .ama-review-card{
 position:relative!important;isolation:isolate!important;overflow:hidden!important;
 min-height:232px!important;
 display:flex!important;flex-direction:column!important;align-items:center!important;
 justify-content:center!important;
 text-align:center!important;
 padding:30px clamp(18px,2.8vw,46px)!important;
 border-radius:22px!important;
 border:1px solid rgba(64,99,77,.22)!important;
 box-shadow:0 15px 32px rgba(38,61,47,.10)!important;
 background:linear-gradient(145deg,rgba(248,254,248,.98),rgba(215,233,219,.90))!important;
}
body.ama-site #farmacie-di-turno .ama-review-card:nth-child(2){
 background:linear-gradient(145deg,rgba(248,253,255,.98),rgba(211,232,244,.93))!important;
 border-color:rgba(65,99,122,.2)!important;
}
body.ama-site #farmacie-di-turno .ama-review-card::before{
 content:"";position:absolute;right:-48px;top:-72px;width:205px;height:205px;
 border:20px solid rgba(67,118,97,.07);border-radius:50%;z-index:-1;pointer-events:none;
}
body.ama-site #farmacie-di-turno .ama-review-card::after{
 content:"+";position:absolute;left:26px;bottom:10px;
 font:800 116px/1 Georgia,serif;color:rgba(79,141,115,.09);
 z-index:-1;pointer-events:none;
}
body.ama-site #farmacie-di-turno .ama-review-card>*{
 margin-inline:auto!important;text-align:center!important;
}
body.ama-site #farmacie-di-turno .ama-review-card h3{
 font-family:Georgia,'Times New Roman',serif!important;
 font-size:clamp(1.4rem,2vw,2.1rem)!important;
 line-height:1.17!important;color:#344f3f!important;margin:0 0 8px!important;
}
body.ama-site #farmacie-di-turno .ama-review-card p{
 font-size:1rem!important;color:#55675b!important;margin:0 0 18px!important;
}
body.ama-site #farmacie-di-turno .ama-review-card .ama-button{
 display:inline-flex!important;justify-content:center!important;align-items:center!important;
 width:auto!important;min-width:min(100%,285px)!important;
 max-width:100%!important;min-height:54px!important;
 margin:0 auto!important;padding:12px 21px!important;
 border-radius:14px!important;text-align:center!important;
 font-size:1.04rem!important;font-weight:800!important;line-height:1.2!important;
 white-space:normal!important;
}
@media(max-width:680px){
 body.ama-site #farmacie-di-turno .ama-review-branches{
  grid-template-columns:minmax(0,1fr)!important;
 }
 body.ama-site #farmacie-di-turno .ama-review-card{min-height:210px!important}
}

/* Screenshot 2: footer 2 rows only, links + icons/copyright sharing the bottom row. */
body.ama-site footer.ama-footer .ama-footer-details{
 margin-top:5px!important;padding-top:4px!important;
 border-top:1px solid rgba(255,255,255,.26)!important;
}
body.ama-site footer.ama-footer .ama-footer-company{
 margin:0 0 3px!important;font-size:.83rem!important;
 line-height:1.3!important;color:#dce5dd!important;
}
body.ama-site footer.ama-footer .ama-footer-final-row{
 display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
 align-items:center!important;gap:12px!important;
}
body.ama-site footer.ama-footer .ama-footer-final-row>.ama-footer-legal{
 display:block!important;width:auto!important;
 padding:0!important;margin:0!important;border:0!important;
 min-width:0!important;
}
body.ama-site footer.ama-footer .ama-footer-legal>p,
body.ama-site footer.ama-footer .ama-footer-legal>p:first-child{
 display:flex!important;align-items:center!important;flex-wrap:wrap!important;
 gap:2px 7px!important;
 min-height:0!important;margin:0!important;padding:0!important;
 border:0!important;background:none!important;
}
body.ama-site footer.ama-footer .ama-footer-legal>p a,
body.ama-site footer.ama-footer .ama-footer-legal>p:first-child a{
 display:inline-flex!important;width:auto!important;min-height:36px!important;
 padding:4px 2px!important;margin:0!important;
 font-size:.84rem!important;line-height:1.25!important;
 text-decoration:underline!important;
}
body.ama-site footer.ama-footer .ama-footer-final-row>.ama-footer-bottom{
 display:flex!important;align-items:center!important;justify-content:flex-end!important;
 flex-direction:row!important;flex-wrap:nowrap!important;
 gap:14px!important;border:0!important;
 margin:0!important;padding:0!important;min-width:0!important;
}
body.ama-site footer.ama-footer .ama-footer-bottom .ama-socials{
 display:flex!important;align-items:center!important;gap:7px!important;
}
body.ama-site footer.ama-footer .ama-footer-bottom .ama-social-icon{
 width:39px!important;height:39px!important;min-height:39px!important;
 flex:0 0 39px!important;
}
body.ama-site footer.ama-footer .ama-footer-bottom small{
 flex:0 0 auto!important;white-space:nowrap!important;color:#dce5dd!important;
 font-size:.81rem!important;
}
@media(max-width:990px){
 body.ama-site footer.ama-footer .ama-footer-final-row{
  grid-template-columns:minmax(0,1fr)!important;gap:6px!important;
 }
 body.ama-site footer.ama-footer .ama-footer-final-row>.ama-footer-bottom{
  justify-content:flex-end!important;flex-wrap:wrap!important;gap:10px!important;
 }
}
@media(max-width:500px){
 body.ama-site footer.ama-footer .ama-footer-legal>p a{min-height:39px!important}
 body.ama-site footer.ama-footer .ama-footer-final-row>.ama-footer-bottom{
  justify-content:space-between!important;
 }
}

/* Screenshot 3: filter bar removed in PHP; no abandoned space. */
body.ama-site .ama-laboratorio #preparazioni-laboratorio .ama-lab-prep-list{
 margin-top:clamp(12px,1.6vw,22px)!important;
}
body.ama-site .ama-laboratorio #preparazioni-laboratorio .ama-lab-filter-empty,
body.ama-site .ama-laboratorio #preparazioni-laboratorio .ama-lab-filters{
 display:none!important;
}

/* Screenshot 5: 4 same-size reservation/WhatsApp buttons in each Services detail. */
body.ama-site .ama-services-page .ama-service-links{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 align-items:stretch!important;gap:10px!important;
}
body.ama-site .ama-services-page .ama-service-links>.ama-service-booking-link{
 box-sizing:border-box!important;display:flex!important;
 justify-content:center!important;align-items:center!important;
 flex:none!important;width:100%!important;max-width:none!important;
 min-width:0!important;min-height:52px!important;height:100%!important;
 padding:10px 13px!important;margin:0!important;
 text-align:center!important;white-space:normal!important;
 line-height:1.25!important;font-size:clamp(.86rem,1.04vw,.99rem)!important;
 font-weight:800!important;border-radius:13px!important;
}
@media(max-width:700px){
 body.ama-site .ama-services-page .ama-service-links{
  grid-template-columns:minmax(0,1fr)!important;
 }
 body.ama-site .ama-services-page .ama-service-links>.ama-service-booking-link{
  min-height:49px!important;
 }
}
/* L1353 real-Chrome refinement: a visually hidden counter must also lose
   its previous min-width and flex-basis (Brand was still reserving 92px). */
body.ama-site :is(
 [data-ama-brand-count],[data-ama-mortari-count],[data-ama-peirano-count],
 .ama-mortari-archive-counter,.ama-brand-home-count,
 .ama-gallery-dialog [data-gallery-counter],
 .ama-gallery-dialog [data-counter],
 .ama-photo-carousel-count,.ama-medicalshop-counter,
 .ama-home-hero__count,.ama-home-hero__counter,
 .ama-photo-count,.ama-gallery-count
){
 min-width:0!important;min-height:0!important;
 max-width:1px!important;max-height:1px!important;
 flex:0 0 1px!important;
 opacity:0!important;pointer-events:none!important;
}

/* L1354-SERVIZI: owner wants one elegant headline and six truly uniform,
   smaller service previews; full detail remains on /servizi/. */
body.ama-site.home #servizi>.ama-shell{
 width:min(1540px,calc(100% - 40px))!important;max-width:none!important;
}
body.ama-site.home #servizi .ama-section-head{
 width:100%!important;max-width:100%!important;margin-inline:auto!important;
}
body.ama-site.home #servizi .ama-section-head>h2{
 max-width:none!important;width:100%!important;
 font-size:clamp(27px,2.7vw,42px)!important;
 line-height:1.12!important;letter-spacing:-.034em!important;
}
@media(min-width:1120px){
 body.ama-site.home #servizi .ama-section-head>h2{
  white-space:nowrap!important;
 }
}
body.ama-site.home #servizi .ama-services-grid{
 display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
 grid-auto-rows:1fr!important;gap:15px!important;align-items:stretch!important;
}
body.ama-site.home #servizi .ama-services-grid>.ama-service-card{
 display:flex!important;box-sizing:border-box!important;
 width:100%!important;min-width:0!important;height:100%!important;
 min-height:215px!important;margin:0!important;
 padding:clamp(16px,1.5vw,23px)!important;
 border-radius:18px!important;
}
body.ama-site.home #servizi .ama-services-grid>.ama-service-card>div{
 display:flex!important;flex-direction:column!important;align-items:flex-start!important;
 width:100%!important;height:100%!important;min-width:0!important;
}
body.ama-site.home #servizi .ama-services-grid h3{
 font-size:clamp(1.04rem,1.35vw,1.34rem)!important;
 line-height:1.22!important;margin:5px 0 11px!important;
}
body.ama-site.home #servizi .ama-services-grid ul{
 margin:0!important;padding-inline-start:19px!important;
 display:grid!important;gap:4px!important;
}
body.ama-site.home #servizi .ama-services-grid li{
 font-size:clamp(.9rem,1vw,.99rem)!important;line-height:1.33!important;
}
body.ama-site.home #servizi .ama-services-grid .ama-text-link{
 margin-top:auto!important;display:inline-flex!important;
}
@media(max-width:1040px){
 body.ama-site.home #servizi .ama-services-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
 }
 body.ama-site.home #servizi .ama-section-head>h2{white-space:normal!important}
}
@media(max-width:620px){
 body.ama-site.home #servizi>.ama-shell{
  width:calc(100% - 28px)!important;
 }
 body.ama-site.home #servizi .ama-services-grid{
  grid-template-columns:1fr!important;
 }
 body.ama-site.home #servizi .ama-services-grid>.ama-service-card{
  min-height:0!important;
 }
}

