/*
Theme Name: Matti da Colorare Child
Theme URI: https://www.mattidacolorare.it/
Author: Fepar Press
Description: Tema figlio ufficiale di Matti da Colorare.
Template: matti-da-colorare
Version: 1.7.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: matti-da-colorare-child
License: GNU General Public License v2 or later
*/

/* Inserire qui le personalizzazioni CSS del tema figlio. */

/* Banner Zora: preserve the complete artwork and its natural proportions. */
.zora-desktop { overflow: visible; border-radius: 0; box-shadow: none; }
.zora-desktop img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }


/* Hero v1.6: real HTML copy, SVG book icon and high-definition artwork. */
.matti-hero-v16{position:relative;isolation:isolate;container-type:inline-size;line-height:1.15;background:radial-gradient(ellipse at 21% 39%,rgba(255,255,245,.96) 0%,rgba(255,255,236,.77) 19%,rgba(255,255,232,0) 42%),repeating-conic-gradient(from -6deg at 63% 65%,#fff09f 0deg 9deg,#fff5bc 9deg 18deg);}
.matti-hero-art{display:block;width:100%;height:auto;aspect-ratio:2/1;mask-image:url('assets/images/hero-mask-v16.png');mask-size:100% 100%;mask-repeat:no-repeat;-webkit-mask-image:url('assets/images/hero-mask-v16.png');-webkit-mask-size:100% 100%;-webkit-mask-repeat:no-repeat;}
.matti-hero-copy{position:absolute;z-index:1;top:5.5%;left:4.5%;width:43%;color:#07172b;}
.matti-hero-copy h1{margin:0;font-family:system-ui,-apple-system,'Segoe UI',Arial,sans-serif;font-size:5.85cqw;font-weight:950;letter-spacing:-.065em;line-height:.99;font-style:italic;}
.matti-hero-copy h1 span{display:block;white-space:nowrap;}
.matti-hero-copy h1 em{display:block;font-style:inherit;color:#d60010;font-size:1.12em;line-height:.94;}
.matti-hero-copy h1 em:after{content:'';display:block;width:69%;height:.65cqw;border-top:.6cqw solid #d60010;border-radius:60% 65% 0 0;margin:.85cqw 0 .8cqw;transform:rotate(-1deg);}
.matti-hero-copy p{margin:.65cqw 0 1.5cqw;font-size:1.88cqw;letter-spacing:-.035em;font-weight:750;line-height:1.22;}
.matti-hero-button{display:inline-flex;align-items:center;justify-content:center;gap:1.1cqw;border:2px solid #fff9eb;border-radius:999px;padding:1.05cqw 1.65cqw;background:linear-gradient(#df0512,#c8000b);box-shadow:0 2px 0 #ba0812;color:white;text-decoration:none;font-size:1.98cqw;font-weight:800;white-space:nowrap;line-height:1.1;transition:background .2s,transform .2s;}
.matti-hero-button:hover{background:#b9000b;transform:translateY(-2px);}
.matti-hero-button svg{width:3cqw;height:auto;flex:none;}
.matti-hero-mobile-art{display:none;}
@media(max-width:760px){
 .matti-hero-v16{display:flex;flex-direction:column;align-items:center;padding:28px 20px 24px;background:radial-gradient(ellipse at 22% 24%,#fffbed 0%,transparent 58%),repeating-conic-gradient(from 0deg at 50% 85%,#ffeb80 0deg 9deg,#fff5bc 9deg 18deg);}
 .matti-hero-art{display:none;}
 .matti-hero-copy{position:static;width:100%;max-width:560px;}
 .matti-hero-copy h1{font-size:clamp(2.15rem,9.3vw,4.2rem);letter-spacing:-.055em;}
 .matti-hero-copy h1 em:after{width:76%;max-width:260px;border-top:5px solid #d60010;height:5px;margin:12px 0 10px;}
 .matti-hero-copy p{font-size:clamp(1.05rem,4.3vw,1.4rem);line-height:1.35;margin:10px 0 20px;letter-spacing:-.015em;}
 .matti-hero-break{display:none;}
 .matti-hero-button{font-size:1.06rem;padding:12px 20px;gap:10px;}
 .matti-hero-button svg{width:29px;}
 .matti-hero-mobile-art{display:block;width:min(72%,400px);height:auto;margin-top:26px;box-shadow:0 10px 20px #49340033;}
}

/* Indice automatico degli articoli (v1.7). */
.single-post article .matti-indice {
    box-sizing: border-box;
    background: #fffdf7;
    border: 1px solid #e5dfd3;
    border-left: 4px solid #ed1c24;
    border-radius: 12px;
    padding: 22px 25px;
    margin: 30px 0;
    font-family: 'Nunito', sans-serif;
    color: #263141;
}
.single-post article .matti-indice .matti-indice-titolo {
    display: block;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
    color: #172333;
}
.single-post article .matti-indice ol {
    list-style: decimal outside;
    padding-left: 24px;
    margin: 12px 0 0;
}
.single-post article .matti-indice li {
    display: list-item;
    padding-left: 3px;
    margin: 0 0 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 17px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}
.single-post article .matti-indice li:last-child { margin-bottom: 0; }
.single-post article .matti-indice li::marker { color: #c90012; font-weight: 700; }
.single-post article .matti-indice a { color: #263141; text-decoration: none; }
.single-post article .matti-indice a:hover,
.single-post article .matti-indice a:focus-visible { color: #c90012; text-decoration: underline; }
.single-post article .matti-indice a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.single-post article .matti-indice-target { scroll-margin-top: 120px; }
@media (max-width: 768px) {
    .single-post article .matti-indice { padding: 18px 16px; margin: 24px 0; }
    .single-post article .matti-indice .matti-indice-titolo { font-size: 20px; }
    .single-post article .matti-indice li { font-size: 16px; }
}
