/* Correzioni fotografiche dal PDF HOME. Proporzioni originali, senza ritagli. */
:root{--pad:clamp(1.25rem,4vw,4rem)}
body{line-height:1.8}
.container{max-width:1280px}
h1,h2,h3{line-height:1.18;text-wrap:balance}
h1{font-size:clamp(2.8rem,5vw,5rem)}
h2{font-size:clamp(2.15rem,3.7vw,3.7rem)}
p{margin-bottom:1.15em;text-wrap:pretty}
p:last-child{margin-bottom:0}
p:empty{display:none}
.header-inner{min-height:118px;padding-block:1.5rem;gap:1.75rem}
.brand-logo{width:clamp(205px,19vw,245px);height:auto;max-height:none}
.site-nav{line-height:1.5;font-size:.78rem;gap:clamp(.45rem,.85vw,1rem)}
.site-nav>a:not(.nav-cta){white-space:nowrap;padding-block:.6rem}
.section{padding-block:clamp(2.75rem,5vw,4.5rem)}
.section+.section:not(.services-section):not(.colors-section):not(.form-section){padding-top:clamp(1.5rem,3vw,2.5rem)}
.section-heading{margin-bottom:1.75rem}
.section-heading p{font-size:1.05rem;line-height:1.8}
.intro p,.prose-grid p,.long-copy p,.editorial-grid p,.prose-narrow p{font-size:1.04rem;line-height:1.85;margin-bottom:1.15em}
.intro p,.prose-grid p,.long-copy p{text-align:justify;text-align-last:left;hyphens:auto;overflow-wrap:break-word}
/* Ogni fotografia mantiene il rapporto nativo. Il riquadro non impone un taglio. */
.page-heading-image img,.service-image img,.editorial-grid img,.gallery-grid img,.delivery-photo img,.prose-side img{
 display:block;width:auto;height:auto;min-height:0;max-width:min(100%,var(--source-width,100%));object-fit:contain;transform:none}
.page-heading-grid{min-height:0;padding-block:2.5rem;gap:4%}
.page-heading-grid>div:first-child{padding-block:0}
.page-heading h1{font-size:clamp(2.7rem,4.7vw,4.7rem);margin:.9rem 0 1.2rem}
.page-heading p{font-size:1.06rem;line-height:1.8}
.page-heading-image{display:flex;align-items:center;justify-content:center;align-self:center;height:auto;max-height:none;overflow:visible}
.page-heading-image img{max-height:410px}
.page-heading-grid.text-only{min-height:0;padding-block:2.75rem}
.page-heading-grid.text-only>div:first-child{padding:0}
/* Le foto laterali restano sul lato indicato. Il testo può continuare sotto. */
.intro-grid.has-side-photo,.prose-grid.has-side-photo,.editorial-grid,.editorial-grid.reverse{display:flow-root}
.has-side-photo>.prose-side{float:left;width:29%;margin:0 clamp(1.75rem,4vw,3.5rem) 1.25rem 0}
.prose-side .eyebrow{margin-bottom:1.25rem}
.prose-side img{width:100%}
.has-side-photo>div:last-child{min-width:0}
.has-side-photo p,.has-side-photo h2{max-width:none}
.editorial-grid>div:first-child{float:left;width:40%;margin:0 clamp(1.75rem,4vw,3.5rem) 1.25rem 0}
.editorial-grid.reverse>div:first-child{float:right;margin:0 0 1.25rem clamp(1.75rem,4vw,3.5rem)}
.editorial-grid img,.editorial-grid:has(.long-copy) img{position:static;width:100%;height:auto}
.editorial-grid>.long-copy{display:block;max-width:none}
.editorial-grid .long-copy p{max-width:none}
/* La prima immagine della Home rimane intera anche sui telefoni. */
.hero{min-height:0;aspect-ratio:1672 / 941;background:var(--deep)}
.hero-media img{width:100%;height:100%;object-fit:contain;object-position:center}
.hero-inner{padding-block:3rem}
.hero-text{max-width:720px}
.hero h1{margin:1rem 0 1.25rem}
.hero p{font-size:1.06rem;line-height:1.8}
.actions{margin-top:1.5rem}
.service-grid{gap:1.5rem}
.service-card{min-height:0}
.service-image{display:flex;align-items:center;justify-content:center;overflow:visible}
.service-image img{max-height:320px;transition:none}
.service-image:hover img{transform:none}
.service-card>div{min-height:0;padding:clamp(1.15rem,2.1vw,1.8rem)}
.service-card h3{font-size:clamp(1.5rem,2vw,1.9rem);line-height:1.25}
.service-card p{font-size:.96rem;line-height:1.75}
.service-card .inline-link{font-size:.85rem;gap:.75rem}
.gallery-grid,.gallery-grid.two{gap:1.5rem;align-items:start}
.gallery-grid figure{min-width:0}
.gallery-grid img{max-height:390px;margin-inline:auto;background:transparent}
.funeral-gallery img{max-height:440px}
.gallery-grid figcaption{font-size:.85rem;line-height:1.65;padding-top:.7rem}
.delivery-layout{padding-block:2.75rem;gap:5%}
.delivery-layout>div:first-child{padding:0}
.delivery-photo{height:auto;align-self:center}
.delivery-photo img{width:100%;margin-inline:auto}
.values>div{min-height:0;padding:1.75rem}
.values p{max-width:none;line-height:1.8}
.language-section{padding-bottom:3rem}
.language-panel{padding:clamp(1.5rem,3vw,2.5rem)}
.contact-strip,.catalog-callout{padding-block:2.75rem}
.contact-strip .container,.catalog-callout .container{align-items:center}
.contact-strip .actions{margin-top:0}
.contact-grid{gap:clamp(2rem,5vw,4.5rem)}
.footer{padding-top:3rem}
.footer .brand-logo{width:235px;height:auto;max-height:none;margin-bottom:1.25rem}
.footer p{font-size:.94rem;line-height:1.8}
.footer-bottom{margin-top:2.5rem;flex-wrap:wrap}
@media(max-width:1120px){.service-image img{height:auto;min-height:0;max-height:300px}.service-card>div{min-height:0}}
@media(max-width:1050px){.header-inner{min-height:110px}.site-nav{font-size:1rem;gap:.5rem}.site-nav>a:not(.nav-cta){padding-block:.5rem}}
@media(max-width:850px){.page-heading-grid{padding-block:2rem;gap:1.75rem}.page-heading-grid>div:first-child{padding:0}.page-heading-image{height:auto;margin:0;max-width:100%;justify-self:center}.page-heading-image img{max-height:340px}.delivery-layout{padding-block:2.5rem;gap:1.75rem}.delivery-photo{height:auto;margin:0;max-width:100%}.contact-strip .container,.catalog-callout .container{align-items:flex-start}.has-side-photo>.prose-side{width:32%;margin-right:1.75rem}}
@media(max-width:760px){.editorial-grid>div:first-child,.editorial-grid.reverse>div:first-child{float:none;width:100%;margin:0 0 1.5rem}.editorial-grid img{max-height:440px;margin-inline:auto;width:auto}.editorial-grid:has(.long-copy) img{position:static;width:auto}.has-side-photo>.prose-side{float:none;width:100%;margin:0 0 1.5rem}.prose-side img{width:auto;max-height:360px;margin-inline:auto}.funeral-gallery img{height:auto}}
@media(max-width:620px){.header-inner{min-height:108px;padding-block:1.4rem}.brand-logo{width:205px}.hero{aspect-ratio:auto;align-items:flex-end}.hero-media img{height:auto;width:100%;object-position:top center}.hero-media:after{background:none}.hero-inner{padding-top:calc(100vw * 941 / 1672 + 1.75rem);padding-bottom:2.5rem}.hero h1{font-size:clamp(2.5rem,10vw,3.4rem)}.section{padding-block:2.75rem}.intro p,.prose-grid p,.long-copy p{text-align:left;font-size:1rem;line-height:1.85}.service-card{min-height:0}.service-card>div{padding:1rem;min-height:0}.service-card p{line-height:1.75}.service-image img{height:auto;min-height:0;max-height:300px}.gallery-grid img,.funeral-gallery img{height:auto;max-height:410px}.page-heading h1{font-size:2.65rem}.page-heading-image img{max-height:320px}.values>div{padding:1.5rem}.language-section{padding-bottom:2.75rem}.contact-strip .actions{width:100%}.footer .brand-logo{width:225px}.footer-copyright{white-space:normal}}
@media(max-width:390px){.service-image img{height:auto;min-height:0;max-height:300px}.service-card>div{min-height:0;padding:1.25rem}}
/* Ritmo tipografico unico: stessa interlinea e distanza fra paragrafi. */
#main p{font-size:1rem;line-height:1.8;margin-top:0;margin-bottom:1.1em;letter-spacing:normal;word-spacing:normal;text-wrap:wrap;white-space:normal}
#main p:last-child{margin-bottom:0}
#main :is(.intro,.prose-grid,.long-copy,.prose-narrow) p{hyphens:auto;overflow-wrap:break-word;text-align:justify;text-align-last:left}
/* Ogni paragrafo resta un rettangolo leggibile accanto alla foto;
   i paragrafi successivi recuperano la larghezza disponibile sotto di essa. */
#main .has-side-photo>div:last-child>p,#main .editorial-grid .long-copy>p{display:flow-root}
#main h1{line-height:1.16;margin-top:.85rem;margin-bottom:1.2rem}
#main h2{line-height:1.2;margin-top:.65rem;margin-bottom:1rem}
#main h3{line-height:1.3;margin-top:.4rem;margin-bottom:.65rem}
#main .eyebrow{line-height:1.5}
/* Serie fotografiche: stesso formato esterno e didascalie allineate.
   object-fit:contain conserva tutta la fotografia senza stiramenti o ritagli. */
#main .gallery-grid{align-items:start;gap:1.5rem}
#main .gallery-grid figure{display:flex;flex-direction:column;min-width:0}
#main .gallery-grid img{width:100%;height:auto;aspect-ratio:4 / 5;max-width:100%;max-height:none;min-height:0;object-fit:contain;object-position:center;background:#eeeee8;margin:0;padding:clamp(.5rem,1vw,.85rem)}
#main .funeral-gallery img{aspect-ratio:3 / 4}
#main .gallery-grid figcaption{line-height:1.6;padding-top:.65rem;margin:0}
@media(max-width:760px){#main .has-side-photo>div:last-child>p,#main .editorial-grid .long-copy>p{display:block}}
@media(max-width:620px){#main :is(.intro,.prose-grid,.long-copy,.prose-narrow) p{text-align:left;hyphens:auto}#main .gallery-grid{gap:1.25rem}#main .gallery-grid img{padding:.65rem}}
