/* Info Section - Stili specifici per la sezione informazioni fornitori */

/* ===== VARIABILI ===== */
:root {
    --info-primary: #00BCA1;
    --info-primary-dark: #00A68A;
    --info-secondary: #6c757d;
    --info-light: #f8f9fa;
    --info-dark: #343a40;
    --info-white: #ffffff;
    --info-border-radius: 0;
    --info-box-shadow: 0 0.125rem 0.25rem rgba(0, 188, 161, 0.15);
    --info-transition: all 0.3s ease;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--info-secondary);
}

.breadcrumb-item a {
    color: var(--info-primary);
    text-decoration: none;
    transition: var(--info-transition);
}

.breadcrumb-item a:hover {
    color: var(--info-primary-dark);
}

/* ===== HEADER SECTION ===== */
.display-4 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--info-dark);
}

.lead {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.6;
}

/* ===== SIDEBAR FORNITORI ===== */
.fornitori-sidebar {
    background-color: var(--info-white);
    border-radius: var(--info-border-radius);
    box-shadow: var(--info-box-shadow);
    padding: 1.5rem;
    position: sticky;
    top: 2rem;
}

.sidebar-divider {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--info-primary) 0%, var(--info-primary-dark) 100%);
    margin-bottom: 1rem;
}

.fornitori-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fornitori-list li {
    border-bottom: 1px solid var(--info-light);
    transition: var(--info-transition);
}

.fornitori-list li:last-child {
    border-bottom: none;
}

.fornitori-list li a {
    display: block;
    padding: 0.75rem 0;
    color: var(--info-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--info-transition);
    position: relative;
}

.fornitori-list li a:hover {
    color: var(--info-primary);
    background-color: rgba(237, 97, 11, 0.05);
    padding-left: 0.5rem;
}

.fornitori-list li a::before {
    content: '›';
    position: absolute;
    left: -1rem;
    opacity: 0;
    transition: var(--info-transition);
}

.fornitori-list li a:hover::before {
    opacity: 1;
    left: 0;
}

.fornitori-list li.active a {
    color: var(--info-primary);
    font-weight: 500;
}

/* ===== FORNITORI GRID ===== */
#fornitori-grid {
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

/* Pinterest-style Grid Layout */
#fornitori-grid.pinterest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: start;
}

#fornitori-grid.pinterest-grid .fornitore-card {
    width: 100%;
    margin-bottom: 0;
    display: block;
    height: auto;
    min-height: 200px;
}

/* Responsive Pinterest Grid */
@media (max-width: 1200px) {
    #fornitori-grid.pinterest-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    #fornitori-grid.pinterest-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Animated Wave Background */
#fornitori-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(0, 188, 161, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(0, 166, 138, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 60%, rgba(0, 188, 161, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
    animation: waveBackground 12s ease-in-out infinite;
}

#fornitori-grid::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 60% 30%, rgba(0, 188, 161, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 30% 70%, rgba(0, 166, 138, 0.08) 0%, transparent 40%);
    pointer-events: none;
    z-index: 1;
    animation: waveBackground 12s ease-in-out infinite reverse;
}

@keyframes waveBackground {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.8;
    }
    25% {
        transform: translateY(-15px) scale(1.05);
        opacity: 1;
    }
    50% {
        transform: translateY(-10px) scale(0.95);
        opacity: 0.9;
    }
    75% {
        transform: translateY(-20px) scale(1.02);
        opacity: 1;
    }
}

/* SVG Wave Background */
.wave-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

.wave-path {
    fill: none;
    stroke: var(--info-primary);
    stroke-width: 3;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: waveDraw 8s ease-in-out infinite;
}

.wave-path-2 {
    fill: none;
    stroke: var(--info-primary-dark);
    stroke-width: 2;
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
    animation: waveDraw 8s ease-in-out infinite reverse;
}

@keyframes waveDraw {
    0% {
        stroke-dashoffset: 1000;
        opacity: 0.5;
    }
    50% {
        stroke-dashoffset: 0;
        opacity: 0.8;
    }
    100% {
        stroke-dashoffset: -1000;
        opacity: 0.5;
    }
}


.fornitore-card {
    background-color: var(--info-white);
    border-radius: var(--info-border-radius);
    box-shadow: 0 8px 25px rgba(0, 188, 161, 0.15);
    padding: 1.5rem;
    height: 100%;
    transition: var(--info-transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.fornitore-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--info-primary) 0%, var(--info-primary-dark) 100%);
}

.fornitore-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 188, 161, 0.25);
    border-color: var(--info-primary);
    cursor: pointer;
}

.fornitore-card:active {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 8px 20px rgba(0, 188, 161, 0.2);
}

/* ===== CARD HIGHLIGHT SELECTION ===== */
.fornitore-card.selected {
    border: 3px solid #FFD700 !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 0 40px rgba(255, 215, 0, 0.4), 0 0 60px rgba(255, 215, 0, 0.2) !important;
    transform: scale(1.05) !important;
    z-index: 20 !important;
}

.fornitore-card.selected::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #FFD700, #FFA500, #FFD700, #FFA500);
    background-size: 400% 400%;
    border-radius: var(--info-border-radius);
    z-index: -1;
    animation: neonGlow 2s ease-in-out infinite alternate;
}

/* ===== BACKGROUND AQUA GREEN ESTESO ===== */
.fornitore-card.selected::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -30px;
    right: -30px;
    bottom: -20px;
    background: linear-gradient(135deg, rgba(0, 188, 161, 0.15) 0%, rgba(0, 166, 138, 0.1) 50%, rgba(0, 188, 161, 0.15) 100%);
    border-radius: 15px;
    z-index: -2;
    animation: aquaGlow 3s ease-in-out infinite alternate;
}

@keyframes aquaGlow {
    0% {
        background: linear-gradient(135deg, rgba(0, 188, 161, 0.15) 0%, rgba(0, 166, 138, 0.1) 50%, rgba(0, 188, 161, 0.15) 100%);
        transform: scale(1);
    }
    100% {
        background: linear-gradient(135deg, rgba(0, 188, 161, 0.25) 0%, rgba(0, 166, 138, 0.2) 50%, rgba(0, 188, 161, 0.25) 100%);
        transform: scale(1.02);
    }
}

@keyframes neonGlow {
    0% {
        background-position: 0% 50%;
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 0 40px rgba(255, 215, 0, 0.4), 0 0 60px rgba(255, 215, 0, 0.2);
    }
    100% {
        background-position: 100% 50%;
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.8), 0 0 50px rgba(255, 215, 0, 0.6), 0 0 75px rgba(255, 215, 0, 0.4);
    }
}

/* ===== LOGO FORNITORE ===== */
.fornitore-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--info-light);
}

.fornitore-logo img {
    max-height: 40px;
    max-width: 150px;
    object-fit: contain;
}

/* ===== TITOLO FORNITORE ===== */
.fornitore-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--info-dark);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

/* ===== DESCRIZIONE FORNITORE ===== */
.fornitore-description {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--info-secondary);
    line-height: 1.4;
    margin-bottom: 1rem;
    flex-grow: 1;
}


/* ===== TARIFFE FORNITORE ===== */
.fornitore-tariffe {
    background-color: rgba(0, 188, 161, 0.05);
    border-radius: 0;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--info-primary);
}

.fornitore-tariffe h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--info-dark);
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

.tariffe-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.tariffa-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.4rem;
    background-color: var(--info-white);
    border-radius: 0;
    border: 1px solid rgba(0, 188, 161, 0.2);
}

.tariffa-label {
    font-size: 0.7rem;
    color: var(--info-secondary);
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.tariffa-valore {
    font-size: 0.8rem;
    color: var(--info-primary);
    font-weight: 600;
}

/* ===== LINK FORNITORE ===== */
.fornitore-link {
    display: inline-flex;
    align-items: center;
    color: var(--info-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    transition: var(--info-transition);
    margin-top: auto;
}

.fornitore-link:hover {
    color: var(--info-primary-dark);
    text-decoration: none;
}

.fornitore-link i {
    margin-left: 0.4rem;
    transition: var(--info-transition);
}

.fornitore-link:hover i {
    transform: translateX(3px);
}

/* ===== LOADING STATE ===== */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--info-border-radius);
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-card {
    height: 400px;
    margin-bottom: 2rem;
}

.skeleton-title {
    height: 1.5rem;
    width: 70%;
    margin-bottom: 1rem;
}

.skeleton-text {
    height: 1rem;
    width: 100%;
    margin-bottom: 0.5rem;
}

.skeleton-text.short {
    width: 60%;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
    .fornitore-card {
        padding: 1.5rem;
    }
    
    .fornitore-logo img {
        max-height: 50px;
    }
    
    .fornitore-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 767.98px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .fornitore-card {
        padding: 1.25rem;
    }
    
    .fornitore-logo {
        margin-bottom: 1rem;
    }
    
    .fornitore-logo img {
        max-height: 45px;
    }
    
    .fornitore-title {
        font-size: 1rem;
    }
    
    .fornitore-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .display-4 {
        font-size: 1.75rem;
    }
    
    .fornitore-card {
        padding: 1rem;
    }
    
    .fornitore-logo img {
        max-height: 40px;
    }
}

/* ===== CTA CARD MODERN ===== */
.cta-card-modern {
    background: linear-gradient(135deg, var(--info-primary) 0%, var(--info-primary-dark) 100%);
    border-radius: 0;
    box-shadow: 0 15px 35px rgba(0, 188, 161, 0.3);
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    min-height: 280px;
    display: flex;
    align-items: center;
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.cta-text {
    flex: 1;
    text-align: left;
}

.cta-text h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}

.cta-text p {
    font-family: 'Inter', sans-serif;
    color: white;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.cta-buttons {
    margin-bottom: 1rem;
}

/* ===== BOTTONI BEIGE ===== */
.btn-beige {
    background-color: var(--brand-accent) !important;
    border-color: var(--brand-accent) !important;
    color: white !important;
    font-weight: 600;
    border-radius: 0;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(212, 175, 116, 0.3);
}

.btn-beige:hover {
    background-color: #d4a574 !important;
    border-color: #d4a574 !important;
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(212, 175, 116, 0.5);
}

.btn-beige:focus {
    background-color: var(--brand-accent) !important;
    border-color: var(--brand-accent) !important;
    color: white !important;
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 116, 0.25);
}

/* ===== DECORAZIONI QUADRATINI ===== */
.cta-decorations {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1;
}

.decoration-square {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    opacity: 0.8;
    animation: float 3s ease-in-out infinite;
}

.square-1 {
    background-color: #FF6B6B;
    animation-delay: 0s;
}

.square-2 {
    background-color: #4ECDC4;
    animation-delay: 0.5s;
}

.square-3 {
    background-color: #45B7D1;
    animation-delay: 1s;
}

.square-4 {
    background-color: #96CEB4;
    animation-delay: 1.5s;
}

.square-5 {
    background-color: #FFEAA7;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* ===== RESPONSIVE CTA ===== */
@media (max-width: 768px) {
    .cta-content {
        flex-direction: column;
        text-align: center;
    }

    .cta-decorations {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        flex-direction: row;
        justify-content: center;
        margin-top: 1rem;
    }

    .cta-text {
        text-align: center;
    }
}

/* ===== MOBILE CTA STICKY ===== */
.mobile-cta-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--info-primary) 0%, var(--info-primary-dark) 100%);
    box-shadow: 0 -4px 20px rgba(0, 188, 161, 0.3);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    animation: slideUp 0.5s ease-out 2s forwards;
}

.mobile-cta-sticky.show {
    transform: translateY(0);
}

.mobile-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 100%;
}

.mobile-cta-text {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.cta-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cta-icon i {
    font-size: 1.5rem;
    color: white;
}

.cta-info {
    flex: 1;
    color: white;
}

.cta-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: white;
}

.cta-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.9;
    color: white;
}

.mobile-cta-actions {
    flex-shrink: 0;
}

.btn-cta-mobile {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-cta-mobile:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.btn-cta-mobile:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

.mobile-cta-close {
    position: absolute;
    top: -10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-cta-close:hover {
    background: white;
    transform: scale(1.1);
}

.mobile-cta-close i {
    font-size: 0.8rem;
    color: var(--info-primary-dark);
}

@keyframes slideUp {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== RESPONSIVE MOBILE CTA ===== */
@media (min-width: 992px) {
    .mobile-cta-sticky {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .mobile-cta-content {
        padding: 0.75rem 1rem;
    }

    .cta-icon {
        width: 45px;
        height: 45px;
    }

    .cta-icon i {
        font-size: 1.25rem;
    }

    .cta-title {
        font-size: 1rem;
    }

    .cta-subtitle {
        font-size: 0.8rem;
    }

    .btn-cta-mobile {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}
