/* GERARDO LEONE | V7 — Scoped photographic layout and global spacing correction.
   The V6-approved home value bar and request link are preserved. */

/* Hero imagery: keep the photograph vibrant with a REAL foreground veil only where text needs contrast. */
.page-hero::after{display:none!important}
.page-hero .page-hero-veil{position:absolute;z-index:0;pointer-events:none;top:0;right:0;bottom:0;left:0;background:linear-gradient(90deg,rgba(20,17,16,.80) 0%,rgba(27,21,17,.48) 39%,rgba(24,19,16,.11) 76%,rgba(22,17,15,.03) 100%)}
.page-hero{background-position:center 49%}
.page-hero .container{position:relative;z-index:1}
.page-hero h1,.page-hero p{text-shadow:0 2px 8px rgba(0,0,0,.35)}

/* Restore the approved fine-line icons in the earlier softly framed design,
   at the corrected optical scale and baseline beside the title. */
.article .editorial-heading .section-symbol,
.article .editorial-block.layout-columns .section-symbol{
  box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;
  flex:0 0 31px;width:31px;min-width:31px;height:31px;
  padding:0;margin:0;transform:none;border:1px solid rgba(174,128,69,.33);
  border-radius:9px;background:linear-gradient(145deg,#fffefa,#f2e7d9);
  color:#a5743c;box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 5px 14px rgba(103,75,48,.08)
}
.article .section-symbol .section-icon-svg{
  display:block;width:23px;height:23px;fill:none;stroke:currentColor;
  stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;
}
.article .editorial-heading{align-items:center;gap:12px;margin:0 0 23px}
.article .editorial-heading h2{margin:0;padding:0;line-height:1.22}

/* Global typography and editorial rhythm: no text glued to photography. */
.page-body{padding-top:clamp(56px,5vw,74px);padding-bottom:clamp(76px,7vw,110px)}
.page-values + .page-body{padding-top:clamp(49px,4.5vw,68px)}
.article{min-width:0;display:flow-root}
.article > .editorial-block{margin-top:0;margin-bottom:clamp(34px,3.7vw,49px);scroll-margin-top:38px}
.article > .editorial-block + .editorial-block{margin-top:0}
.article .editorial-copy{min-width:0}
.article .editorial-copy p{margin:0 0 21px;line-height:1.82}
.article .editorial-copy p:last-child{margin-bottom:0}
.article .editorial-copy > :first-child{margin-top:0}
.article .editorial-copy > :last-child{margin-bottom:0}
.article .editorial-block.layout-rule{padding-top:0;padding-bottom:34px}
.article .editorial-block.layout-soft,.article .editorial-block.layout-framed{padding:clamp(25px,3vw,36px)}
.article .editorial-block.layout-framed{background:linear-gradient(145deg,rgba(255,253,249,.88),rgba(253,249,244,.7))}
.article .editorial-block .editorial-lead{min-width:0}
.article .editorial-block .editorial-lead > .editorial-heading:last-child{margin-bottom:22px}

/* Images ONLY under headings within the two-column editorial compositions. */
.article .editorial-block.layout-columns{
  display:grid;grid-template-columns:minmax(0,.93fr) minmax(0,1.07fr);
  column-gap:clamp(25px,3vw,42px);row-gap:24px;
  align-items:stretch;padding:clamp(26px,2.8vw,36px);
  background:linear-gradient(110deg,#f1e9df,#f9f4ed 50%,#fcf9f5 100%);
  border-left:3px solid #b68a56;border-radius:0 15px 15px 0;
}
.article .editorial-block.layout-columns .editorial-lead{
  display:flex;flex-direction:column;min-width:0;min-height:0;
}
.article .editorial-block.layout-columns .editorial-heading{margin:0 0 23px;gap:11px}
.article .editorial-block.layout-columns .editorial-copy{align-self:start;min-width:0}
.article .editorial-block.layout-columns .editorial-copy p{margin-bottom:23px}
.article .editorial-block.layout-columns .editorial-copy p:last-child{margin-bottom:0}
.article .editorial-block.layout-columns figure.section-media{
  box-sizing:border-box;display:block;flex:1 1 auto;min-height:190px;
  position:relative;margin:0;padding:9px;
  border:1px solid #ddc8a9;border-radius:13px;
  background:#f9f4eb;box-shadow:0 10px 22px rgba(60,43,27,.10);overflow:hidden;
}
.article .editorial-block.layout-columns figure.section-media img{
  position:absolute;inset:9px;width:calc(100% - 18px);height:calc(100% - 18px);
  display:block;object-fit:cover;object-position:center;border-radius:8px;
  margin:0;filter:saturate(.95) contrast(1.02);
}
.article .editorial-block.layout-columns figure.section-media::after{
  content:"";position:absolute;right:0;top:0;width:28px;height:28px;
  background:linear-gradient(135deg,transparent 0 47%,#d6b98c 48%,#fff9f0 60%);
  clip-path:polygon(0 0,100% 0,100% 100%);pointer-events:none;
}
/* Special character of each theme is retained without turning the image into a banner. */
.editorial-block[id="cotto"] .section-media img{object-position:50% 54%}
.editorial-block[id="territorio"] .section-media img{object-position:56% 50%}
.editorial-block[id="lucidatura"] .section-media img{object-position:50% 67%}

/* Existing editorial figures get adequate separation from their surroundings. */
.article > figure.art-figure{margin:42px 0 51px;clear:both}
.article > figure.art-figure + .editorial-block{margin-top:15px}
.article > .editorial-block + figure.art-figure{margin-top:40px}
.article figure.art-figure .editorial-caption{padding-top:3px;line-height:1.62}
.article > .standalone-heading{margin:48px 0 23px}
.article > .standalone-heading + .editorial-block{margin-top:23px}
.article > .note{margin:35px 0 42px}
.article blockquote.quote{margin:45px 0 53px}
.article > .form-shell + .editorial-block{margin-top:74px}
.article > .form-shell + .editorial-block.layout-rule{padding-top:0}
.article > .contact-band + .standalone-heading{margin-top:58px}

/* More deliberate content gaps in tiles, material cards, gallery and form elements. */
.learn-card .inside{padding:25px 27px 30px}
.learn-card h3{margin-bottom:14px}
.learn-card p{margin-top:0;margin-bottom:22px;min-height:0}
.tile .tile-body{padding:24px 25px 29px}
.tile .tile-body h3{margin:0 0 14px}
.tile .tile-body p{margin:0 0 21px}
.tile .tile-body p:last-child{margin-bottom:0}
.stone div{padding:18px 18px 22px}
.stone h3{margin-bottom:11px}
.stone p{line-height:1.65}
.gallery-grid{gap:clamp(22px,2.5vw,34px);margin:36px 0 43px}
.gallery-card h3{margin-top:21px;margin-bottom:10px}
.gallery-card p{margin-bottom:20px}
.article .form-shell{padding:clamp(24px,3.5vw,39px)}
.form-shell .field{margin-bottom:17px}
.form-shell .consent{margin-top:17px;margin-bottom:23px}
.step-grid{gap:18px;margin:36px 0 44px}
.step h3{margin:14px 0 12px}
.side-panel{line-height:1.5}

@media(max-width:1000px){
  .article .editorial-block.layout-columns{grid-template-columns:minmax(0,.89fr) minmax(0,1.11fr);column-gap:22px}
  .article .editorial-block.layout-columns .editorial-heading h2{font-size:clamp(18px,1.7vw,22px)}
}
@media(max-width:1120px){
  .article .editorial-block.layout-columns{grid-template-columns:1fr;gap:23px}
  .article .editorial-block.layout-columns figure.section-media{flex:none;min-height:0;height:clamp(215px,38vw,310px)}
  .article .editorial-block.layout-columns .editorial-heading{margin-bottom:18px}
  .article .editorial-block.layout-columns .editorial-copy{padding-top:2px}
  .article .editorial-block.layout-columns .editorial-copy p{margin-bottom:20px}
  .article > .editorial-block{margin-bottom:34px}
  .article > figure.art-figure{margin:35px 0 42px}
  .page-hero .page-hero-veil{background:linear-gradient(90deg,rgba(20,17,16,.77),rgba(23,18,16,.35) 70%,rgba(23,18,16,.06))}
}
@media(max-width:570px){
  .page-body{padding-top:47px;padding-bottom:74px}
  .page-values+.page-body{padding-top:43px}
  .article .editorial-block.layout-soft,.article .editorial-block.layout-framed{padding:22px 19px}
  .article .editorial-block.layout-columns{padding:23px 18px;gap:21px}
  .article .editorial-block.layout-columns figure.section-media{height:220px}
  .article .editorial-heading{gap:9px;margin-bottom:18px}
  .article .editorial-heading .section-symbol,.article .editorial-block.layout-columns .section-symbol{
    flex-basis:27px;width:27px;min-width:27px;height:27px;border-radius:8px;
  }
  .article .section-symbol .section-icon-svg{width:20px;height:20px}
  .article .editorial-copy p{margin-bottom:18px;line-height:1.78}
  .article > figure.art-figure{margin:31px 0 39px}
  .learn-card .inside,.tile .tile-body{padding:22px 20px 26px}
  .gallery-grid{gap:20px;margin:28px 0 34px}
  .gallery-card h3{margin-top:17px}
}


/* V8 spacing refinements */
.stone-grid{margin-bottom:44px}
.article .stone-grid + .editorial-block{margin-top:10px}
@media(max-width:880px){.stone-grid{margin-bottom:36px}}
@media(max-width:570px){.stone-grid{margin-bottom:28px}}
