/* route-specific overrides for the home page */

/* contact form: keep the fields white and the typed text dark */
body[data-route="index.html"] .contact-form-panel-wide .input,
body[data-route="index.html"] .contact-form-panel-wide textarea.input{
  background:#fff !important;
  color:var(--ink) !important;
  caret-color:var(--ink) !important;
  border:1px solid rgba(86,65,49,.14) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7), 0 8px 18px rgba(47,36,29,.05) !important;
}

body[data-route="index.html"] .contact-form-panel-wide .input::placeholder,
body[data-route="index.html"] .contact-form-panel-wide textarea.input::placeholder{
  color:rgba(47,36,29,.46) !important;
}

body[data-route="index.html"] .contact-form-panel-wide .input:-webkit-autofill,
body[data-route="index.html"] .contact-form-panel-wide .input:-webkit-autofill:hover,
body[data-route="index.html"] .contact-form-panel-wide .input:-webkit-autofill:focus,
body[data-route="index.html"] .contact-form-panel-wide textarea.input:-webkit-autofill{
  -webkit-text-fill-color:var(--ink) !important;
  box-shadow:0 0 0 1000px #fff inset !important;
  transition:background-color 9999s ease-out 0s;
}

/* home cards: preserve the mobile layout and keep desktop spacing light and stable */
@media (max-width:759px){
  body[data-route="index.html"] .home-product-card .product-title-script{
    font-size:clamp(1.95rem, 7.4vw, 2.18rem) !important;
    line-height:.94 !important;
  }
}

@media (min-width:760px){
  body[data-route="index.html"] .home-product-card .product-copy-panel{
    gap:19px !important;
  }

  body[data-route="index.html"] .home-product-card .product-body{
    gap:15px !important;
  }

  body[data-route="index.html"] .home-product-card .product-top{
    gap:10px !important;
    min-height:0 !important;
  }

  body[data-route="index.html"] .home-product-card .product-note,
  body[data-route="index.html"] .home-product-card .product-note-wide,
  body[data-route="index.html"] .home-product-card .product-note-digital,
  body[data-route="index.html"] .home-product-card .product-note-printed,
  body[data-route="index.html"] .home-product-card .product-note-painting{
    max-width:none !important;
    min-height:3.15em !important;
    margin:0 !important;
    line-height:1.54 !important;
  }

  body[data-route="index.html"] .home-product-card .product-meta-tags{
    margin-top:6px !important;
    gap:8px !important;
    min-height:0 !important;
    align-items:flex-start !important;
  }

  body[data-route="index.html"] .home-product-card .product-price{
    margin-top:6px !important;
  }
}

@media (min-width:1024px){
  body[data-route="index.html"] .booklet-cards .home-product-card,
  body[data-route="index.html"] .painting-offer-wrap .home-product-card{
    width:min(100%, 378px) !important;
    max-width:378px !important;
  }
}

/* home about section: editorial overlap for Orlando and Giulia */
/* home about section: editorial embrace for Orlando and Giulia */
body[data-route="index.html"] .about-narrow{
  max-width:1000px;
}

body[data-route="index.html"] .about-section-head{
  margin-bottom:26px;
}


body[data-route="index.html"] .about-section-head h2.hero-script-title{
  font-family:var(--script);
  font-weight:600;
  font-size:clamp(2.2rem,8vw,4rem);
  line-height:.94;
  letter-spacing:-.01em;
  text-align:center;
}

body[data-route="index.html"] .about-section-head p{
  max-width:28rem;
}

body[data-route="index.html"] .about-embrace{
  position:relative;
  display:grid;
  gap:0;
  align-items:start;
  padding:4px 0 0;
}

body[data-route="index.html"] .about-card{
  position:relative;
  overflow:visible;
  padding:24px 22px;
  border-radius:32px;
  background:rgba(255,251,246,.92);
  border:1px solid rgba(86,65,49,.12);
  box-shadow:0 18px 44px rgba(47,36,29,.08), 0 2px 10px rgba(47,36,29,.04);
}

body[data-route="index.html"] .about-card::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background-image:url("images/paper-texture-ambient.jpg");
  background-size:cover;
  background-position:center;
  opacity:.17;
  pointer-events:none;
}

body[data-route="index.html"] .about-card > *{
  position:relative;
  z-index:2;
}

body[data-route="index.html"] .about-card-orlando{
  z-index:2;
  padding-bottom:34px;
  border-radius:34px 34px 42px 34px;
}

body[data-route="index.html"] .about-card-giulia{
  z-index:1;
  width:calc(100% - 18px);
  margin:0 0 0 auto;
  padding-top:34px;
  border-radius:42px 34px 34px 34px;
}

body[data-route="index.html"] .about-card-grid{
  display:grid;
  gap:18px;
  align-items:center;
}

body[data-route="index.html"] .about-card-grid-orlando,
body[data-route="index.html"] .about-card-grid-giulia{
  grid-template-columns:1fr;
}

body[data-route="index.html"] .about-role{
  margin:0;
  font-family:var(--serif);
  font-size:clamp(2rem, 6vw, 2.9rem);
  line-height:.92;
}

body[data-route="index.html"] .about-role-subtitle{
  margin:0;
  color:rgba(47,36,29,.68);
  font-size:.88rem;
  font-weight:600;
  letter-spacing:.14em;
  text-transform:uppercase;
}

body[data-route="index.html"] .about-copy{
  display:grid;
  gap:10px;
  min-width:0;
}

body[data-route="index.html"] .about-text{
  display:grid;
  gap:12px;
}

body[data-route="index.html"] .about-text p{
  margin:0;
  color:var(--ink);
  line-height:1.76;
  max-width:none;
}

body[data-route="index.html"] .about-text-large{
  max-width:35rem;
}

body[data-route="index.html"] .about-text-small{
  max-width:28rem;
}

body[data-route="index.html"] .about-portrait{
  width:140px;
  aspect-ratio:1/1;
  margin:0;
  border-radius:999px;
  overflow:hidden;
  border:1px solid rgba(86,65,49,.12);
  box-shadow:0 12px 26px rgba(47,36,29,.10);
  background:#fff;
}

body[data-route="index.html"] .about-portrait img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  background:#fff;
}

body[data-route="index.html"] .about-portrait-giulia img{
  object-position:52% 24%;
}

body[data-route="index.html"] .about-bridge-note{
  position:relative;
  z-index:5;
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:58px;
  margin:-2px 0 2px;
  padding:0 14px;
  pointer-events:none;
}

body[data-route="index.html"] .about-bridge-note span{
  display:inline-block;
  white-space:nowrap;
  font-family:var(--script);
  font-size:clamp(1.04rem, 4.6vw, 1.7rem);
  line-height:1;
  letter-spacing:.01em;
  color:#715846;
  transform:rotate(-2deg);
  text-shadow:0 1px 0 rgba(255,255,255,.68);
}

@media (min-width:760px){
  body[data-route="index.html"] .about-embrace{
    grid-template-columns:repeat(12, minmax(0, 1fr));
    grid-template-rows:auto auto auto;
    gap:0;
    padding:8px 0 10px;
  }

  body[data-route="index.html"] .about-card-orlando{
    grid-column:1 / span 9;
    grid-row:1;
    width:auto;
    padding-bottom:36px;
  }

  body[data-route="index.html"] .about-bridge-note{
    grid-column:5 / span 6;
    grid-row:2;
    justify-self:center;
    align-self:center;
    min-height:74px;
    margin:-2px 0 0;
    transform:translateX(4%);
  }

  body[data-route="index.html"] .about-card-giulia{
    grid-column:5 / -1;
    grid-row:3;
    width:auto;
    margin:0;
    padding-top:36px;
  }

  body[data-route="index.html"] .about-card-grid-orlando{
    grid-template-columns:176px minmax(0,1fr);
    gap:26px;
  }

  body[data-route="index.html"] .about-card-grid-giulia{
    grid-template-columns:minmax(0,1fr) 150px;
    gap:24px;
  }

  body[data-route="index.html"] .about-portrait{
    width:154px;
  }

  body[data-route="index.html"] .about-bridge-note span{
    font-size:clamp(1.28rem, 2.5vw, 2.08rem);
  }
}

@media (min-width:1024px){
  body[data-route="index.html"] .about-card{
    padding:28px 28px 30px;
  }

  body[data-route="index.html"] .about-card-grid-orlando{
    grid-template-columns:186px minmax(0,1fr);
    gap:30px;
  }

  body[data-route="index.html"] .about-card-grid-giulia{
    grid-template-columns:minmax(0,1fr) 160px;
    gap:28px;
  }

  body[data-route="index.html"] .about-portrait{
    width:164px;
  }

  body[data-route="index.html"] .about-card-orlando{
    padding-bottom:40px;
  }

  body[data-route="index.html"] .about-card-giulia{
    padding-top:40px;
  }

  body[data-route="index.html"] .about-bridge-note{
    min-height:82px;
    transform:translateX(6%);
  }

  body[data-route="index.html"] .about-bridge-note span{
    font-size:clamp(1.56rem, 2vw, 2.32rem);
  }
}

/* v164 adjustments */
body[data-route="index.html"] .about-card-orlando,
body[data-route="index.html"] .about-card-giulia{
  width:100%;
  margin-left:0;
}

@media (min-width:760px){
  body[data-route="index.html"] .about-embrace{
    grid-template-columns:1fr;
    gap:16px;
  }
  body[data-route="index.html"] .about-card-orlando,
  body[data-route="index.html"] .about-card-giulia{
    grid-column:auto;
    grid-row:auto;
    width:100%;
    margin:0;
  }
  body[data-route="index.html"] .about-bridge-note{
    grid-column:auto;
    grid-row:auto;
    justify-self:center;
    transform:none;
  }
}



/* v199 home painting line breaks + bridge note + clean editorial cards */
body[data-route="index.html"] .home-product-card .product-note-painting .painting-note-break{
  display:block;
}

@media (max-width:759px){
  body[data-route="index.html"] .home-product-card .product-note-painting .painting-note-break-desktop{
    display:none;
  }

  body[data-route="index.html"] .home-product-card .product-note-painting .painting-note-break-mobile{
    display:block;
  }

  body[data-route="index.html"] .about-bridge-note span{
    font-size:clamp(1.16rem, 5vw, 1.92rem);
  }
}

@media (min-width:760px){
  body[data-route="index.html"] .home-product-card .product-note-painting .painting-note-break-desktop{
    display:block;
  }

  body[data-route="index.html"] .home-product-card .product-note-painting .painting-note-break-mobile{
    display:none;
  }
}
/* v246 home painting note width reset */
body[data-route="index.html"] .home-product-card .product-note-painting{
  width:100%;
  max-width:none !important;
  min-height:0 !important;
  line-height:1.55 !important;
  text-wrap:pretty;
}

body[data-route="index.html"] .home-product-card .product-note-painting .painting-note-break{
  display:inline !important;
}

@media (max-width:759px){
  body[data-route="index.html"] .painting-offer-wrap .home-product-card .product-top{
    min-height:0;
  }

  body[data-route="index.html"] .home-product-card .product-note-painting{
    max-width:none !important;
  }
}
