@charset "UTF-8";
/* ==========================================================================
   Home widgets — stili generici per i widget della homepage.
   Le classi widget-* vengono mappate ai componenti del template.
   ========================================================================== */

/* ── Generici ── */

.widget-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}
.widget-head h1,
.widget-head h2 {
    font-family: 'Shippori Mincho', serif;
    font-size: 23px;
    font-weight: 600;
}
.widget-more {
    font-size: 12.5px;
    color: var(--vermillion);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
}
.widget-sub {
    font-size: 12.5px;
    color: #7C8288;
    margin-bottom: 26px;
    font-family: 'JetBrains Mono', monospace;
}

/* ── Hero ── */

.widget-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 420px;
    border-bottom: 2px solid var(--ink);
}
.widget-hero-left {
    padding: 60px 20px 60px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}
.widget-hero-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--vermillion);
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.widget-hero h1 {
    font-family: 'Shippori Mincho', serif;
    font-weight: 600;
    font-size: 46px;
    line-height: 1.18;
    max-width: 480px;
}
.widget-hero-accent {
    color: var(--vermillion);
}
.widget-hero-left p {
    margin-top: 20px;
    font-size: 15px;
    max-width: 440px;
    color: #454A52;
    line-height: 1.7;
}
.widget-hero-right {
    background: linear-gradient(155deg, var(--indigo), var(--sumi));
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 34px;
}
.widget-hero-right img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.widget-hero-caption {
    position: relative;
    z-index: 1;
    color: #E4E8EA;
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: .05em;
}
.widget-hero-caption b {
    display: block;
    font-family: 'Shippori Mincho', serif;
    font-size: 16px;
    color: var(--cream);
    margin-bottom: 4px;
}

/* ── Grid cards (content_latest, gallery_list) ── */

.widget-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    background: var(--ink);
}
.widget-card {
    background: var(--cream);
    padding: 24px 22px;
    position: relative;
    text-decoration: none;
    display: block;
    color: var(--ink);
}
.widget-card h3 {
    font-family: 'Shippori Mincho', serif;
    font-size: 18px;
    font-weight: 600;
    margin: 10px 0 8px;
}
.widget-card p {
    font-size: 13px;
    color: #52565C;
    line-height: 1.55;
    margin-bottom: 16px;
}
.widget-card-category {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    color: var(--vermillion);
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* ── Gallery cards ── */

.widget-card-cover {
    aspect-ratio: 16/10;
    background: repeating-linear-gradient(135deg, #B9C4C9 0 4px, #A7B4BB 4px 8px);
    position: relative;
}
.widget-card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid var(--ink);
}
.widget-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.widget-card-media {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.widget-card-media-body {
    flex: 1;
    min-width: 0;
}
.widget-card-media-thumb {
    flex: none;
}
.widget-card-media-thumb .widget-card-cover {
    width: 130px;
    aspect-ratio: 16/10;
}
.widget-card-tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    background: var(--ink);
    color: var(--bamboo);
    padding: 3px 8px;
    letter-spacing: .05em;
}
.widget-card-body {
    padding: 16px 18px 20px;
}
.widget-card-body h3 {
    font-family: 'Shippori Mincho', serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}
.widget-card-body span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #7C8288;
}

/* ── List (content_selected, content_by_category) ── */

.widget-list {
    list-style: none;
}
.widget-list li {
    border-top: 1px dashed rgba(20, 24, 28, .16);
}
.widget-list li:first-child {
    border-top: none;
}
.widget-list a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 2px;
    text-decoration: none;
    color: var(--ink);
    font-size: 13.5px;
}
.widget-list a:has(img) {
    justify-content: flex-start;
}
.widget-list a img {
    width: 56px;
    height: 40px;
    object-fit: cover;
    flex: none;
}
.widget-list a:hover {
    color: var(--vermillion);
}
.widget-category-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 4px;
}
.widget-category-head h3 {
    font-family: 'Shippori Mincho', serif;
    font-size: 19px;
    font-weight: 600;
}
.widget-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #7C8288;
}

/* ── Content single ── */

.widget-content-single h2 {
    font-family: 'Shippori Mincho', serif;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
}
.widget-content-single h2 a {
    text-decoration: none;
    color: var(--ink);
}
.widget-content-body {
    padding: 20px 0;
    font-size: 15.5px;
    line-height: 1.9;
    color: #1C2024;
}

/* ── Responsive ── */

@media (max-width: 900px) {
    .widget-hero {
        grid-template-columns: 1fr;
    }
    .widget-hero-right {
        min-height: 200px;
    }
    .widget-grid {
        grid-template-columns: 1fr 1fr;
    }
}
