/* styles.css */

/* Spaziatura laterale della navbar */
.navbar-custom {
    padding-left: 10%;  
    padding-right: 10%; 
    background-color: #0f3c72;
    color: white;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-family: 'Outfit', sans-serif;
}

/* Titolo brand con Merienda */
.navbar-custom .navbar-brand {
    text-decoration: none;
    font-family: 'Lexend', sans-serif;
    color: white;
    font-size: 20px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}
.navbar-custom .navbar-brand:hover {
    color: #e0f0ff;
    text-decoration: none;
}

/* Username */
.navbar-custom span {
    color: white;
    font-weight: 400;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
}

/* Bottoni in Lexend */
.navbar-custom .btn,
.btn-login {
    font-family: 'Lexend', sans-serif !important;
    font-weight: 600;
}

/* Bottone Logout in stile rosso gradiente */
.btn-logout {
    position: relative;
    font-size: 1rem;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(45deg, #ff4d4d, #a60000);
    color: white;
    border-radius: 0.5rem;
    font-family: 'Lexend', sans-serif;
    font-weight: 400;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 2px 4px rgba(166, 0, 0, 0.2);
    overflow: hidden;
    transition: all 250ms;
    text-decoration: none;
}

.btn-logout::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.1), transparent);
    z-index: 0;
    border-radius: 0.5rem;
}

.btn-logout::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(255, 77, 77, 0.4) 0%, transparent 80%);
    z-index: -1;
    filter: blur(6px);
}

.btn-logout span {
    position: relative;
    z-index: 1;
}

.btn-logout:hover {
    text-decoration: none; 
    color: white;
    transform: translateY(4px);
    box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.2), 0 1px 0 0 #d43d3d, 0 2px 0 0 #a60000, 0 3px 0 0 #850000, 0 4px 0 0 #5e0000, 0 4px 8px 0 rgba(255, 77, 77, 0.5), 0 8px 15px rgba(166, 0, 0, 0.3);
}


.btn-logout:hover i,
.btn-logout i {
    color: white !important;
    text-decoration: none;
}

/* UTILITY CLASSES */
/*.custom-background {
    background-color: #123d74;
    padding: 10px;
}*/
.margin-top-1rem {
    margin-top: 1px;
}
.margin-bottom-1px {
    margin-bottom: 1px;
}
.black-link {
    color: black;
}
.btn-neutrale {
    background-color: #FFFFFF;
    color: #000000;
}

/*Barra divisoria*/
hr.custom-divider {
    height: 0.8px;
    border: none;
    margin-top: 10px;
    margin-bottom: 10px;
    background: linear-gradient(to right, transparent, white, transparent);
}

.modal-header {
    border-bottom: none !important;
}

.modal-divider {
    height: 1px;
    border: none;
    margin: 10px 0;
    background: linear-gradient(to right, transparent, white, transparent);
}

.modal-title {
    text-align: center;
    width: 100%;
}

.elenco-box h1 {
    text-align: center;
}

/* Elenco Box */
.elenco-box {
    background: linear-gradient(135deg, rgba(17, 28, 58, 0.6), rgba(11, 60, 110, 0.4));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 70px 70px;
    border-radius: 10px;
    width: 100%;
    max-width: 100%;
    color: white;
    position: relative;
    /*border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);*/
    margin: 0 auto;
}

/* Icone */
.social-icon,
.graph-icon {
    font-size: 22px;
}
.social-icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.graph-icon,
.checkbox {
    margin-right: 10px;
}
.chart-icon-smaller {
    font-size: 40px;
}

/* Tabella Risultati */
.link-wrap {
    word-wrap: break-word;
    max-width: 200px;
}
.title-column {
    width: 400px;
}
.date-column {
    width: 150px;
}
.feedback-column {
    width: 200px;
    text-align: center;
}
.fgrafico-column {
    width: 50px;
}
.card-header,
.card-title,
.card-text {
    font-weight: normal;
    font-style: normal;
    font-size: inherit;
    color: inherit;
}

/* Pallini Feedback */
.feedback-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}
.positivo { background-color: #28a745; }
.neutrale { background-color: #101112; }
.irrilevante { background-color: #ffc107; }
.negativo { background-color: #dc3545; }

.visually-hidden {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    padding: 0 !important;
    border: 0 !important;
    height: 1px !important;
    width: 1px !important;
    overflow: hidden !important;
}

.d-flex.custom-background {
    align-items: center;
}

.custom-label {
    display: flex;
    align-items: flex-end;
    width: 69%;
    margin-bottom: 0px;
}

#formParolaChiave,
#messaggioConferma {
    margin-right: 15px;
}

.fa-3x {
    font-size: 55px !important;
    color: #ffff;
    transition: transform 0.3s ease;
}

.fa-3x:hover {
    transform: scale(1.2);
}

div.alert.alert-info.alert-link-trovato.mb-3 {
    margin-bottom: 0 !important;
}

.link-wrap a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s, text-decoration 0.3s;
}

.link-wrap a:hover {
    color: #4b81ce;
    text-decoration: underline;
}

/* LOGIN */
.login-box {
    background: linear-gradient(135deg, rgba(17, 28, 58, 0.6), rgba(11, 60, 110, 0.4));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 70px 70px;
    border-radius: 10px;
    width: 100%;
    max-width: 600px;
    color: white;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}
.login-box h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 40px;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
}

.form-control {
    border-radius: 5px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}
.form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #135ffb;
    color: white;
    box-shadow: 0 0 8px #135ffb;
}

.btn-login {
    position: relative;
    font-size: 1.25rem;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, #00b3de, #135ffb);
    color: white;
    border-radius: 0.5rem;
    box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.2), 0 2px 0 0 #009ec5, 0 4px 0 0 #0c4fc3, 0 6px 0 0 #0b3fa6, 0 8px 0 0 #072b7e, 0 8px 16px 0 rgba(19, 95, 251, 0.5), 0 15px 25px rgba(19, 95, 251, 0.35);
    overflow: hidden;
    transition: all 250ms;
}

.btn-login::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.1), transparent);
    z-index: 0;
}

.btn-login::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0,179,222,0.4) 0%, transparent 80%);
    z-index: -1;
    filter: blur(6px);
}

.btn-login span {
    position: relative;
    z-index: 1;
}
.btn-login:hover {
    transform: translateY(4px);
    box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.2), 0 1px 0 0 #009ec5, 0 2px 0 0 #0c4fc3;
}

.forgot {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #cccccc;
    font-size: 14px;
    text-decoration: none;
    text-shadow: 0 0 3px rgba(0,0,0,0.5);
}

.forgot:hover {
    text-decoration: underline;
}

/* Onde animate */
.box {
    position: fixed;
    top: 0;
    left: 0;
    transform: rotate(80deg);
    z-index: 0;
}

.wave {
    position: absolute;
    opacity: .4;
    width: 1500px;
    height: 1300px;
    margin-left: -150px;
    margin-top: -250px;
    border-radius: 43%;
}
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.wave.-one {
    animation: rotate 10000ms infinite linear;
    opacity: 0.06;
    background: #67ecb3;
}
.wave.-two {
    animation: rotate 6000ms infinite linear;
    opacity: 0.12;
    background: #67ecb3;
}

/* Homepage */
h1 {
    font-family: 'Lexend', sans-serif;
    font-weight: 400;
}

body, p, div, span, li, a, button, label, input, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
}

body.homepage-body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    margin: 0;
}
.main.homepage-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
}
.main.homepage-main .container {
    width: 45%;
}
.main.homepage-main input.form-control {
    width: 100%;
}
.main.homepage-main h2 {
    padding-bottom: 10px;
}

/* Bottone aggiungi cliente */
.btn-aggiunta {
    position: relative;
    font-size: 20px;
    padding: 8px 20px;
    font-weight: 400;
    border: none;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, #00b3de, #135ffb);
    color: white;
    border-radius: 0.5rem;
    box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.2), 0 2px 0 0 #009ec5, 0 4px 0 0 #0c4fc3, 0 6px 0 0 #0b3fa6, 0 8px 0 0 #072b7e, 0 8px 16px 0 rgba(19, 95, 251, 0.5), 0 15px 25px rgba(19, 95, 251, 0.35);
    overflow: hidden;
    transition: all 250ms;
}
.btn-aggiunta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.1), transparent);
    z-index: 0;
}
.btn-aggiunta::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0,179,222,0.4) 0%, transparent 80%);
    z-index: -1;
    filter: blur(6px);
}
.btn-aggiunta span {
    position: relative;
    z-index: 1;
}
.btn-aggiunta:hover {
    transform: translateY(4px);
    box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.2), 0 1px 0 0 #009ec5, 0 2px 0 0 #0c4fc3;
}

/* Modal */
.modal-content {
    background: linear-gradient(135deg, rgba(2, 51, 119, 0.95), rgba(5, 30, 70, 0.9));

    border-radius: 12px;
    color: white;
    padding: 20px 30px;
}
.modal-header {
    border-bottom: none;
}
.modal-title {
    font-family: 'Lexend', sans-serif;
    font-weight: 400;
    color: white;
}
.modal-body label {
    color: white;
}

/*Dropdown*/
.close,
.close span,
.close svg {
    color: white !important;
    opacity: 1 !important;
}
.close:hover {
    color: #135ffb;
}

select.form-control {
    background: linear-gradient(135deg, rgba(2, 51, 119, 0.95), rgba(5, 30, 70, 0.9)) !important;
    color: white !important;
    border: 1px solid #ccc !important;
}

select.form-control option {
    background: rgba(5, 30, 70, 0.95);
    color: white;
}

/* Torna indietro */
.torna-indietro a {
    color: white;
    font-weight: 400;
    position: relative;
    text-decoration: none;
    transition: color 0.5s ease;
}

.torna-indietro a::after {
    text-decoration: none;
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    width: 0%;
    background-color: #cceeff;
    transition: width 0.5s ease;
}

.torna-indietro a:hover {
  text-decoration: none;
    color: #cceeff;
}

.torna-indietro a:hover::after {
  text-decoration: none;
    width: 100%;
}

/* Sito Web Box */
.sito-web {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    color: #FFFFFF;
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-in-out;
}
.sito-web p {
    margin-bottom: 0.6rem;
}
.sito-web i {
    margin-right: 6px;
    color: #FFFFFF;
}

/*Colori per la tabella*/
.table-striped-custom tbody tr:nth-child(odd) {
    background-color: #a2c2ef;;
}

.table-striped-custom tbody tr:nth-child(even) {
    background-color: #e6f3ff;
}

.table thead th {
    background-color: #003366;
    color: white;
    text-align: center;
    vertical-align: middle;
    font-weight: 600;
    border-bottom: 2px solid #cce5ff;
}


td button.btn.btn-sm.btn-outline-primary {
    display: block;
    margin: 0 auto;
}

a.text-secondary {
    color: #101112 !important;
}

.btn-outline-primary {
    color: #083c97 !important;
    border-color: #083c97 !important;
    transition: background-color 0.3s, color 0.3s;
}

.btn-outline-primary:hover {
    background-color: #083c97 !important;
    color: white !important;
}


/*icona grafico nella tabella*/
.graph-icon {
    color: #083c97 !important;
}
.table-neutral {
  color: #212529;
}

/*RISULTATI RICERCA NEWS*/
.table-striped-custom tbody tr.bg-light {
    background-color: #e6f3ff;
    color: #101112;
}

.table-striped-custom tbody tr:nth-child(odd) {
    background-color: #7cb3ff;
}

.table-striped-custom tbody tr:nth-child(even) {
    background-color: #e6f3ff;
}




/*------Fine risultati ricerca--------*/


/*GRAFICO ANDAMENTO LINK*/
.link-url {
    color: #9fc7f1;
    text-decoration: none;
}

.link-url:hover {
    color: #7cb3ff;
    text-decoration: underline;
}


/*ELENCO CLIENTI*/
.elenco-box ul li a {
    color: white;
    text-decoration: none;
    position: relative;
    font-weight: 400;
}

.elenco-box ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 1px;
    background: white;
    transition: width 0.25s ease-in-out;
}

.elenco-box ul li a:hover::after {
    width: 100%;
}

/*LANCIA SCRAPINO*/
.elenco-box ul li a.lancia-scrappino,
.elenco-box ul li a.lancia-scrappino-news,
.elenco-box ul li a.lancia-scrappino-images,
.elenco-box ul li a.lancia-scrappino-videos,
.elenco-box ul li a.lancia-scrappino-reviews {
    position: relative;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
}

/* COLORE BASE */
.elenco-box ul li a.lancia-scrappino { color: #ff4d4d; }
.elenco-box ul li a.lancia-scrappino-news { color: #B266FF; }
.elenco-box ul li a.lancia-scrappino-images { color: #66FF66; }
.elenco-box ul li a.lancia-scrappino-videos { color: #FFA500; }
.elenco-box ul li a.lancia-scrappino-reviews { color: #FFFF66; }

/* RIGA ANIMATA SOTTO */
.elenco-box ul li a.lancia-scrappino::after,
.elenco-box ul li a.lancia-scrappino-news::after,
.elenco-box ul li a.lancia-scrappino-images::after,
.elenco-box ul li a.lancia-scrappino-videos::after,
.elenco-box ul li a.lancia-scrappino-reviews::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    transition: width 0.25s ease-in-out;
}

/* COLORE DELLA RIGA */
.elenco-box ul li a.lancia-scrappino::after { background: #ff4d4d; }
.elenco-box ul li a.lancia-scrappino-news::after { background: #B266FF; }
.elenco-box ul li a.lancia-scrappino-images::after { background: #66FF66; }
.elenco-box ul li a.lancia-scrappino-videos::after { background: #FFA500; }
.elenco-box ul li a.lancia-scrappino-reviews::after { background: #FFFF66; }

/* ANIMAZIONE AL PASSAGGIO */
.elenco-box ul li a.lancia-scrappino:hover::after,
.elenco-box ul li a.lancia-scrappino-news:hover::after,
.elenco-box ul li a.lancia-scrappino-images:hover::after,
.elenco-box ul li a.lancia-scrappino-videos:hover::after,
.elenco-box ul li a.lancia-scrappino-reviews:hover::after {
    width: 100%;
}


/*CSS per freccia*/
.toggle-link {
    color: #00d4ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.toggle-link:hover {
    color: #66e0ff;
}

.chevron-icon {
    transition: transform 0.3s ease;
}

/* Rotazione animata quando si espande */
.chevron-icon.rotate {
    transform: rotate(90deg);
}


/*GRAFICO TORTA*/
#graficoTorta {
            width: 700px;
            height: 700px;
            margin: 0 auto;
            display: block;
}


/*CSS per recensioni read more*/
.read-more-link {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 12px;
    font-size: 15px;
    font-weight: 400;
    color: #0a56c1;
    background-color: transparent;
    border: 2px solid #0a56c1;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    width: fit-content;
    white-space: nowrap;   
}

.read-more-link:hover {
    background-color: #0a56c1;
    color: #fff;
    text-decoration: none;
}

.read-more-link:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 180, 216, 0.4);
}


table tbody tr > td:last-child {
    text-align: center;
}

/*cheak*/
.form-check-input {
        margin-top: 0.5rem;
}

.ml-2, .mx-2 {
    margin-left: 0.1rem !important;
}

.text-custom-blue {
    color: #020a18;
}

.table-paywall {
    background-color: #e5aa68 !important;
    color: black;
}

.text-paywall {
    color: #e27900;
}


/*Blocco Parola chiave ecc*/
.custom-background {
  margin: 0 !important;
  padding: 0 !important;
}

/*Stile per il cerca url*/
.url-label {
    text-decoration: underline;
    font-weight: bold;
    margin-right: 0.5rem;
}

.url-link {
    font-style: italic;
    margin-right: 0.5rem;
}

.url-stato-trovato {
    color: #28a745; /* verde personalizzato */
    margin-right: 0.5rem;
}

.url-stato-non-trovato {
    color: #ff9800; /* arancione personalizzato */
    margin-right: 0.5rem;
}

.url-grafico {
    font-size: 1.2rem;
    color: #ffffff !important; 
    margin-left: 0.5rem;
    transition: transform 0.2s;
}

.url-grafico:hover {
    transform: scale(1.2);
}

