/* GQC Quote — Public Frontend v7.1.0 */

.gqc-quote-wrap {
    --gqc-primary:  #1B3D5C;
    --gqc-accent:   #1A6B7C;
    --gqc-yellow:   #F5C518;
    --gqc-green:    #2e7d5e;
    --gqc-danger:   #c0392b;
    --gqc-disabled: #a0aab4;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
}

/* COUNTDOWN */
.gqc-countdown-bar {
    background: linear-gradient(135deg, var(--gqc-primary) 0%, #0f2a40 100%);
    color: #fff;
    border-radius: 14px;
    padding: 1.4rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 6px 24px rgba(27,61,92,.3);
    position: relative;
    overflow: hidden;
}
.gqc-countdown-bar::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 180px; height: 180px;
    background: rgba(245,197,24,.07);
    border-radius: 50%;
}
.gqc-countdown-label { position: relative; z-index: 1; }
.gqc-cd-eyebrow {
    display: block;
    font-size: 10px; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--gqc-yellow); opacity: .9;
    margin-bottom: 4px;
}
.gqc-cd-headline {
    display: block;
    font-size: 18px; font-weight: 800; color: #fff; line-height: 1.2;
}
.gqc-cd-deadline {
    display: block;
    font-size: 13px; color: rgba(255,255,255,.65); margin-top: 3px;
}
.gqc-countdown { display: flex; gap: 6px; position: relative; z-index: 1; }
.gqc-cd-unit {
    text-align: center;
    background: rgba(255,255,255,.1);
    border-radius: 10px; padding: 10px 14px; min-width: 62px;
    border: 1px solid rgba(255,255,255,.12);
}
.gqc-cd-num {
    display: block; font-size: 34px; font-weight: 800;
    color: var(--gqc-yellow); line-height: 1;
    font-variant-numeric: tabular-nums;
}
.gqc-cd-lab {
    display: block; font-size: 10px; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase;
    color: rgba(255,255,255,.55); margin-top: 4px;
}
.gqc-countdown-ended {
    font-size: 15px; font-weight: 700; color: var(--gqc-yellow);
    position: relative; z-index: 1;
}

/* NOTA IVA */
.gqc-iva-note {
    font-size: 13px; font-style: italic; color: #5a6a7a;
    border-left: 3px solid var(--gqc-yellow);
    padding: 6px 12px; margin-bottom: 2.5rem; line-height: 1.5;
}

/* TITOLO SEZIONE GRUPPO */
.gqc-gruppo { margin-bottom: 2.5rem; }
.gqc-gruppo-header {
    display: flex; align-items: baseline; gap: 16px;
    margin-bottom: 1.4rem; flex-wrap: wrap;
    border-bottom: 2px solid #e8eef3; padding-bottom: .85rem;
}
.gqc-gruppo-title {
    font-size: 22px; font-weight: 800; color: var(--gqc-primary);
    letter-spacing: -.01em; line-height: 1.2; margin: 0;
}
.gqc-gruppo-sub { font-size: 13px; color: #7a8a9a; }
.gqc-gruppo-note {
    font-size: 12.5px; color: #5a6a7a; line-height: 1.75;
    background: #f4f7fa; border-left: 3px solid var(--gqc-accent);
    padding: 10px 14px; border-radius: 0 8px 8px 0;
    margin-top: 1.2rem; margin-bottom: 0;
}

/* CARDS GRID */
.gqc-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 14px;
    align-items: stretch;
}

/* SINGOLA CARD */
.gqc-card {
    background: #fff;
    border: 1px solid #dde4ea;
    border-radius: 14px;
    overflow: visible;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    transition: box-shadow .18s ease, transform .18s ease;
    display: flex; flex-direction: column;
    position: relative;
    will-change: transform;
    transform: translateY(0);
    isolation: isolate;
}
.gqc-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.13);
    transform: translateY(-3px);
}

/* FASCIA COLORATA IN CIMA */
.gqc-strip {
    padding: 6px 12px;
    font-size: 10px; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    display: flex; align-items: center; justify-content: center; gap: 4px;
    border-radius: 14px 14px 0 0;
    flex-shrink: 0; line-height: 1.3;
}
.gqc-strip svg { width: 11px; height: 11px; flex-shrink: 0; }
.gqc-strip-early  { background: #F5C518; color: #7a5c00; }
.gqc-strip-late   { background: #e2e8f0; color: #475569; }
.gqc-strip-free   { background: #dcfce7; color: #166534; }
.gqc-strip-ended  { background: #fee2e2; color: #991b1b; }
.gqc-strip-closed { background: #f1f5f9; color: #94a3b8; }

/* CORPO CARD */
.gqc-card-body {
    padding: 13px 14px 14px;
    display: flex; flex-direction: column;
    align-items: center;
    flex: 1; text-align: center;
}

/* NOME QUOTA — altezza minima fissa per allineamento tra card */
.gqc-card-name {
    font-size: 14px; font-weight: 600;
    color: var(--gqc-primary);
    line-height: 1.3; width: 100%;
    margin-bottom: 11px;
    min-height: 3.2em;
    display: flex; align-items: flex-start; justify-content: center;
    word-break: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    padding-top: 2px;
}

/* RIGA ICONA — altezza fissa, asterisco a fianco */
.gqc-icon-row {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    height: 36px; margin-bottom: 10px;
    flex-shrink: 0;
}
.gqc-tipo-icon {
    width: 34px; height: 34px; min-width: 34px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.gqc-tipo-icon svg {
    width: 18px; height: 18px;
    fill: var(--gqc-accent); color: var(--gqc-accent);
}

/* ASTERISCO — span puro, zero stili browser */
.gqc-tooltip-wrap { position: relative; display: inline-flex; align-items: center; }
.gqc-ast {
    all: unset;
    font-size: 17px; font-weight: 700; line-height: 1;
    color: var(--gqc-accent);
    cursor: pointer; padding: 0 2px;
}
.gqc-ast:hover { color: #c49000; }
.gqc-tooltip-box {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%; transform: translateX(-50%);
    background: var(--gqc-primary); color: #fff;
    font-size: 11.5px; line-height: 1.5;
    padding: 10px 13px; border-radius: 8px;
    width: 210px; z-index: 9999;
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
    font-weight: 400; text-align: left;
    white-space: normal; pointer-events: none;
}
.gqc-tooltip-box::before {
    content: '';
    position: absolute;
    bottom: 100%; left: 50%; transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: var(--gqc-primary);
}
.gqc-tooltip-wrap.open .gqc-tooltip-box { display: block; }

/* PREZZO */
.gqc-price-area { margin-bottom: 4px; min-height: 38px; display: flex; align-items: flex-start; }
.gqc-price-main {
    font-size: 30px; font-weight: 700;
    color: var(--gqc-primary); line-height: 1;
}
.gqc-price-free {
    font-size: 24px; font-weight: 700; color: var(--gqc-green); line-height: 1;
}
.gqc-price-next {
    font-size: 11px; color: #3a4a5a;
    white-space: nowrap; margin-bottom: 3px;
    font-weight: 500;
}
.gqc-price-next span { color: var(--gqc-danger); font-weight: 700; }
.gqc-price-iva { font-size: 10.5px; color: #9aaabb; margin-bottom: 12px; }

.gqc-spacer { flex: 1; min-height: 8px; }

/* CTA */
.gqc-cta-btn {
    display: block; width: 100%; text-align: center;
    padding: 10px 0; border-radius: 9px;
    font-size: 13px; font-weight: 600;
    text-decoration: none; border: none; cursor: pointer;
    transition: opacity .15s, transform .1s;
    letter-spacing: .02em; flex-shrink: 0;
}
.gqc-cta-btn:hover { opacity: .88; color: inherit; text-decoration: none; transform: translateY(-1px); }
.gqc-cta-disabled {
    background: #e8eef3 !important; color: #9aaabb !important;
    cursor: not-allowed; pointer-events: none; transform: none !important;
}

/* INCLUDES BOX */
.gqc-includes-box {
    background: #fef9e7; border: 1px solid #f0d060;
    border-radius: 12px; padding: 1.1rem 1.4rem;
    margin-top: 1.5rem; margin-bottom: 0;
    font-size: 13px;
    color: var(--gqc-primary); line-height: 1.7;
}
.gqc-includes-box h4 {
    font-size: 14px; font-weight: 700; margin: 0 0 .5rem;
    color: var(--gqc-primary);
}
.gqc-includes-box ul { padding-left: 1.2rem; margin: 0; }

/* WIDGET COMPATTO */
.gqc-compact-widget {
    background: #fff; border: 1.5px solid #dde4ea;
    border-radius: 14px; padding: 1.2rem 1.6rem;
    display: flex; align-items: center;
    justify-content: space-between; gap: 16px;
    flex-wrap: wrap; box-shadow: 0 2px 10px rgba(27,61,92,.06);
}
.gqc-compact-sub   { font-size: 12px; color: #7a8a9a; margin-bottom: 2px; }
.gqc-compact-title { font-size: 17px; font-weight: 800; color: var(--gqc-primary); }
.gqc-compact-from  { font-size: 13px; color: var(--gqc-accent); margin-top: 3px; font-weight: 600; }
.gqc-compact-cta   { width: auto !important; padding: 11px 28px !important; white-space: nowrap; }

/* TABELLA */
.gqc-tbl-outer { margin-top: 1rem; }
.gqc-table-wrap {
    overflow-x: auto;
    border-radius: 16px;
    border: 1.5px solid #dde4ea;
    box-shadow: 0 4px 20px rgba(27,61,92,.1);
}
.gqc-table {
    width: 100%; border-collapse: collapse;
    font-size: 13.5px; background: #fff;
}

/* Header */
.gqc-table thead tr { background: var(--gqc-primary); }
.gqc-table thead th {
    padding: 14px 16px;
    font-size: 12px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    color: rgba(255,255,255,.8);
    text-align: center; vertical-align: middle;
    white-space: nowrap; border: none;
}
.gqc-table thead .gqc-th-tipo { text-align: left; }
.gqc-table thead .gqc-th-eb {
    background: var(--gqc-accent);
    color: #fff; font-size: 13px;
    position: relative;
    padding-top: 30px;
}
.gqc-table thead .gqc-th-eb::before {
    content: '°5 EARLY BIRD';
    position: absolute;
    top: 0; left: 0; right: 0;
    background: var(--gqc-yellow); color: #7a5c00;
    font-size: 9px; font-weight: 800; letter-spacing: .12em;
    padding: 5px 0; text-align: center;
    white-space: nowrap;
}

/* Body rows */
.gqc-table tbody tr { border-bottom: 1px solid #eef1f4; transition: background .15s; }
.gqc-table tbody tr:last-child { border-bottom: none; }
.gqc-table tbody tr:hover { background: #f7fafc; }
.gqc-table tbody td { padding: 13px 16px; vertical-align: middle; border: none; }

/* Colonna EB evidenziata */
.gqc-tbl-col-eb {
    background: rgba(26,107,124,.04);
    border-left: 1px solid rgba(26,107,124,.12);
    border-right: 1px solid rgba(26,107,124,.12);
    text-align: center;
}
.gqc-tbl-row:hover .gqc-tbl-col-eb { background: rgba(26,107,124,.07); }

/* Tipologia */
.gqc-tbl-tipo { font-size: 14px; font-weight: 600; color: var(--gqc-primary); line-height: 1.3; }
.gqc-tbl-tipo-cell { vertical-align: middle; }

/* Badge */
.gqc-tbl-badge {
    display: inline-block; padding: 4px 11px; border-radius: 20px;
    font-size: 10px; font-weight: 700; letter-spacing: .07em;
    text-transform: uppercase; white-space: nowrap;
}

/* Prezzi tabella */
.gqc-tbl-price { font-size: 16px; font-weight: 700; color: var(--gqc-primary); white-space: nowrap; }
.gqc-tbl-price-sub { font-size: 11px; color: #7a8a9a; margin-top: 2px; }

/* CTA tabella */
.gqc-tbl-cta {
    display: inline-block; padding: 8px 16px; border-radius: 8px;
    font-size: 12px; font-weight: 600; text-decoration: none;
    white-space: nowrap; transition: opacity .15s;
}
.gqc-tbl-cta:hover { opacity: .85; text-decoration: none; }
.gqc-tbl-cta-disabled { background: #eef1f4 !important; color: #9aaabb !important; pointer-events: none; }

/* Riga gruppo */
.gqc-tbl-group-row td {
    background: #f0f4f8; padding: 9px 16px;
    border-top: 2px solid #dde4ea;
    border-bottom: 1px solid #e8eef3;
}

/* Asterisco nella tabella — identico alle card */
.gqc-table .gqc-ast {
    font-size: 15px; font-weight: 700;
    color: var(--gqc-accent); cursor: pointer;
    background: none; border: none; outline: none;
    padding: 0 0 0 3px; margin: 0;
    line-height: 1; vertical-align: super;
    display: inline; box-shadow: none;
}
.gqc-table .gqc-ast:hover { color: #c49000; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .gqc-table { font-size: 12px; }
    .gqc-table thead th, .gqc-table tbody td { padding: 10px 12px; }
}
@media (max-width: 768px) {
    .gqc-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .gqc-countdown-bar { flex-direction: column; align-items: flex-start; }
    .gqc-cd-unit { min-width: 50px; padding: 8px 10px; }
    .gqc-cd-num { font-size: 26px; }
    .gqc-compact-widget { flex-direction: column; align-items: flex-start; }
    .gqc-compact-cta { width: 100% !important; text-align: center; }
    .gqc-gruppo-title { font-size: 18px; }
}
@media (max-width: 460px) {
    .gqc-cards-grid { grid-template-columns: 1fr; }
    .gqc-price-main { font-size: 26px; }
}

/* =================================================================
   STILE ISTITUZIONALE CGF — variante alternativa alla card classica
   Layout lineare allineato a sinistra, senza icona/fascia colorata,
   tipografia più formale (serif per titolo/prezzo).
================================================================= */
.gqc-cards-grid--cgf {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.gqc-card--cgf {
    background: #fff;
    border: 1px solid #e3eaf0;
    border-radius: 10px;
    box-shadow: none;
    padding: 26px 24px;
    display: flex; flex-direction: column;
    text-align: left;
    transition: border-color .18s ease;
}
.gqc-card--cgf:hover {
    box-shadow: 0 2px 10px rgba(27,61,92,.08);
    transform: none;
}

.gqc-cgf-eyebrow {
    font-size: 11px; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase;
    margin-bottom: 8px;
}

.gqc-cgf-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 16px; font-weight: 700;
    color: #0a2740;
    line-height: 1.35;
    margin-bottom: 6px;
}

.gqc-cgf-price {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 22px; font-weight: 700;
    line-height: 1.1;
    margin-bottom: 14px;
}

.gqc-cgf-next {
    font-size: 12px; color: #5a6a7a; margin-bottom: .4rem;
}

.gqc-cgf-iva {
    display: none;
}

.gqc-cgf-description {
    color: #5b7186;
    font-size: 13.5px;
    line-height: 1.55;
    flex: 1;
}
.gqc-cgf-description ul {
    margin: 0 0 16px;
    padding-left: 18px;
}
.gqc-cgf-description li {
    margin-bottom: 6px;
}
.gqc-cgf-footnote {
    color: #5b7186;
    font-size: 12px;
    font-style: italic;
    line-height: 1.55;
}

.gqc-cgf-cta {
    width: 100%; border-radius: 30px;
    font-weight: 600; letter-spacing: .01em;
}

@media (max-width: 980px) {
    .gqc-cards-grid--cgf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .gqc-cards-grid--cgf { grid-template-columns: 1fr; }
}

/* BLOCCO TESTO LIBERO */
.gqc-blocco-testo {
    margin-top: 0;
    margin-bottom: 2.5rem;
    font-size: 14px; line-height: 1.7; color: #3a4a5a;
}
.gqc-blocco-testo ul, .gqc-blocco-testo ol {
    padding-left: 1.4rem; margin: .5rem 0;
}
.gqc-blocco-testo li { margin-bottom: .3rem; }
.gqc-blocco-testo p { margin-bottom: .75rem; }
.gqc-blocco-testo p:last-child { margin-bottom: 0; }
