/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Sep 30 2026 | 15:11:50 */
/*
 * Scopri Cotronei - modulo 13-concorso-fotografico.css
 * Estratto senza modifiche funzionali dal CSS originale.
 * Righe originali: 62212-64032.
 * Contenuto: Concorso fotografico e relativi fix/modulo Jetpack/lightbox.
 */

/* ==========================================================
   CONCORSO FOTOGRAFICO - CSS GENERICO MULTIEDIZIONE
   Prefisso: cfc-
   ========================================================== */

.cfc-contest {
    --cfc-brown: #742f17;
    --cfc-brown-dark: #4a1d0e;
    --cfc-rust: #a6491c;
    --cfc-gold: #d8a33a;
    --cfc-cream: #f8f1e7;
    --cfc-cream-light: #fdfaf6;
    --cfc-text: #302824;
    --cfc-soft: #6c615b;
    --cfc-border: rgba(116, 47, 23, .16);
    --cfc-shadow: 0 15px 40px rgba(70, 30, 14, .08);

    /* Fa uscire il contenuto dal max-width "constrained" di Gutenberg. */
    position: relative;
    left: 50%;
    transform: translateX(-50%);

    width: min(1160px, calc(100vw - 32px)) !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 0 64px !important;

    color: var(--cfc-text);
    box-sizing: border-box;
}

.cfc-contest,
.cfc-contest *,
.cfc-contest *::before,
.cfc-contest *::after {
    box-sizing: border-box;
}

.cfc-contest h1,
.cfc-contest h2,
.cfc-contest h3,
.cfc-contest p {
    margin-block-start: 0;
    margin-block-end: 0;
}

.cfc-contest a {
    text-decoration: none;
}

/* ==========================================================
   BREADCRUMB
   ========================================================== */

.cfc-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin: 18px 0 15px !important;
    color: var(--cfc-soft);
    font-size: 13px;
}

.cfc-breadcrumb a {
    color: var(--cfc-brown) !important;
    font-weight: 750;
}

/* ==========================================================
   HERO
   ========================================================== */

.cfc-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 300px);
    gap: 52px;
    align-items: center;

    width: 100%;
    min-height: 0;
    padding: 48px 54px;

    border: 1px solid var(--cfc-border);
    border-radius: 34px;

    background:
        radial-gradient(
            circle at 91% 8%,
            rgba(216, 163, 58, .21),
            transparent 31%
        ),
        var(--cfc-cream);

    box-shadow: var(--cfc-shadow);
}

.cfc-hero-copy {
    min-width: 0;
    max-width: 720px;
}

.cfc-kicker,
.cfc-heading > span,
.cfc-voting-header > span,
.cfc-modal-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 28px;
    padding: 0 13px;
    border-radius: 999px;
    background: #fff;
    color: var(--cfc-rust);
    font-size: 10px;
    font-weight: 850;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.cfc-hero h1 {
    max-width: 700px;
    margin: 16px 0 0 !important;
    color: var(--cfc-brown);
    font-size: clamp(43px, 5vw, 67px);
    font-weight: 850;
    line-height: 1.01;
    letter-spacing: -1.25px;
}

.cfc-hero-claim {
    max-width: 650px;
    margin-top: 21px !important;
    color: var(--cfc-rust);
    font-size: clamp(18px, 2vw, 23px);
    font-weight: 760;
    line-height: 1.35;
}

.cfc-hero-text {
    max-width: 640px;
    margin-top: 17px !important;
    color: var(--cfc-soft);
    font-size: 16px;
    line-height: 1.72;
}

.cfc-hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.cfc-hero-logo img {
    display: block;
    width: min(280px, 100%);
    height: auto;
    object-fit: contain;
}

/* ==========================================================
   HERO BUTTONS
   ========================================================== */

.cfc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.cfc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 820;
    line-height: 1.2;
    transition: transform .18s ease, background .18s ease, color .18s ease;
}

.cfc-btn:hover {
    transform: translateY(-2px);
}

.cfc-btn-primary {
    background: var(--cfc-brown);
    color: #fff !important;
}

.cfc-btn-primary:hover {
    background: var(--cfc-brown-dark);
}

.cfc-btn-light {
    border: 1px solid var(--cfc-border);
    background: #fff;
    color: var(--cfc-brown) !important;
}

.cfc-btn-light:hover {
    background: var(--cfc-brown);
    color: #fff !important;
}

/* ==========================================================
   DATE
   ========================================================== */

.cfc-dates {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    max-width: 960px;
    margin: 26px auto 74px !important;
}

.cfc-date {
    padding: 23px 22px;
    border: 1px solid var(--cfc-border);
    border-radius: 20px;
    background: #fff;
    text-align: center;
    box-shadow: 0 8px 24px rgba(70, 30, 14, .035);
}

.cfc-date span {
    display: block;
    color: var(--cfc-rust);
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.cfc-date strong {
    display: block;
    margin-top: 8px;
    color: var(--cfc-brown);
    font-size: 27px;
    line-height: 1.1;
}

.cfc-date small {
    display: block;
    margin-top: 6px;
    color: var(--cfc-soft);
    font-size: 12px;
}

/* ==========================================================
   TITOLI SEZIONI
   ========================================================== */

.cfc-heading {
    width: 100%;
    max-width: 840px;
    margin: 0 auto 35px !important;
    text-align: center;
}

.cfc-heading > span {
    margin: 0 auto 12px;
    background: var(--cfc-cream);
}

.cfc-heading h2,
.cfc-presentation-copy h2,
.cfc-voting-header h2 {
    color: var(--cfc-brown);
    font-size: clamp(31px, 4vw, 46px);
    font-weight: 850;
    line-height: 1.07;
    letter-spacing: -.7px;
}

.cfc-heading p {
    max-width: 740px;
    margin: 15px auto 0 !important;
    color: var(--cfc-soft);
    font-size: 16px;
    line-height: 1.7;
}

/* ==========================================================
   LOCANDINA / PRESENTAZIONE
   ========================================================== */

.cfc-presentation {
    display: grid;
    grid-template-columns: minmax(300px, 370px) minmax(0, 1fr);
    gap: 58px;
    align-items: center;

    width: 100%;
    margin: 0 0 80px !important;
    padding: 40px 46px;

    border: 1px solid rgba(116, 47, 23, .06);
    border-radius: 30px;
    background: var(--cfc-cream);
}

.cfc-poster {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

.cfc-poster-open {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    text-align: inherit;
}

.cfc-poster-open img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(70, 30, 14, .13);
}

.cfc-poster-open > span {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(35, 17, 9, .78);
    color: #fff;
    font-size: 10px;
    font-weight: 750;
    opacity: 0;
    transition: opacity .2s ease;
}

.cfc-poster-open:hover > span {
    opacity: 1;
}

.cfc-presentation-copy {
    width: 100%;
    max-width: 610px;
}

.cfc-presentation-copy .cfc-kicker {
    margin-bottom: 14px;
}

.cfc-presentation-copy h2 {
    max-width: 580px;
    font-size: clamp(35px, 4vw, 49px);
    line-height: 1.04;
}

.cfc-presentation-copy p {
    max-width: 580px;
    margin-top: 17px !important;
    color: var(--cfc-soft);
    font-size: 16px;
    line-height: 1.7;
}

.cfc-winner-box {
    max-width: 540px;
    margin: 23px 0;
    padding: 17px 19px;
    border-left: 4px solid var(--cfc-gold);
    border-radius: 0 15px 15px 0;
    background: #fff;
    color: var(--cfc-brown);
    font-size: 15px;
    line-height: 1.52;
}

.cfc-presentation-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    padding: 0 20px;
    border: 1px solid var(--cfc-brown);
    border-radius: 999px;
    background: var(--cfc-brown);
    color: #fff !important;
    font-size: 13px;
    font-weight: 820;
    line-height: 1.2;
    transition: transform .18s ease, background .18s ease;
}

.cfc-presentation-button:hover {
    transform: translateY(-2px);
    background: var(--cfc-brown-dark);
}

/* ==========================================================
   PARTECIPAZIONE
   ========================================================== */

.cfc-submission {
    width: 100%;
    margin: 0 0 88px !important;
}

.cfc-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    max-width: 980px;
    margin: 0 auto 34px !important;
}

.cfc-steps article {
    min-width: 0;
    padding: 25px 25px 24px;
    border: 1px solid var(--cfc-border);
    border-radius: 21px;
    background: #fff;
}

.cfc-steps article > span {
    display: block;
    color: var(--cfc-gold);
    font-size: 29px;
    font-weight: 850;
}

.cfc-steps strong {
    display: block;
    margin-top: 13px;
    color: var(--cfc-brown);
    font-size: 19px;
}

.cfc-steps p {
    margin-top: 9px !important;
    color: var(--cfc-soft);
    font-size: 14px;
    line-height: 1.6;
}

/* ==========================================================
   FORM
   ========================================================== */

.cfc-form-box {
    width: 100%;
    max-width: 860px;
    margin: 0 auto !important;
    padding: 34px 36px;
    border: 1px solid var(--cfc-border);
    border-radius: 27px;
    background: #fff;
    box-shadow: var(--cfc-shadow);
}

.cfc-form {
    margin: 0;
}

.cfc-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.cfc-field {
    margin: 0 0 19px;
}

.cfc-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--cfc-brown);
    font-size: 13px;
    font-weight: 800;
}

.cfc-field input[type="text"],
.cfc-field input[type="email"],
.cfc-field textarea {
    width: 100%;
    min-height: 47px;
    margin: 0;
    padding: 11px 14px;
    border: 1px solid rgba(116, 47, 23, .20);
    border-radius: 11px;
    background: #fff;
    color: var(--cfc-text);
    font: inherit;
    font-size: 15px;
    box-shadow: none;
    outline: none;
}

.cfc-field textarea {
    min-height: 125px;
    resize: vertical;
}

.cfc-field input[type="text"]:focus,
.cfc-field input[type="email"]:focus,
.cfc-field textarea:focus {
    border-color: var(--cfc-brown);
    box-shadow: 0 0 0 3px rgba(116, 47, 23, .07);
}

.cfc-field input[type="file"] {
    width: 100%;
    padding: 14px;
    border: 2px dashed rgba(116, 47, 23, .23);
    border-radius: 14px;
    background: var(--cfc-cream-light);
    color: var(--cfc-soft);
    font: inherit;
    font-size: 13px;
}

.cfc-field input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 9px 14px;
    border: 0;
    border-radius: 999px;
    background: var(--cfc-brown);
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.cfc-field small {
    display: block;
    margin-top: 7px;
    color: var(--cfc-soft);
    font-size: 11px;
    line-height: 1.45;
}

.cfc-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 14px 0;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--cfc-cream-light);
    color: var(--cfc-soft);
    font-size: 13px;
    line-height: 1.55;
    cursor: pointer;
}

.cfc-check input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--cfc-brown);
}

.cfc-minor-field[hidden] {
    display: none !important;
}

.cfc-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 8px;
    padding: 0 25px;
    border: 0;
    border-radius: 999px;
    background: var(--cfc-brown);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 820;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}

.cfc-submit-button:hover {
    transform: translateY(-1px);
    background: var(--cfc-brown-dark);
}

.cfc-honeypot {
    position: absolute !important;
    left: -99999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* ==========================================================
   FORM CHIUSO / STATUS
   ========================================================== */

.cfc-form-closed,
.cfc-status,
.cfc-empty {
    width: 100%;
    max-width: 760px;
    margin: 0 auto 32px !important;
    padding: 18px 20px;
    border-radius: 16px;
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
}

.cfc-form-closed,
.cfc-empty {
    border: 1px solid var(--cfc-border);
    background: var(--cfc-cream);
}

.cfc-form-closed strong,
.cfc-empty strong {
    color: var(--cfc-brown);
    font-size: 18px;
}

.cfc-form-closed p,
.cfc-empty p {
    margin-top: 6px !important;
    color: var(--cfc-soft);
}

.cfc-status-success {
    border: 1px solid #b6d8bc;
    background: #f2faf3;
    color: #24602e;
}

.cfc-status-error {
    border: 1px solid #e6bcbc;
    background: #fff5f5;
    color: #852e2e;
}

/* ==========================================================
   VOTAZIONE
   ========================================================== */

.cfc-voting {
    width: 100%;
    margin: 0 0 88px !important;
}

.cfc-voting-header {
    width: 100%;
    max-width: 820px;
    margin: 0 auto 36px !important;
    text-align: center;
}

.cfc-voting-header > span {
    margin: 0 auto 12px;
    background: var(--cfc-cream);
}

.cfc-voting-header h2 {
    font-size: clamp(34px, 4vw, 48px);
}

.cfc-voting-header p {
    max-width: 700px;
    margin: 14px auto 0 !important;
    color: var(--cfc-soft);
    font-size: 15px;
    line-height: 1.7;
}

/* ==========================================================
   GALLERIA
   1 foto centrata, 2 foto centrate, 3+ automatiche
   ========================================================== */

.cfc-gallery {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 340px)) !important;
    justify-content: center !important;
    gap: 24px !important;
    width: 100%;
    margin: 0 auto !important;
}

.cfc-photo-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--cfc-border);
    border-radius: 21px;
    background: #fff;
    box-shadow: 0 9px 25px rgba(70, 30, 14, .05);
    transition: transform .2s ease, box-shadow .2s ease;
}

.cfc-photo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 34px rgba(70, 30, 14, .09);
}

.cfc-photo-open {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: #eee;
    cursor: zoom-in;
    overflow: hidden;
}

.cfc-photo-open img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .25s ease;
}

.cfc-photo-open:hover img {
    transform: scale(1.025);
}

.cfc-photo-open > span {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(35, 17, 9, .78);
    color: #fff;
    font-size: 10px;
    font-weight: 750;
    opacity: 0;
    transition: opacity .2s ease;
}

.cfc-photo-open:hover > span {
    opacity: 1;
}

.cfc-photo-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 19px;
}

.cfc-photo-copy h3 {
    margin: 0 !important;
    color: var(--cfc-brown);
    font-size: 20px;
    font-weight: 850;
    line-height: 1.2;
}

.cfc-photo-location {
    margin-top: 6px;
    color: var(--cfc-rust);
    font-size: 12px;
    font-weight: 750;
}

.cfc-photo-copy p {
    margin-top: 11px !important;
    color: var(--cfc-soft);
    font-size: 13px;
    line-height: 1.55;
}

.cfc-vote-button {
    width: 100%;
    min-height: 44px;
    margin-top: 20px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: var(--cfc-brown);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 820;
    cursor: pointer;
}

.cfc-vote-button:hover {
    background: var(--cfc-brown-dark);
}

.cfc-vote-disabled {
    margin-top: 20px;
    padding: 12px;
    border-radius: 999px;
    background: var(--cfc-cream);
    color: var(--cfc-soft);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

/* ==========================================================
   MODALI / LIGHTBOX
   ========================================================== */

body.cfc-modal-open {
    overflow: hidden;
}

.cfc-modal[hidden] {
    display: none !important;
}

.cfc-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
}

.cfc-modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(17, 10, 7, .90);
    cursor: pointer;
}

.cfc-close {
    position: absolute;
    top: -18px;
    right: -18px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--cfc-brown);
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
}

/* Lightbox */

.cfc-lightbox {
    position: relative;
    z-index: 2;
    width: min(1100px, 100%);
}

.cfc-lightbox img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 84vh;
    margin: 0 auto;
    border-radius: 8px;
    object-fit: contain;
}

.cfc-lightbox-title {
    margin-top: 13px;
    color: #fff;
    font-size: 16px;
    font-weight: 750;
    text-align: center;
}

/* Voto */

.cfc-vote-dialog {
    position: relative;
    z-index: 2;
    width: min(520px, 100%);
    padding: 34px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .28);
}

.cfc-modal-kicker {
    margin-bottom: 11px;
    background: var(--cfc-cream);
}

.cfc-vote-dialog h3 {
    margin: 0 !important;
    color: var(--cfc-brown);
    font-size: 29px;
    font-weight: 850;
    line-height: 1.15;
}

.cfc-selected-photo {
    margin-top: 9px;
    color: var(--cfc-rust);
    font-size: 17px;
    font-weight: 800;
}

.cfc-vote-dialog > p {
    margin-top: 15px !important;
    color: var(--cfc-soft);
    font-size: 14px;
    line-height: 1.6;
}

#cfc-vote-form {
    margin-top: 22px;
}

#cfc-vote-form > label {
    display: block;
    margin-bottom: 7px;
    color: var(--cfc-brown);
    font-size: 13px;
    font-weight: 800;
}

#cfc-vote-email {
    width: 100%;
    min-height: 47px;
    padding: 11px 13px;
    border: 1px solid var(--cfc-border);
    border-radius: 10px;
    font: inherit;
    font-size: 15px;
    outline: none;
}

#cfc-vote-email:focus {
    border-color: var(--cfc-brown);
    box-shadow: 0 0 0 3px rgba(116, 47, 23, .07);
}

.cfc-confirm-button {
    width: 100%;
    min-height: 47px;
    margin-top: 14px;
    border: 0;
    border-radius: 999px;
    background: var(--cfc-brown);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 820;
    cursor: pointer;
}

.cfc-confirm-button:hover {
    background: var(--cfc-brown-dark);
}

.cfc-confirm-button:disabled {
    opacity: .55;
}

.cfc-vote-dialog small {
    display: block;
    margin-top: 17px;
    color: var(--cfc-soft);
    font-size: 11px;
    line-height: 1.5;
}

.cfc-vote-message {
    margin-top: 13px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.cfc-vote-success {
    color: #267032;
}

.cfc-vote-error {
    color: #9b3030;
}

/* ==========================================================
   REGOLAMENTO FINALE
   ========================================================== */

.cfc-regulation {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 44px;
    align-items: center;

    width: min(960px, 100%);
    margin: 0 auto !important;
    padding: 35px 40px;

    border-radius: 28px;
    background: linear-gradient(135deg, var(--cfc-brown-dark), var(--cfc-brown));
    color: #fff;
    box-shadow: var(--cfc-shadow);
}

.cfc-regulation span {
    color: #e7c570;
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.cfc-regulation h2 {
    max-width: 570px;
    margin-top: 7px !important;
    color: #fff;
    font-size: clamp(28px, 3.7vw, 40px);
    font-weight: 850;
    line-height: 1.08;
}

.cfc-regulation p {
    max-width: 590px;
    margin-top: 11px !important;
    color: rgba(255, 255, 255, .84);
    font-size: 14px;
    line-height: 1.6;
}

.cfc-regulation > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 47px;
    padding: 0 22px;
    border-radius: 999px;
    background: #fff;
    color: var(--cfc-brown) !important;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 900px) {
    .cfc-hero,
    .cfc-presentation {
        grid-template-columns: 1fr;
    }

    .cfc-hero {
        gap: 30px;
    }

    .cfc-hero-copy {
        max-width: none;
    }

    .cfc-hero-logo img {
        width: min(250px, 70vw);
    }

    .cfc-presentation {
        gap: 34px;
    }

    .cfc-poster {
        max-width: 440px;
    }

    .cfc-presentation-copy,
    .cfc-presentation-copy h2,
    .cfc-presentation-copy p,
    .cfc-winner-box {
        max-width: none;
    }
}

/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 700px) {
    .cfc-contest {
        width: calc(100vw - 28px) !important;
    }

    .cfc-hero {
        gap: 27px;
        padding: 31px 20px;
        border-radius: 26px;
        text-align: center;
    }

    .cfc-kicker {
        margin-left: auto;
        margin-right: auto;
    }

    .cfc-hero h1 {
        font-size: clamp(34px, 10vw, 46px);
    }

    .cfc-hero-claim,
    .cfc-hero-text {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .cfc-actions {
        flex-direction: column;
    }

    .cfc-btn {
        width: 100%;
    }

    .cfc-dates,
    .cfc-steps,
    .cfc-form-grid {
        grid-template-columns: 1fr;
    }

    .cfc-dates {
        gap: 10px;
        margin-bottom: 58px !important;
    }

    .cfc-presentation {
        gap: 30px;
        padding: 21px 18px;
        border-radius: 24px;
    }

    .cfc-presentation-copy {
        text-align: left;
    }

    .cfc-presentation-copy .cfc-kicker {
        margin-left: 0;
        margin-right: 0;
    }

    .cfc-presentation-button {
        width: 100%;
    }

    .cfc-form-box {
        padding: 24px 18px;
        border-radius: 23px;
    }

    .cfc-submit-button {
        width: 100%;
    }

    .cfc-gallery {
        grid-template-columns: 1fr !important;
        max-width: 470px;
    }

    .cfc-regulation {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 28px 22px;
        text-align: center;
    }

    .cfc-regulation h2,
    .cfc-regulation p {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .cfc-regulation > a {
        width: 100%;
    }

    .cfc-modal {
        padding: 15px;
    }

    .cfc-vote-dialog {
        padding: 27px 20px;
    }

    .cfc-close {
        top: -10px;
        right: -5px;
    }
}

/* ==========================================================
   CFC - MODULO JETPACK DEL CONCORSO
   Aggiungere DOPO il CSS CFC esistente.
   ========================================================== */

.cfc-form-controlled {
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.cfc-form-box {
    width: 100%;
    max-width: 860px !important;
    margin: 0 auto 90px !important;
    padding: 34px 36px !important;
    border: 1px solid var(--cfc-border);
    border-radius: 27px;
    background: #fff;
    box-shadow: var(--cfc-shadow);
}

.cfc-form-box > h2 {
    margin: 0 auto 10px !important;
    color: var(--cfc-brown);
    font-size: clamp(30px, 4vw, 43px);
    font-weight: 850;
    line-height: 1.1;
    text-align: center;
}

.cfc-form-box > p {
    max-width: 650px;
    margin: 0 auto 28px !important;
    color: var(--cfc-soft);
    font-size: 15px;
    line-height: 1.65;
    text-align: center;
}

.cfc-form-box .wp-block-jetpack-contact-form {
    width: 100%;
    max-width: 760px;
    margin: 0 auto !important;
}

.cfc-form-box .wp-block-jetpack-contact-form > div,
.cfc-form-box .grunion-field-wrap {
    margin-top: 0 !important;
    margin-bottom: 19px !important;
}

.cfc-form-box label,
.cfc-form-box .wp-block-jetpack-label {
    display: block;
    margin: 0 0 7px !important;
    color: var(--cfc-brown);
    font-weight: 800;
    line-height: 1.3;
}

.cfc-form-box input[type="text"],
.cfc-form-box input[type="email"],
.cfc-form-box input[type="tel"],
.cfc-form-box input[type="url"],
.cfc-form-box textarea {
    width: 100% !important;
    min-height: 47px !important;
    margin: 0 !important;
    padding: 11px 14px !important;
    border: 1px solid rgba(116, 47, 23, .20) !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: var(--cfc-text) !important;
    font: inherit !important;
    font-size: 15px !important;
    box-shadow: none !important;
    outline: none !important;
}

.cfc-form-box textarea {
    min-height: 130px !important;
    resize: vertical;
}

.cfc-form-box input[type="text"]:focus,
.cfc-form-box input[type="email"]:focus,
.cfc-form-box input[type="tel"]:focus,
.cfc-form-box input[type="url"]:focus,
.cfc-form-box textarea:focus {
    border-color: var(--cfc-brown) !important;
    box-shadow: 0 0 0 3px rgba(116, 47, 23, .07) !important;
}

.cfc-form-box .wp-block-jetpack-dropzone {
    width: 100%;
    min-height: 145px;
    margin: 8px 0 0 !important;
    padding: 24px !important;
    border: 2px dashed rgba(116, 47, 23, .24) !important;
    border-radius: 16px !important;
    background: var(--cfc-cream-light) !important;
    text-align: center;
}

.cfc-form-box .wp-block-jetpack-dropzone p {
    max-width: 560px;
    margin: 0 auto !important;
    color: var(--cfc-soft);
    font-size: 13px;
    line-height: 1.55;
}

.cfc-form-box input[type="checkbox"] {
    accent-color: var(--cfc-brown);
}

.cfc-form-box .is-style-list {
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--cfc-cream-light);
}

.cfc-submit {
    margin: 8px 0 0 !important;
    text-align: center;
}

.cfc-submit .wp-block-button {
    margin: 0 !important;
}

.cfc-submit button,
.cfc-submit .wp-block-button__link {
    min-height: 48px !important;
    padding: 0 25px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--cfc-brown) !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    cursor: pointer;
}

.cfc-submit button:hover,
.cfc-submit .wp-block-button__link:hover {
    background: var(--cfc-brown-dark) !important;
    color: #fff !important;
}

@media (max-width: 700px) {
    .cfc-form-box {
        padding: 24px 18px !important;
        border-radius: 23px;
    }

    .cfc-submit button,
    .cfc-submit .wp-block-button__link {
        width: 100%;
    }
}


/* ==========================================================
   CFC - CORREZIONE LAYOUT GUTENBERG + HERO ORGANIZZATORI
   ========================================================== */

/*
 * Il gruppo principale usa layout "constrained" di Gutenberg.
 * Sblocchiamo solo le sezioni che devono usare la larghezza prevista
 * dal CSS CFC, senza toccare i titoli centrati piu stretti.
 */
.cfc-contest > .cfc-hero,
.cfc-contest > .cfc-presentation,
.cfc-contest > .cfc-form-controlled,
.cfc-contest > .cfc-voting {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.cfc-contest > .cfc-dates {
    width: 100% !important;
    max-width: 960px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.cfc-contest > .cfc-regulation {
    width: min(960px, 100%) !important;
    max-width: 960px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* HERO: conserva il layout orizzontale desktop. */
.cfc-hero {
    grid-template-columns: minmax(0, 1fr) minmax(270px, 320px) !important;
    gap: 52px !important;
}

.cfc-hero-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-width: 0;
}

.cfc-hero-side .cfc-hero-logo {
    width: 100%;
}

.cfc-hero-side .cfc-hero-logo img {
    width: min(250px, 100%);
}

/* ORGANIZZATORI / COLLABORATORI */
.cfc-organizers {
    width: 100%;
    padding-top: 16px;
    border-top: 1px solid var(--cfc-border);
    text-align: center;
}

.cfc-organizers-label {
    display: block;
    margin: 0 0 10px;
    color: var(--cfc-rust);
    font-size: 10px;
    font-weight: 850;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.cfc-organizers-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 14px;
}

.cfc-organizer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.cfc-organizer-logo img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 82px !important;
    max-height: 66px !important;
    object-fit: contain;
}

/*
 * La pagina usa un normale link attorno alla locandina.
 * Lo rendiamo compatibile sia con .cfc-poster-open sia con il markup
 * precedente, evitando che l'immagine torni alla dimensione originale.
 */
.cfc-poster > a {
    display: block;
    width: 100%;
}

.cfc-poster > a > img,
.cfc-poster-open img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(70, 30, 14, .13);
}

/* PRESENTAZIONE: impedisce sovrapposizioni e box eccessivamente verticali. */
.cfc-presentation {
    grid-template-columns: minmax(300px, 370px) minmax(0, 1fr) !important;
    gap: 58px !important;
    align-items: center !important;
}

.cfc-presentation-copy {
    min-width: 0;
}

/* Sezione votazione e regolamento restano proporzionati. */
.cfc-voting-header {
    max-width: 820px !important;
}

.cfc-regulation {
    grid-template-columns: minmax(0, 1fr) auto !important;
}

@media (max-width: 900px) {
    .cfc-hero,
    .cfc-presentation {
        grid-template-columns: 1fr !important;
    }

    .cfc-hero-side {
        width: min(360px, 100%);
        margin: 0 auto;
    }

    .cfc-poster {
        max-width: 440px;
    }

    .cfc-regulation {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 700px) {
    .cfc-organizer-logo img {
        max-width: 72px !important;
        max-height: 58px !important;
    }
}

/* ==========================================================
   CFC - FIX LIGHTBOX FULL SCREEN
   ========================================================== */

.cfc-modal {

    /* Variabili disponibili anche fuori da .cfc-contest */
    --cfc-brown: #742f17;
    --cfc-brown-dark: #4a1d0e;
    --cfc-rust: #a6491c;
    --cfc-gold: #d8a33a;
    --cfc-cream: #f8f1e7;
    --cfc-cream-light: #fdfaf6;
    --cfc-text: #302824;
    --cfc-soft: #6c615b;
    --cfc-border: rgba(116, 47, 23, .16);

    position: fixed !important;

    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;

    width: 100vw !important;
    max-width: none !important;

    height: 100vh !important;
    height: 100dvh !important;

    margin: 0 !important;
    padding: 25px !important;

    transform: none !important;

    z-index: 999999 !important;

    align-items: center !important;
    justify-content: center !important;
}


/* Sfondo */

.cfc-modal-bg {
    position: absolute !important;

    inset: 0 !important;

    width: 100% !important;
    height: 100% !important;

    background:
        rgba(17, 10, 7, .91) !important;

    z-index: 1 !important;
}


/* ==========================================================
   LIGHTBOX
   ========================================================== */

.cfc-lightbox {
    position: relative !important;

    z-index: 2 !important;

    display: flex !important;
    flex-direction: column !important;

    align-items: center !important;
    justify-content: center !important;

    width: auto !important;
    max-width: calc(100vw - 70px) !important;

    height: auto !important;
    max-height: calc(100dvh - 50px) !important;

    margin: 0 auto !important;
}


/* Immagine grande */

.cfc-lightbox img {
    display: block !important;

    width: auto !important;
    height: auto !important;

    max-width: calc(100vw - 70px) !important;
    max-height: calc(100dvh - 100px) !important;

    margin: 0 auto !important;

    border-radius: 10px !important;

    object-fit: contain !important;

    box-shadow:
        0 20px 70px
        rgba(0, 0, 0, .45);
}


/* Titolo */

.cfc-lightbox-title {
    margin-top: 12px !important;

    color: #fff !important;

    font-size: 15px !important;
    font-weight: 750 !important;

    text-align: center !important;
}


/* X */

.cfc-lightbox .cfc-close {
    position: absolute !important;

    top: -18px !important;
    right: -18px !important;

    z-index: 5 !important;

    display: flex !important;

    width: 42px !important;
    height: 42px !important;

    align-items: center !important;
    justify-content: center !important;

    padding: 0 !important;

    border: 0 !important;
    border-radius: 50% !important;

    background: #fff !important;

    color: var(--cfc-brown) !important;

    font-size: 27px !important;
    line-height: 1 !important;

    cursor: pointer !important;

    box-shadow:
        0 5px 18px
        rgba(0, 0, 0, .22);
}


/* ==========================================================
   LOCANDINA CLICCABILE
   ========================================================== */

.cfc-poster-open {
    appearance: none;

    position: relative;

    display: block;

    width: 100%;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;

    background: transparent !important;

    cursor: zoom-in;
}


.cfc-poster-open img {
    display: block;

    width: 100% !important;
    height: auto !important;

    border-radius: 20px;

    box-shadow:
        0 14px 34px
        rgba(70, 30, 14, .13);
}


.cfc-poster-open > span {
    position: absolute;

    right: 12px;
    bottom: 12px;

    padding: 7px 11px;

    border-radius: 999px;

    background:
        rgba(35, 17, 9, .80);

    color: #fff;

    font-size: 10px;
    font-weight: 800;

    opacity: 0;

    transition:
        opacity .2s ease;
}


.cfc-poster-open:hover > span {
    opacity: 1;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 700px) {

    .cfc-modal {
        padding: 14px !important;
    }


    .cfc-lightbox {
        max-width:
            calc(100vw - 28px) !important;

        max-height:
            calc(100dvh - 28px) !important;
    }


    .cfc-lightbox img {
        max-width:
            calc(100vw - 28px) !important;

        max-height:
            calc(100dvh - 80px) !important;
    }


    .cfc-lightbox .cfc-close {
        top: -10px !important;
        right: -5px !important;
    }


    .cfc-poster-open > span {
        opacity: 1;
    }

}