.shh,
.shh * {
    box-sizing: border-box;
}

.shh {
    width: 100%;
    margin: 0 auto;
}

.shh a {
    color: inherit;
    text-decoration: none;
}

.shh-main-item,
.shh-card-item {
    width: 100%;
}

.shh-main-visual,
.shh-card-visual {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    background: #eeeeee;
}

.shh-main-visual {
    aspect-ratio: 16 / 7;
}

.shh-card-visual {
    aspect-ratio: 3 / 4;
}

.shh-main-visual img,
.shh-card-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.45s ease;
}

.shh-main-visual:hover img,
.shh-card-visual:hover img {
    transform: scale(1.025);
}

.shh-gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0,0,0,0) 42%, rgba(0,0,0,0.58) 100%);
}

.shh-overlay {
    position: absolute;
    z-index: 2;
    left: clamp(18px, 4vw, 62px);
    bottom: clamp(18px, 4vw, 54px);
    width: min(72%, 560px);
    color: #ffffff;
}

.shh-overlay-card {
    left: clamp(14px, 2vw, 28px);
    bottom: clamp(14px, 2vw, 28px);
    width: calc(100% - 36px);
}

.shh-title-text {
    margin: 0 0 14px;
    padding: 0;
    font-family: inherit;
    font-size: clamp(26px, 4vw, 58px);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #ffffff;
}

.shh-overlay-card .shh-title-text {
    margin-bottom: 12px;
    font-size: clamp(17px, 1.7vw, 28px);
    line-height: 1.08;
}

.shh-title-png {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: min(100%, 420px);
    max-height: 180px;
    margin: 0 0 18px;
    object-fit: contain !important;
    object-position: left bottom !important;
}

.shh-overlay-card .shh-title-png {
    max-width: min(92%, 260px);
    max-height: 110px;
    margin-bottom: 12px;
}

.shh-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 22px;
    border: 1px solid currentColor;
    color: #ffffff;
    font-size: 13px;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.18);
    transition: background 0.25s ease, color 0.25s ease;
}

.shh-button-small {
    min-height: 36px;
    padding: 9px 16px;
    font-size: 11px;
}

.shh-main-visual:hover .shh-button,
.shh-card-visual:hover .shh-button {
    background: #ffffff;
    color: #111111;
}

.shh-main-description {
    max-width: 1180px;
    margin: 42px auto 56px;
    padding: 0 28px;
    column-count: 2;
    column-gap: clamp(48px, 8vw, 112px);
    column-fill: balance;
    font-size: clamp(14px, 1vw, 16px);
    line-height: 1.82;
    color: #262626;
}

.shh-main-description p:first-child {
    margin-top: 0;
}

.shh-main-description p:last-child {
    margin-bottom: 0;
}

.shh-grid {
    display: grid;
    width: 100%;
    gap: 24px;
}

.shh-grid-home {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 42px;
}

.shh-grid-archive {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.shh-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 24px;
    text-align: center;
    color: #777777;
    background: #eeeeee;
}

.shh-empty {
    padding: 18px 0;
    text-align: center;
}

.shh-form-wrap {
    width: min(100%, 980px);
    margin: 0 auto;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
}

.shh-form-field {
    margin-bottom: 20px;
}

.shh-form-field label,
.shh-form-field legend {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.shh-form-field input[type="text"],
.shh-form-field input[type="url"],
.shh-form-field input[type="number"],
.shh-form-field input[type="file"],
.shh-form-field select,
.shh-form-field textarea {
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    border: 1px solid #d6d6d6;
    border-radius: 0;
    background: #ffffff;
}

.shh-form-field small,
.shh-form-schedule p {
    display: block;
    margin-top: 6px;
    color: #666666;
    font-size: 13px;
}

.shh-form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.shh-form-date-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.shh-form-fieldset {
    padding: 16px;
    border: 1px solid #dddddd;
}

.shh-form-fieldset label {
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
    margin-bottom: 8px;
    font-weight: 400;
}

.shh-form-fieldset input {
    margin-right: 7px;
}

.shh-form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 24px;
    border: 1px solid #111111;
    color: #ffffff;
    background: #111111;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.shh-form-message {
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid transparent;
}

.shh-form-message-success {
    border-color: #b8dfc2;
    background: #effaf2;
    color: #17672a;
}

.shh-form-message-error {
    border-color: #e2b6b6;
    background: #fff1f1;
    color: #8a1f1f;
}

@media (max-width: 1024px) {
    .shh-grid-home,
    .shh-grid-archive {
        gap: 18px;
    }

    .shh-overlay-card .shh-title-text {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .shh-main-visual {
        aspect-ratio: 4 / 5;
    }

    .shh-main-description {
        column-count: 1;
        margin: 28px auto 38px;
        padding: 0 18px;
    }

    .shh-grid-home,
    .shh-grid-archive {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-top: 24px;
    }

    .shh-card-visual {
        aspect-ratio: 3 / 4;
    }

    .shh-overlay {
        left: 18px;
        bottom: 18px;
        width: calc(100% - 36px);
    }

    .shh-overlay-card {
        left: 12px;
        bottom: 12px;
        width: calc(100% - 24px);
    }

    .shh-title-text {
        font-size: 30px;
    }

    .shh-overlay-card .shh-title-text {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .shh-title-png {
        max-width: 82%;
        max-height: 125px;
    }

    .shh-overlay-card .shh-title-png {
        max-width: 90%;
        max-height: 72px;
        margin-bottom: 8px;
    }

    .shh-button {
        min-height: 36px;
        padding: 9px 15px;
        font-size: 10px;
    }

    .shh-button-small {
        min-height: 30px;
        padding: 7px 10px;
        font-size: 9px;
    }

    .shh-form-wrap {
        padding: 18px;
    }

    .shh-form-grid-2,
    .shh-form-date-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .shh-form-fieldset label {
        display: flex;
        width: 100%;
    }
}



/* Editor frontend: icone bianche su fondo #630d30. */
.shh-form-wrap .wp-editor-wrap .wp-editor-tools {
    margin-bottom: 0;
}

.shh-form-wrap .wp-switch-editor {
    border: 1px solid #630d30 !important;
    background: #ffffff !important;
    color: #630d30 !important;
    box-shadow: none !important;
}

.shh-form-wrap .tmce-active .switch-tmce,
.shh-form-wrap .html-active .switch-html {
    background: #630d30 !important;
    color: #ffffff !important;
    border-color: #630d30 !important;
}

.shh-form-wrap .wp-editor-container,
.shh-form-wrap .quicktags-toolbar,
.shh-form-wrap .mce-toolbar-grp,
.shh-form-wrap .mce-top-part::before {
    border-color: #630d30 !important;
}

.shh-form-wrap .quicktags-toolbar {
    background: #ffffff !important;
    padding: 6px !important;
}

.shh-form-wrap .quicktags-toolbar input.ed_button,
.shh-form-wrap .wp-editor-wrap .mce-toolbar .mce-btn button,
.shh-form-wrap .wp-editor-wrap .mce-toolbar .mce-splitbtn button {
    min-width: 30px;
    min-height: 30px;
    padding: 4px 7px;
    border: 0 !important;
    border-radius: 0 !important;
    background: #630d30 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.shh-form-wrap .quicktags-toolbar input.ed_button {
    line-height: 1 !important;
}

.shh-form-wrap .wp-editor-wrap .mce-toolbar .mce-btn,
.shh-form-wrap .wp-editor-wrap .mce-toolbar .mce-splitbtn {
    margin-right: 4px !important;
}

.shh-form-wrap .wp-editor-wrap .mce-toolbar .mce-btn:hover button,
.shh-form-wrap .wp-editor-wrap .mce-toolbar .mce-btn:focus button,
.shh-form-wrap .wp-editor-wrap .mce-toolbar .mce-splitbtn:hover button,
.shh-form-wrap .wp-editor-wrap .mce-toolbar .mce-splitbtn:focus button,
.shh-form-wrap .quicktags-toolbar input.ed_button:hover,
.shh-form-wrap .quicktags-toolbar input.ed_button:focus {
    background: #7f1842 !important;
    color: #ffffff !important;
}

.shh-form-wrap .wp-editor-wrap .mce-toolbar .mce-ico,
.shh-form-wrap .wp-editor-wrap .mce-toolbar .mce-btn i.mce-ico,
.shh-form-wrap .wp-editor-wrap .mce-toolbar .mce-splitbtn i.mce-ico {
    color: #ffffff !important;
    opacity: 1 !important;
    text-shadow: none !important;
    font-family: tinymce, Arial, sans-serif !important;
    font-style: normal !important;
    font-weight: normal !important;
    speak: none;
}

.shh-form-wrap .wp-editor-wrap .mce-toolbar .mce-btn .mce-caret,
.shh-form-wrap .wp-editor-wrap .mce-toolbar .mce-splitbtn .mce-caret {
    border-top-color: #ffffff !important;
}


/* v1.0.3 - Colori personalizzabili overlay/bottone. */
.shh-main-visual,
.shh-card-visual {
    --shh-overlay-color: #ffffff;
    --shh-button-color: #ffffff;
    --shh-button-hover-color: #111111;
}

.shh-overlay,
.shh-title-text {
    color: var(--shh-overlay-color, #ffffff) !important;
}

.shh-button {
    color: var(--shh-button-color, #ffffff) !important;
    border-color: var(--shh-button-color, #ffffff) !important;
}

.shh-main-visual:hover .shh-button,
.shh-card-visual:hover .shh-button {
    background: var(--shh-button-color, #ffffff) !important;
    color: var(--shh-button-hover-color, #111111) !important;
}

/* v1.0.3 - Fix forte icone TinyMCE frontend.
   Alcuni temi sovrascrivono il font delle icone: qui forziamo un fallback testuale leggibile. */
.shh-form-wrap .wp-editor-wrap .mce-toolbar .mce-btn button,
.shh-form-wrap .wp-editor-wrap .mce-toolbar .mce-splitbtn button,
.shh-form-wrap .quicktags-toolbar input.ed_button {
    background: #630d30 !important;
    color: #ffffff !important;
    border-color: #630d30 !important;
}

.shh-form-wrap .wp-editor-wrap .mce-toolbar .mce-ico,
.shh-form-wrap .wp-editor-wrap .mce-toolbar .mce-ico:before {
    color: #ffffff !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

.shh-form-wrap .wp-editor-wrap .mce-toolbar .mce-i-bold:before { content: "B" !important; font-family: Arial, sans-serif !important; font-weight: 700 !important; }
.shh-form-wrap .wp-editor-wrap .mce-toolbar .mce-i-italic:before { content: "I" !important; font-family: Arial, sans-serif !important; font-style: italic !important; font-weight: 700 !important; }
.shh-form-wrap .wp-editor-wrap .mce-toolbar .mce-i-underline:before { content: "U" !important; font-family: Arial, sans-serif !important; text-decoration: underline !important; font-weight: 700 !important; }
.shh-form-wrap .wp-editor-wrap .mce-toolbar .mce-i-blockquote:before { content: "“" !important; font-family: Georgia, serif !important; font-weight: 700 !important; }
.shh-form-wrap .wp-editor-wrap .mce-toolbar .mce-i-strikethrough:before { content: "S" !important; font-family: Arial, sans-serif !important; text-decoration: line-through !important; font-weight: 700 !important; }
.shh-form-wrap .wp-editor-wrap .mce-toolbar .mce-i-bullist:before { content: "•" !important; font-family: Arial, sans-serif !important; font-weight: 700 !important; }
.shh-form-wrap .wp-editor-wrap .mce-toolbar .mce-i-numlist:before { content: "1" !important; font-family: Arial, sans-serif !important; font-weight: 700 !important; }
.shh-form-wrap .wp-editor-wrap .mce-toolbar .mce-i-alignleft:before { content: "L" !important; font-family: Arial, sans-serif !important; font-weight: 700 !important; }
.shh-form-wrap .wp-editor-wrap .mce-toolbar .mce-i-aligncenter:before { content: "C" !important; font-family: Arial, sans-serif !important; font-weight: 700 !important; }
.shh-form-wrap .wp-editor-wrap .mce-toolbar .mce-i-alignright:before { content: "R" !important; font-family: Arial, sans-serif !important; font-weight: 700 !important; }
.shh-form-wrap .wp-editor-wrap .mce-toolbar .mce-i-undo:before { content: "↶" !important; font-family: Arial, sans-serif !important; font-weight: 700 !important; }
.shh-form-wrap .wp-editor-wrap .mce-toolbar .mce-i-redo:before { content: "↷" !important; font-family: Arial, sans-serif !important; font-weight: 700 !important; }
.shh-form-wrap .wp-editor-wrap .mce-toolbar .mce-i-link:before { content: "🔗" !important; font-family: Arial, sans-serif !important; font-weight: 700 !important; }
.shh-form-wrap .wp-editor-wrap .mce-toolbar .mce-i-unlink:before { content: "×" !important; font-family: Arial, sans-serif !important; font-weight: 700 !important; }
.shh-form-wrap .wp-editor-wrap .mce-toolbar .mce-i-fullscreen:before { content: "⛶" !important; font-family: Arial, sans-serif !important; font-weight: 700 !important; }
.shh-form-wrap .wp-editor-wrap .mce-toolbar .mce-i-wp_more:before { content: "…" !important; font-family: Arial, sans-serif !important; font-weight: 700 !important; }
.shh-form-wrap .wp-editor-wrap .mce-toolbar .mce-i-wp_adv:before { content: "⋯" !important; font-family: Arial, sans-serif !important; font-weight: 700 !important; }
.shh-form-wrap .wp-editor-wrap .mce-toolbar .mce-i-pastetext:before { content: "T" !important; font-family: Arial, sans-serif !important; font-weight: 700 !important; }
.shh-form-wrap .wp-editor-wrap .mce-toolbar .mce-i-removeformat:before { content: "✕" !important; font-family: Arial, sans-serif !important; font-weight: 700 !important; }
.shh-form-wrap .wp-editor-wrap .mce-toolbar .mce-i-charmap:before { content: "Ω" !important; font-family: Arial, sans-serif !important; font-weight: 700 !important; }
.shh-form-wrap .wp-editor-wrap .mce-toolbar .mce-i-outdent:before { content: "←" !important; font-family: Arial, sans-serif !important; font-weight: 700 !important; }
.shh-form-wrap .wp-editor-wrap .mce-toolbar .mce-i-indent:before { content: "→" !important; font-family: Arial, sans-serif !important; font-weight: 700 !important; }
.shh-form-wrap .wp-editor-wrap .mce-toolbar .mce-i-help:before { content: "?" !important; font-family: Arial, sans-serif !important; font-weight: 700 !important; }


/* v1.0.4 - Overlay: bottone centrato rispetto a titolo testuale/logo e stile più editoriale. */
.shh-overlay {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    width: auto;
    max-width: min(72vw, 620px);
    text-align: center;
}

.shh-overlay-main {
    max-width: min(72vw, 620px);
}

.shh-overlay-card {
    max-width: calc(100% - 36px);
}

.shh-title-text,
.shh-title-png {
    align-self: center;
}

.shh-title-text {
    margin-right: 0;
    margin-left: 0;
    text-align: center;
}

.shh-title-png {
    margin-right: auto;
    margin-left: auto;
}

.shh-button {
    position: relative;
    align-self: center;
    min-height: 46px;
    padding: 13px 30px;
    border-width: 1px;
    border-style: solid;
    border-radius: 0;
    background: var(--shh-button-color, #ffffff) !important;
    color: var(--shh-button-hover-color, #111111) !important;
    border-color: var(--shh-button-color, #ffffff) !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.17em;
    line-height: 1;
    text-transform: uppercase;
    transform: translateY(0);
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.shh-button::after {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px solid currentColor;
    opacity: 0.14;
    pointer-events: none;
}

.shh-button-small {
    min-height: 34px;
    padding: 9px 16px;
    font-size: 9px;
    letter-spacing: 0.13em;
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.12);
}

.shh-main-visual:hover .shh-button,
.shh-card-visual:hover .shh-button {
    background: transparent !important;
    color: var(--shh-button-color, #ffffff) !important;
    border-color: var(--shh-button-color, #ffffff) !important;
    transform: translateY(-1px);
    box-shadow: 0 13px 30px rgba(0, 0, 0, 0.18);
}

@media (max-width: 767px) {
    .shh-overlay,
    .shh-overlay-main {
        max-width: calc(100% - 36px);
    }

    .shh-button {
        min-height: 38px;
        padding: 10px 18px;
        font-size: 10px;
        letter-spacing: 0.14em;
    }

    .shh-button-small {
        min-height: 30px;
        padding: 8px 11px;
        font-size: 8px;
        letter-spacing: 0.1em;
    }
}

/* v1.0.4 - Fallback ulteriore icone editor Visual frontend. */
.shh-form-wrap .wp-editor-wrap .mce-toolbar .mce-ico {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    overflow: visible !important;
    color: #ffffff !important;
    font-size: 13px !important;
    line-height: 20px !important;
    text-align: center !important;
    text-indent: 0 !important;
}

.shh-form-wrap .wp-editor-wrap .mce-toolbar .mce-ico:before {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
    color: #ffffff !important;
    font-size: 13px !important;
    line-height: 20px !important;
    text-align: center !important;
    text-indent: 0 !important;
    opacity: 1 !important;
}

.shh-form-wrap .wp-editor-wrap .mce-toolbar .shh-icon-fallback {
    font-family: Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}

.shh-form-wrap .wp-editor-wrap .mce-toolbar .shh-icon-fallback:before {
    content: none !important;
}

/* v1.0.5 - Blocco grande: allineamento overlay e seconda immagine/testo superiore. */
.shh-main-top-png {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: min(100%, 620px);
    max-height: 260px;
    margin: 0 auto clamp(22px, 3vw, 46px);
    object-fit: contain !important;
    object-position: center center !important;
}

.shh-main-align-left .shh-overlay-main {
    left: clamp(18px, 4vw, 62px) !important;
    right: auto !important;
    transform: none !important;
}

.shh-main-align-center .shh-overlay-main {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
}

.shh-main-align-right .shh-overlay-main {
    left: auto !important;
    right: clamp(18px, 4vw, 62px) !important;
    transform: none !important;
}

.shh-main-align-left .shh-overlay-main,
.shh-main-align-center .shh-overlay-main,
.shh-main-align-right .shh-overlay-main {
    bottom: clamp(18px, 4vw, 54px);
}

@media (max-width: 767px) {
    .shh-main-top-png {
        max-width: 88%;
        max-height: 130px;
        margin-bottom: 18px;
    }

    .shh-main-align-left .shh-overlay-main,
    .shh-main-align-center .shh-overlay-main,
    .shh-main-align-right .shh-overlay-main {
        left: 18px !important;
        right: auto !important;
        transform: none !important;
        max-width: calc(100% - 36px);
    }
}

/* v1.0.6 - Titolo/sottotitolo testuale blocco grande + allineamento verticale overlay. */
.shh-main-text-block {
    max-width: 1180px;
    margin: 42px auto 56px;
    padding: 0 28px;
    color: #262626;
}

.shh-main-text-header {
    margin: 0 0 28px;
}

.shh-main-text-title {
    margin: 0 0 4px;
    padding: 0;
    font-size: clamp(18px, 1.6vw, 26px);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #222222;
}

.shh-main-text-subtitle {
    margin: 0;
    font-size: clamp(15px, 1.1vw, 18px);
    font-weight: 600;
    line-height: 1.35;
    color: #222222;
}

.shh-main-text-block .shh-main-description {
    max-width: none;
    margin: 0;
    padding: 0;
}

.shh-main-align-left .shh-overlay-main {
    --shh-overlay-x: 0;
}

.shh-main-align-center .shh-overlay-main {
    --shh-overlay-x: -50%;
}

.shh-main-align-right .shh-overlay-main {
    --shh-overlay-x: 0;
}

.shh-main-valign-bottom .shh-overlay-main {
    top: auto !important;
    bottom: clamp(18px, 4vw, 54px) !important;
    --shh-overlay-y: 0;
}

.shh-main-valign-top .shh-overlay-main {
    top: clamp(18px, 4vw, 54px) !important;
    bottom: auto !important;
    --shh-overlay-y: 0;
}

.shh-main-valign-center .shh-overlay-main {
    top: 50% !important;
    bottom: auto !important;
    --shh-overlay-y: -50%;
}

.shh-main-align-left .shh-overlay-main,
.shh-main-align-center .shh-overlay-main,
.shh-main-align-right .shh-overlay-main {
    transform: translate(var(--shh-overlay-x, 0), var(--shh-overlay-y, 0)) !important;
}

@media (max-width: 767px) {
    .shh-main-text-block {
        margin: 28px auto 38px;
        padding: 0 18px;
    }

    .shh-main-text-header {
        margin-bottom: 22px;
    }

    .shh-main-text-title {
        font-size: 18px;
    }

    .shh-main-text-subtitle {
        font-size: 15px;
    }

    .shh-main-valign-top .shh-overlay-main,
    .shh-main-valign-center .shh-overlay-main,
    .shh-main-valign-bottom .shh-overlay-main {
        top: auto !important;
        bottom: 18px !important;
        --shh-overlay-x: 0;
        --shh-overlay-y: 0;
        transform: none !important;
    }
}
