/* DigiDentale 3.8.9 — revisione coerente delle pagine interne.
   Caricato per ultimo: risolve i conflitti con le rifiniture precedenti. */
:root{--dd-editorial-ink:#143b45;--dd-editorial-muted:#526a71;--dd-editorial-green:#0e645c;--dd-editorial-border:#dce9e5;--dd-editorial-card:#fff}
body:not(.home) main{min-width:0}
body:not(.home) main section,
body:not(.home) main article,
body:not(.home) main figure,
body:not(.home) main .dd-inner-container{min-width:0}
body:not(.home) main h1,body:not(.home) main h2,body:not(.home) main h3,
body:not(.home) main p,body:not(.home) main a{overflow-wrap:break-word;hyphens:none}
body:not(.home) .dd-inner-section-heading{max-width:900px}
body:not(.home) .dd-inner-section-heading h2,
body:not(.home) .dd-inner-two-cols h2,
body:not(.home) .dd-inner-feature-copy h2{max-width:22ch;text-wrap:balance}
body:not(.home) .dd-inner-section-heading p{max-width:66ch}

/* Immagini dentro una cornice fotografica uniforme, mai immagini sciolte nel flusso. */
body:not(.home) .dd-inner-image-frame,
body:not(.home) .dd-inner-feature-photo,
body:not(.home) .dd-profile-approach-photo{
 position:relative;min-width:0;overflow:hidden;border:1px solid rgba(23,88,83,.13);
 border-radius:20px;background:#e6efec;box-shadow:0 18px 50px rgba(13,58,56,.095)
}
body:not(.home) .dd-inner-image-frame img,
body:not(.home) .dd-inner-feature-photo img,
body:not(.home) .dd-profile-approach-photo img{
 display:block;width:100%;height:auto;min-height:300px;max-height:490px;
 aspect-ratio:4/3;object-fit:cover;object-position:center;
}
body:not(.home) .dd-inner-feature{align-items:center;gap:clamp(32px,5vw,76px)}
body:not(.home) .dd-inner-feature-copy{max-width:580px}
body:not(.home) .dd-inner-feature-copy p{max-width:53ch}
body:not(.home) .dd-content-card,
body:not(.home) .dd-profile-expertise-card{height:auto;min-height:0}
body:not(.home) .dd-content-card h3,
body:not(.home) .dd-profile-expertise-card h3{overflow-wrap:normal;hyphens:none}

/* Lo Studio: galleria editoriale, cinque fotografie autentiche, didascalie integrate. */
.dd-studio-ambienti{background:#f0f6f3!important}
.dd-studio-ambienti-heading{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);align-items:end;gap:clamp(30px,5.5vw,95px);margin-bottom:clamp(30px,4vw,52px)}
.dd-studio-ambienti-heading h2{margin:13px 0 0;font-size:clamp(39px,3.8vw,58px);line-height:1.07;color:#143944}
.dd-studio-ambienti-heading h2 em{font-style:normal;color:#0c615a}
.dd-studio-ambienti-heading p{font-size:clamp(16px,1.35vw,18px);line-height:1.74;color:#496369;max-width:610px;margin:0}
.dd-studio-gallery{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-template-rows:repeat(2,245px) 295px;gap:17px;min-width:0}
.dd-studio-gallery-item{position:relative;margin:0;min-width:0;min-height:0;overflow:hidden;
  background:#dce9e6;border-radius:19px;box-shadow:0 15px 40px rgba(9,61,56,.09);isolation:isolate}
.dd-studio-gallery-featured{grid-column:1/8;grid-row:1/3}
.dd-studio-gallery-aside-one{grid-column:8/-1;grid-row:1}
.dd-studio-gallery-aside-two{grid-column:8/-1;grid-row:2}
.dd-studio-gallery-lower-one{grid-column:1/7;grid-row:3}
.dd-studio-gallery-lower-two{grid-column:7/-1;grid-row:3}
.dd-studio-gallery-item img{display:block;width:100%;height:100%;max-height:none;min-height:0;aspect-ratio:auto;object-fit:cover;object-position:center;transition:transform .5s ease}
.dd-studio-gallery-featured img{object-position:center 56%}
.dd-studio-gallery-aside-one img{object-position:center 42%}
.dd-studio-gallery-item:after{content:"";position:absolute;inset:38% 0 0;background:linear-gradient(180deg,transparent,rgba(7,37,40,.68));pointer-events:none;z-index:0}
.dd-studio-gallery-item figcaption{position:absolute;bottom:0;left:0;right:0;z-index:1;
 padding:clamp(17px,2.1vw,31px);color:#fff;background:transparent;display:flex;flex-direction:column;
 gap:6px;text-shadow:0 1px 9px rgba(0,0,0,.17)}
.dd-studio-gallery-item .dd-gallery-counter{font-family:'Clear Sans',Arial,sans-serif;font-size:10px;letter-spacing:.17em;font-weight:700;color:#c6ece3}
.dd-studio-gallery-item .dd-gallery-caption-title{font:400 clamp(23px,2.2vw,35px)/1.08 'Berenis ADF Pro',Georgia,serif;letter-spacing:-.025em;color:#fff}
.dd-studio-gallery-item .dd-gallery-caption-text{font-size:13px;line-height:1.5;color:#f6fffc}
.dd-studio-gallery-item:hover img{transform:scale(1.025)}

/* Trattamenti: card capaci di espandersi, senza taglio del contenuto. */
body:not(.home) .dd-treatments-section{padding-block:clamp(60px,6vw,95px)}
body:not(.home) .dd-treatment-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;gap:19px}
body:not(.home) .dd-treatment-card{
 display:flex;flex-direction:column;align-items:flex-start;gap:0;
 height:auto;max-height:none;min-height:0;min-width:0;overflow:visible;
 padding:28px 25px 26px;border-radius:17px;border:1px solid #dfebe6;
 box-shadow:0 14px 40px rgba(17,64,59,.065);background:#fff
}
body:not(.home) .dd-treatment-card::before{flex:none;margin-bottom:18px}
body:not(.home) .dd-treatment-card > .dd-svg{flex:0 0 auto;width:38px;height:38px;margin:0 0 20px;color:var(--dd-editorial-green)}
body:not(.home) .dd-treatment-card h2{font:400 clamp(23px,2.2vw,33px)/1.13 'Berenis ADF Pro',Georgia,serif!important;
 color:#163942;margin:0 0 15px;letter-spacing:-.025em;max-width:100%;min-width:0;word-break:normal}
body:not(.home) .dd-treatment-card p{font:400 15px/1.65 'Clear Sans',Arial,sans-serif!important;color:#506a72;
 margin:0 0 23px;min-height:0;height:auto;max-height:none;overflow:visible;flex:1 0 auto;max-width:100%}
body:not(.home) .dd-treatment-card a{margin-top:auto;font-size:13px;line-height:1.5;min-height:24px;color:#0a6058;font-weight:700}
body:not(.home) .dd-treatment-card[hidden]{display:none!important}
body:not(.home) .dd-filters{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:27px}
body:not(.home) .dd-filters button{max-width:100%;white-space:normal;line-height:1.4}

/* Testi clinici: primo blocco di sintesi + quattro schede affiancate.
   Il ::before dei precedenti stili era un item di grid e spostava il testo nella colonna da 170px. */
body:not(.home) .dd-content-articles{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:21px;
 border:0;margin:0;align-items:stretch
}
body:not(.home) .dd-content-article,
body:not(.home) .dd-content-article:first-child{
 position:relative;display:flex;flex-direction:column;gap:0;
 min-height:0;height:auto;max-height:none;min-width:0;
 padding:36px 35px 33px;margin:0;overflow:hidden;
 background:#fff;border:1px solid var(--dd-editorial-border);border-radius:19px;
 box-shadow:0 18px 44px rgba(13,58,54,.055)
}
body:not(.home) .dd-content-article:first-child{grid-column:1/-1;display:grid;grid-template-columns:minmax(160px,.32fr) minmax(0,1fr);column-gap:36px;align-items:start;
 background:#eef7f4;border-color:#d2e6df}
body:not(.home) .dd-content-article::before{
 content:"";position:absolute;top:0;left:0;width:100%;height:4px;margin:0;
 border-radius:0;background:linear-gradient(90deg,#0e6259,#51a698);
 pointer-events:none;grid-column:auto
}
body:not(.home) .dd-content-article .dd-content-article-index{
 display:block;width:auto;min-width:0;padding:0;margin:0 0 20px;
 font:700 12px/1.5 'Clear Sans',Arial,sans-serif;letter-spacing:.13em;color:#0e655d;
}
body:not(.home) .dd-content-article:first-child .dd-content-article-index{margin-top:10px}
body:not(.home) .dd-content-article>div:last-child{display:block;min-width:0;width:auto;max-width:100%;grid-column:auto}
body:not(.home) .dd-content-article h3{
 font:400 clamp(28px,2.65vw,39px)/1.13 'Berenis ADF Pro',Georgia,serif;
 letter-spacing:-.03em;color:#173b47;margin:0 0 17px;max-width:50rem;
}
body:not(.home) .dd-content-article p,
body:not(.home) .dd-inner-section .dd-content-article p{
 font-size:16px;line-height:1.76;color:#4c636c;margin:0 0 16px;
 min-width:0;max-width:72ch;max-height:none;overflow:visible;word-break:normal
}
body:not(.home) .dd-content-article p:last-child{margin-bottom:0}
body:not(.home) .dd-tech-treatment-highlights{align-items:stretch}
body:not(.home) .dd-tech-treatment-highlights article{height:auto;max-height:none;min-height:0;overflow:visible}
body:not(.home) .dd-tech-treatment-highlights article>div{min-width:0}
body:not(.home) .dd-tech-treatment-highlights h3{overflow-wrap:break-word;max-width:100%}
body:not(.home) .dd-tech-treatment-highlights p{height:auto;max-height:none;overflow:visible}

/* Trattamenti e Tecnologie: figure editoriale coerente, senza fotografie posticce. */
body:not(.home) .dd-service-opening-grid,
body:not(.home) .dd-service-story-row,
body:not(.home) .dd-service-feature-grid{min-width:0}
body:not(.home) .dd-service-opening-copy,
body:not(.home) .dd-service-story-copy,
body:not(.home) .dd-service-feature-copy{min-width:0;max-height:none}
body:not(.home) .dd-service-opening-figure,
body:not(.home) .dd-service-story-figure{
 position:relative;min-width:0;margin:0;overflow:hidden;border-radius:18px;
 background:#e6efec;border:1px solid rgba(15,78,73,.12);
 box-shadow:0 18px 52px rgba(9,57,54,.10)
}
body:not(.home) .dd-service-opening-figure img,
body:not(.home) .dd-service-story-figure img{display:block;width:100%;height:100%;object-fit:cover;max-width:100%}
body:not(.home) .dd-service-opening-figure figcaption,
body:not(.home) .dd-service-story-figure figcaption{
 position:absolute;inset:auto 0 0;z-index:2;display:flex;flex-wrap:wrap;align-items:center;
 justify-content:space-between;gap:8px;
 padding:29px 23px 18px;background:linear-gradient(0deg,rgba(7,48,47,.85),transparent);
 border:0;color:#fff;font-size:11px;line-height:1.45;letter-spacing:.08em
}
body:not(.home) .dd-service-opening-figure figcaption span{color:#fff}
body:not(.home) .dd-service-story-row{align-items:center;gap:clamp(28px,5vw,75px)}
body:not(.home) .dd-service-story-row p{font-size:16px;line-height:1.75;max-width:64ch}
body:not(.home) .dd-service-story-copy h3{overflow-wrap:break-word;max-width:20ch}
body:not(.home) .dd-service-feature-art{overflow:hidden;min-width:0}
body:not(.home) .dd-service-feature-art img{width:100%;height:100%;object-fit:cover;aspect-ratio:auto}
body:not(.home) .dd-technology-story-panel,
body:not(.home) .dd-technology-placeholder{border-radius:18px;overflow:hidden}
body:not(.home) .dd-profile-approach-photo{max-height:none;height:auto}

@media(max-width:1200px){
 .dd-studio-gallery{grid-template-rows:repeat(2,210px) 245px;gap:13px}
 body:not(.home) .dd-treatment-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body:not(.home) .dd-content-articles{gap:17px}
}
@media(max-width:850px){
 .dd-studio-ambienti-heading{grid-template-columns:1fr;gap:16px}
 .dd-studio-gallery{grid-template-rows:repeat(2,190px) 210px;gap:12px}
 body:not(.home) .dd-content-article:first-child{grid-template-columns:1fr;gap:0}
 body:not(.home) .dd-content-article:first-child .dd-content-article-index{margin-top:0}
}
@media(max-width:760px){
 body:not(.home) .dd-inner-image-frame img,
 body:not(.home) .dd-inner-feature-photo img,
 body:not(.home) .dd-profile-approach-photo img{min-height:220px;max-height:340px}
 .dd-studio-gallery{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,230px);gap:12px}
 .dd-studio-gallery-featured{grid-column:1/-1;grid-row:1}
 .dd-studio-gallery-aside-one{grid-column:1;grid-row:2}
 .dd-studio-gallery-aside-two{grid-column:2;grid-row:2}
 .dd-studio-gallery-lower-one{grid-column:1;grid-row:3}
 .dd-studio-gallery-lower-two{grid-column:2;grid-row:3}
 .dd-studio-gallery-item figcaption{padding:14px 13px;gap:3px}
 .dd-studio-gallery-item .dd-gallery-caption-title{font-size:clamp(18px,4.8vw,25px)}
 .dd-studio-gallery-item .dd-gallery-counter{font-size:9px}
 .dd-studio-gallery-item .dd-gallery-caption-text{font-size:11px}
 body:not(.home) .dd-content-articles{grid-template-columns:1fr;gap:15px}
 body:not(.home) .dd-content-article:first-child{grid-column:auto}
 body:not(.home) .dd-content-article,body:not(.home) .dd-content-article:first-child{padding:26px 23px 27px}
 body:not(.home) .dd-content-article h3{font-size:clamp(28px,7vw,36px)}
 body:not(.home) .dd-service-story-row p{font-size:15px}
 body:not(.home) .dd-service-story-figure figcaption{padding:25px 17px 14px}
}
@media(max-width:560px){
 .dd-studio-gallery{display:grid;grid-template-columns:1fr;grid-auto-rows:auto;grid-template-rows:none;gap:13px}
 .dd-studio-gallery-item,
 .dd-studio-gallery-featured,
 .dd-studio-gallery-aside-one,
 .dd-studio-gallery-aside-two,
 .dd-studio-gallery-lower-one,
 .dd-studio-gallery-lower-two{grid-column:1;grid-row:auto;aspect-ratio:1.47/1}
 .dd-studio-gallery-featured{aspect-ratio:1.1/1}
 .dd-studio-gallery-item .dd-gallery-caption-title{font-size:27px}
 .dd-studio-gallery-item figcaption{padding:18px 20px}
 body:not(.home) .dd-treatment-grid{grid-template-columns:1fr;gap:14px}
 body:not(.home) .dd-treatment-card{padding:25px 24px;min-height:0}
 body:not(.home) .dd-treatment-card h2{font-size:31px!important}
 body:not(.home) .dd-treatment-card p{font-size:15px!important}
 body:not(.home) .dd-content-article,body:not(.home) .dd-content-article:first-child{padding:24px 21px 25px}
 body:not(.home) .dd-content-article p{font-size:15.5px}
}
@media(prefers-reduced-motion:reduce){.dd-studio-gallery-item img{transition:none}}

/* Contenuti aggiunti dall'editor WordPress: anche foto e gallerie inserite dopo
   il template mantengono l'estetica delle pagine interne. */
body:not(.home) .dd-editor-append{padding-block:clamp(45px,6vw,85px)}
body:not(.home) .dd-editor-content{max-width:1160px;margin:0 auto;min-width:0}
body:not(.home) .dd-editor-content>p{max-width:75ch}
body:not(.home) .dd-editor-content img{display:block;max-width:100%;width:auto;height:auto;border-radius:18px;
  border:1px solid rgba(10,68,62,.08);box-shadow:0 15px 42px rgba(12,55,51,.09)}
body:not(.home) .dd-editor-content figure{margin:0 0 24px;min-width:0}
body:not(.home) .dd-editor-content figure img{width:100%;height:auto;object-fit:cover}
body:not(.home) .dd-editor-content figcaption{font-size:13px;line-height:1.5;color:#587077;margin:11px 3px 0}
body:not(.home) .dd-editor-content .wp-block-gallery,
body:not(.home) .dd-editor-content .blocks-gallery-grid,
body:not(.home) .dd-editor-content .gallery{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:0;margin:25px 0 36px;list-style:none;align-items:stretch
}
body:not(.home) .dd-editor-content .wp-block-gallery>*,
body:not(.home) .dd-editor-content .blocks-gallery-grid>*,
body:not(.home) .dd-editor-content .gallery>*{min-width:0;margin:0;width:100%;max-width:100%}
body:not(.home) .dd-editor-content .wp-block-gallery img,
body:not(.home) .dd-editor-content .blocks-gallery-grid img,
body:not(.home) .dd-editor-content .gallery img{
 aspect-ratio:4/3;width:100%;height:100%;max-height:330px;object-fit:cover}
body:not(.home) .dd-editor-content .wp-block-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
body:not(.home) .dd-editor-content .wp-block-column{min-width:0}
body:not(.home) .dd-editor-content .wp-block-media-text{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(20px,4vw,65px);align-items:center;margin-block:32px}
body:not(.home) .dd-editor-content .wp-block-media-text .wp-block-media-text__content{min-width:0;padding:20px 0}
body:not(.home) .dd-editor-content .wp-block-media-text img{width:100%;object-fit:cover}
@media(max-width:760px){
 body:not(.home) .dd-editor-content .wp-block-gallery,
 body:not(.home) .dd-editor-content .blocks-gallery-grid,
 body:not(.home) .dd-editor-content .gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 body:not(.home) .dd-editor-content .wp-block-columns,
 body:not(.home) .dd-editor-content .wp-block-media-text{grid-template-columns:1fr;gap:15px}
}
@media(max-width:460px){
 body:not(.home) .dd-editor-content .wp-block-gallery,
 body:not(.home) .dd-editor-content .blocks-gallery-grid,
 body:not(.home) .dd-editor-content .gallery{grid-template-columns:1fr}
 body:not(.home) .dd-editor-content .wp-block-gallery img,
 body:not(.home) .dd-editor-content .gallery img{max-height:290px}
}
