/*
Theme Name: Giovanni Masuno 2027
Description: Tema child per il portfolio di Giovanni Masuno.
Template: Divi
Version: 1.0.1
Text Domain: giovanni-masuno
*/

/* Palette e misure condivise con i moduli del Visual Builder. */
:root {
    --gm-paper: #f7f7f5;
    --gm-ink: #1e1e1d;
    --gm-muted: #62625d;
    --gm-rule: #deded9;
    --gm-column: 1490px;
    --gm-gutter: clamp(22px, 3.65vw, 54px);
    --gm-space: clamp(36px, 6vw, 92px);
    --gm-font: Helvetica, "Helvetica Neue", Arial, sans-serif;
}
.et_pb_section.gm-section {
    background: var(--gm-paper);
    color: var(--gm-ink);
    font-family: var(--gm-font);
    padding: var(--gm-space) 0;
}
.gm-section + .gm-section { border-top: 1px solid var(--gm-rule); }
.gm-section .gm-row {
    max-width: var(--gm-column);
    width: calc(100% - 2 * var(--gm-gutter));
    padding: 0;
}
.gm-row + .gm-row { margin-top: clamp(26px, 3vw, 48px); }
.gm-section .et_pb_text { color: inherit; }
.gm-row .et_pb_module { margin-bottom: 20px; }
.gm-row .et_pb_module:last-child { margin-bottom: 0; }
.gm-section :is(h1,h2,h3,h4,p,blockquote) { font-family: inherit; }
.gm-section :is(h1,h2,h3,h4) { color: var(--gm-ink); line-height: 1.15; font-weight: 400; }
.gm-section h2 { font-size: clamp(28px,4vw,60px); letter-spacing: -.04em; }
.gm-section h3 { font-size: clamp(22px,2.4vw,36px); letter-spacing: -.025em; }
.gm-section h4 { font-size: clamp(18px,1.8vw,26px); }
.gm-section .gm-title { font-size: clamp(50px,8vw,128px); line-height: 1.08; letter-spacing: -.06em; font-weight: 300; padding: .18em 0; }
.gm-section .gm-lead { max-width: 46ch; font-size: clamp(20px,2.2vw,33px); line-height: 1.45; color: var(--gm-muted); }
.gm-section .gm-body, .gm-section .gm-prose p { max-width: 74ch; font-size: clamp(15px,1.25vw,18px); line-height: 1.8; }
.gm-section .gm-label, .gm-section .gm-note, .gm-caption, .gm-card-foot {
    color: var(--gm-muted); font-size: 12px; line-height: 1.55;
}
.gm-section .gm-label, .gm-card-foot { letter-spacing: .14em; text-transform: uppercase; }
.gm-section .gm-subhead { font-size: clamp(22px,3vw,42px); margin-bottom: .35em; }
.gm-section .gm-note { display: block; margin: .4em 0; }
.gm-section a { color: inherit; text-underline-offset: .24em; }
.gm-section :is(a,summary,button):focus-visible, .gm-dialog button:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.gm-section [id], .gm-section[id] { scroll-margin-top: 110px; }
.gm-sr { position:absolute; width:1px; height:1px; margin:-1px; padding:0; clip-path:inset(50%); overflow:hidden; }
.gm-links, .gm-meta-line, .gm-hero .gm-label { display:flex; flex-wrap:wrap; align-items:baseline; gap: 12px 24px; }
.gm-hero .gm-label, .gm-meta-line { justify-content:space-between; }
.gm-links { margin: 20px 0; }
.gm-links a, .gm-section .gm-link { display:inline-block; font-size:12px; letter-spacing:.08em; text-decoration:underline; padding:.45em 0; }
.gm-quote { max-width: 970px; text-align:center; margin:auto; }
.gm-quote blockquote { margin:30px auto; padding:0; border:0; color:var(--gm-muted); font-size:clamp(23px,2.45vw,33px); line-height:1.52; letter-spacing:-.022em; }
.gm-card { display:flex; flex-direction:column; gap:20px; min-height:285px; border-top:1px solid var(--gm-rule); padding:22px 0; text-decoration:none; }
.gm-card-foot { margin-top:auto; border-top:1px solid var(--gm-rule); padding-top:14px; }
.gm-photo, .gm-photo .et_pb_image_wrap { display:block; width:100%; }
.gm-photo img, .gm-scan img { display:block; width:100%; height:auto; object-fit:contain; }
.gm-gallery .gm-photo img { max-height: min(75vh,720px); }
.gm-caption { letter-spacing:.055em; }
.gm-caption small, .gm-caption .gm-note { display:block; }
.gm-photo-action { display:block; width:100%; border:0; padding:0; background:transparent; cursor:zoom-in; }
.gm-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:30px; margin:24px 0; }
.gm-cover { padding:24px; border:1px solid var(--gm-rule); display:grid; align-content:space-between; gap:24px; }
.gm-entry, .gm-essay { border-top:1px solid var(--gm-rule); padding:22px 0; }
.gm-essay summary { cursor:pointer; padding:12px 0; }
.gm-essay summary span { margin-right:1em; }
.gm-essay summary small { display:block; color:var(--gm-muted); }
.gm-essay-body { max-width:82ch; margin:32px auto; }
.gm-scan { margin:24px 0; }
.gm-header.et_pb_section, .gm-footer-section.et_pb_section { padding:0; }
.gm-masthead, .gm-footer { display:flex; align-items:center; gap:22px; justify-content:space-between; min-height:90px; }
.gm-brand { display:inline-flex; align-items:center; gap:14px; text-transform:uppercase; font-size:clamp(16px,2vw,21px); letter-spacing:.09em; white-space:nowrap; }
.gm-brand img { width:32px; height:auto; }
.gm-masthead a { text-decoration:none; }
.gm-masthead a:hover { text-decoration:underline; }
.gm-desktop { display:flex; gap:clamp(12px,2vw,34px); margin-left:auto; }
.gm-desktop a, .gm-mobile { font-size:11px; letter-spacing:.12em; }
.gm-mobile, .gm-language:empty { display:none; }
.gm-footer { border-top:1px solid var(--gm-rule); padding:24px 0; color:var(--gm-muted); font-size:13px; }
.gm-footer address { font-style:normal; }
.gm-dialog { box-sizing:border-box; width:min(94vw,1250px); max-height:94dvh; padding:clamp(14px,2vw,32px); margin:auto; border:0; background:var(--gm-paper); color:var(--gm-ink); }
.gm-dialog::backdrop { background:rgb(24 24 24 / 80%); }
.gm-dialog img { display:block; width:100%; height:min(64vh,760px); object-fit:contain; }
.gm-dialog nav { display:flex; justify-content:space-between; gap:10px; align-items:center; margin-top:16px; }
.gm-dialog button { padding:10px; background:transparent; border:1px solid var(--gm-rule); color:inherit; cursor:pointer; }
@media (max-width:760px) {
    .gm-desktop { display:none; }
    .gm-mobile { display:block; position:relative; }
    .gm-mobile summary { cursor:pointer; padding:10px 0; }
    .gm-mobile nav { position:absolute; z-index:12; right:0; min-width:155px; padding:10px; background:var(--gm-paper); border:1px solid var(--gm-rule); }
    .gm-mobile a { display:block; padding:10px; }
    .gm-masthead { min-height:76px; gap:10px; }
    .gm-masthead .gm-language { margin-left:auto; }
    .gm-pair { grid-template-columns:1fr; }
    .gm-footer { align-items:flex-start; flex-direction:column; }
    .gm-gallery .gm-photo img { max-height:none; }
}

/* Le medesime classi possono essere assegnate al modulo dal Visual Builder. */
.gm-section .gm-title :is(h1,h2,h3) { font:inherit; letter-spacing:inherit; line-height:inherit; padding:0; }
.gm-section .gm-subhead :is(h2,h3,h4), .gm-section .gm-label :is(h2,h3,h4,p),
.gm-section .gm-body p, .gm-section .gm-lead p, .gm-section .gm-note p {
    font:inherit; color:inherit; letter-spacing:inherit;
}
.gm-section .et_pb_module.gm-body { max-width:74ch; font-size:clamp(15px,1.25vw,18px); line-height:1.8; }
.et-l--header:has(.gm-header) { position:sticky; top:var(--wp-admin--admin-bar--height,0px); z-index:90; }
