/* ======= STILE PER IL BANNER ======= */
.custominfo-cookie-bar {position: fixed; bottom: 0; left: 0; width: 100%; background-color: #1a1a1a; color: #fff; padding: 20px 40px; font-family: "Roboto", sans-serif; font-size: 13px; z-index: 9999; box-sizing: border-box; border-top: 1.5px solid #a5a5a5;}
.custominfo-cookie-inner {display: flex; justify-content: space-between; align-items: flex-start !important; gap: 20px; flex-wrap: wrap; box-sizing: border-box;}
.custominfo-cookie-text {flex: 1; min-width: 300px; line-height: 1.4; box-sizing: border-box;}
.custominfo-cookie-text a {color: #e3000f; text-decoration: underline;}
.custominfo-cookie-buttons {display: flex; gap: 10px; justify-content: flex-end; flex-shrink: 0; box-sizing: border-box;}
.btn-custominfo {position: relative; overflow: hidden; background-color: #cc000e; color: #fff; border: none; padding: 10px 16px; font-size: 13px; font-weight: bold; cursor: pointer; border-radius: 2px; transition: color 0.3s ease;}
/* Effetto “tenda rossa” in hover */
.btn-custominfo::before {content: ""; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: #b3000d; transition: left 0.4s ease; z-index: 1;}
/* Effetto clic radiale */
.btn-custominfo::after {content: ""; position: absolute; top: 50%; left: 50%; width: 300%; height: 300%; background: radial-gradient(circle, #99000a 0%, transparent 80%); transform: translate(-50%, -50%) scale(0); opacity: 0; transition: transform 0.4s ease-out, opacity 0.4s ease-out; z-index: 1; pointer-events: none;}
.btn-custominfo:active::after {transform: translate(-50%, -50%) scale(1); opacity: 1;}
/* Mostra la tenda su hover */
.btn-custominfo:hover::before {left: 0;}
/* Il testo sopra tutto */
.btn-custominfo span {position: relative; z-index: 2;}
/* =========================================
   SILE MODALE FISSA SENZA OVERLAY
   ========================================= */
.cookie-modal-box {position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 99999; width: 688px; height: 656px; max-width: 95%; background-color: #1a1a1a; color: #fff; border: 1px solid #2c2c2c; border-radius: 6px; display: flex; flex-direction: column; -webkit-box-orient: vertical; -webkit-box-direction: normal; font-family: 'Roboto', sans-serif;}
/* =========================================
   HEADER
   ========================================= */
.cookie-modal-header {padding: 20px 30px; border-bottom: 1px solid #2c2c2c; flex-shrink: 0;}
.cookie-modal-header h2 {margin: 0; font-size: 20px; font-weight: bold;}
/* =========================================
   CORPO SCROLLABILE
   ========================================= */
.cookie-modal-body {flex-grow: 1;overflow-y: auto;padding: 20px 30px;scrollbar-gutter: stable;}
/* Scroll personalizzato */
.cookie-modal-body::-webkit-scrollbar {width: 3px;}
.cookie-modal-body::-webkit-scrollbar-thumb {background: #FF1929;}
/* =========================================
   TESTO INTRODUTTIVO
   ========================================= */
.cookie-intro {font-size: 14px; line-height: 1.5; margin-bottom: 20px; }
.cookie-intro a, .cookie-section a {color: #FF1929; text-decoration: none;}
.cookie-intro a:hover, .cookie-section a:hover {text-decoration: underline;}
/* =========================================
   TITOLO "GESTIONE DELLE PREFERENZE"
   ========================================= */
.cookie-consent-title {font-size: 17px; font-weight: bold; margin-bottom: 15px;}
/* =========================================
   SEZIONI DEI COOKIE
   ========================================= */
.cookie-section {border-bottom: 1px solid #2c2c2c; padding: 15px 0;}
.cookie-section:last-of-type {border-bottom: none;}
.cookie-section-header {display: flex; align-items: center; justify-content: space-between; cursor: pointer;}
/* =========================================
   FRECCE APERTURA SEZIONE COOKIE
   ========================================= */
.cookie-section-header h4 { margin: 0; font-size: 14px; font-weight: normal; position: relative; cursor: pointer; padding-left: 24px;}
/* SEMPRE ATTIVI (verde) */
.cookie-section-header .always-on {color: #00ff6e; font-weight: bold; font-size: 14px; white-space: nowrap;}
/* Contenuto espandibile */
.cookie-section-content {max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.6s ease, opacity 0.6s ease; font-size: 13px; line-height: 1.4; margin-top: 10px; color: #ccc;}
.cookie-section.open .cookie-section-content {max-height: 200px; opacity: 1;}
/* =========================================
   FRECCE APERTURA SEZIONE COOKIE
   ========================================= */
.cookie-section-header h4::before {content: "\276F"; position: absolute; left: 0; top: 50%; transform: translateY(-50%) rotate(90deg); transition: transform 0.3s ease; font-size: 16px; color: inherit;}
.cookie-section.open h4::before {transform: translateY(-50%) rotate(270deg);}
/* =========================================
   SWITCH (OFF di default, ON rosso)
   ========================================= */
.cookie-switch-container {display: flex; align-items: center; gap: 8px;}
.cookie-switch {position: relative; width: 38px; height: 20px; background-color: #444; border-radius: 20px; transition: background-color 0.3s; cursor: pointer;}
.cookie-switch-handle {position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background-color: #fff; border-radius: 50%; transition: transform 0.3s;}
.cookie-toggle-input {display: none;}
.cookie-toggle-input:checked + .cookie-switch .cookie-switch-handle {transform: translateX(18px);}
.cookie-toggle-input:checked + .cookie-switch {background-color: #e60000;}
/* =========================================
   FOOTER CON 3 PULSANTI ROSSI
   ========================================= */
.cookie-modal-footer {padding: 20px 36px 24px 36px; border-top: 1px solid #2c2c2c; flex-shrink: 0; display: flex; gap: 10px; -webkit-box-pack: end; -ms-flex-pack: end; justify-content: flex-end;}
.cookie-modal-footer button {position: relative; overflow: hidden; flex: 0 0 auto; padding: 8px 24px; font-weight: 500; font-size: 16px; min-height: 40px; min-width: 90px; border: none; cursor: pointer; background-color: #cc000e; color: #fff; font-family: "Roboto Condensed", "Microsoft JhengHei", sans-serif; transition: color 0.3s ease;}
/* Effetto colore in hover */
.cookie-modal-footer button::before {content: ""; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: #b3000d; transition: left 0.4s ease; z-index: 1;}
/* Effetto attivo: sfumatura da fuori verso il centro */
.cookie-modal-footer button::after {content: ""; position: absolute; top: 50%; left: 50%; width: 300%; height: 300%; background: radial-gradient(circle, #99000a 0%, transparent 80%); transform: translate(-50%, -50%) scale(0); opacity: 0; transition: transform 0.4s ease-out, opacity 0.4s ease-out; z-index: 1; pointer-events: none;}
/* Quando si clicca */
.cookie-modal-footer button:active::after {transform: translate(-50%, -50%) scale(1); opacity: 1;}
/* Hover: attiva ::before */
.cookie-modal-footer button:hover::before {left: 0;}
/* Questo impedisce a before/after di coprire il testo */
.cookie-modal-footer button span {position: relative; z-index: 2;}
@media (max-width: 900px) {
.custominfo-cookie-inner {flex-direction: column; align-items: flex-end;}
.custominfo-cookie-text {width: 100%;}
.custominfo-cookie-buttons {width: 100%; justify-content: flex-end;}}
@media screen and (max-width: 768px) {
html, body {padding: 0; margin: 0; overflow-x: hidden;}
.cookie-modal-box {top: 0; left: 0; transform: none; height: 100%; border-radius: 0; padding: 0; display: flex; flex-direction: column; width: 100%; max-width: 100%; box-sizing: border-box;}
.cookie-modal-header,
.cookie-modal-footer {padding: 16px 20px; background-color: #121212; flex-shrink: 0;}
.cookie-modal-body {flex-grow: 1; overflow-y: auto; padding: 20px;}
.cookie-modal-footer {display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;}
.cookie-modal-footer button {flex: 1 1 calc(50% - 5px); min-width: 0; padding: 12px; font-size: 15px; white-space: nowrap;}.cookie-modal-footer button#modal-confirm {flex: 1 1 100%;}}
/* ======= Breakpoint finale (≤731px): Layout definitivo ======= */
@media (max-width: 731px) {
.custominfo-cookie-inner {flex-direction: column; align-items: stretch;}
.custominfo-cookie-text {width: 100%;}
.custominfo-cookie-buttons {display: flex; flex-direction: column; align-items: stretch; width: 100%;}
.btn-settings {width: 100%; margin-bottom: 10px;}
.btn-decline, .btn-accept {flex: 1; width: 50%;}
/* Questa riga crea l'effetto due pulsanti affiancati */
.custominfo-cookie-buttons {flex-direction: row; flex-wrap: wrap;}}