/* ============================================
   INFOCER - Products & Content
   Hero slider, portfolio, sections, prodotti
   ============================================ */

/* ============================================
   Hero Slider (Homepage)
   ============================================ */

.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
}

.slides {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem 3.5rem;
}

.slide-content {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.slide-text h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.slide-text p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.8;
}

.slide-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slide-image a:hover img {
    transform: scale(1.03);
    box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.slide-text a {
    color: inherit;
    text-decoration: none;
}

.slide-text a h2:hover {
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.25s ease;
    z-index: 10;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
}

.slider-arrow--prev { left: 1rem; }
.slider-arrow--next { right: 1rem; }

.slider-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--white);
    width: 32px;
    border-radius: 6px;
}

/* ============================================
   Homepage - Portfolio Grid
   ============================================ */

main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.portfolio-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.portfolio-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.portfolio-card-link:hover .portfolio-card {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
}

.portfolio-card img {
    width: 100%;
    object-fit: cover;
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-content h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.portfolio-content p {
    color: var(--text-light);
    line-height: 1.8;
}

.portfolio-content .card-cta {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.25s ease, letter-spacing 0.25s ease;
}

.portfolio-card-link:hover .card-cta {
    color: var(--primary-dark);
    letter-spacing: 0.02em;
}

/* ============================================
   Hero Section (Pages)
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
    line-height: 1.8;
}

.email-cta {
    display: inline-block;
    background: var(--white);
    color: var(--primary-dark);
    font-size: 1.8rem;
    font-weight: 700;
    padding: 1.2rem 2.5rem;
    margin: 2rem 0;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.email-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: var(--primary-light);
}

.email-cta i {
    margin-right: 0.8rem;
    font-size: 1.6rem;
}

/* ============================================
   Section Styles
   ============================================ */

section {
    padding: 5rem 2rem;
}

section.bg-light {
    background: var(--bg-light);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin: 3rem 0 1.5rem 0;
}

.section-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* ============================================
   Grids & Boxes
   ============================================ */

/* Two Column Grid */
.two-col-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin: 3rem 0;
}

/* Feature Box */
.feature-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

section.bg-light .feature-box {
    background: var(--white);
}

section:not(.bg-light) .feature-box {
    background: var(--bg-light);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-box h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-box p {
    color: var(--text-light);
    line-height: 1.8;
}

.feature-box img {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 8px;
}

/* Image Grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.image-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* ============================================
   Chi Siamo - Referenze
   ============================================ */

.referenze-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.referenza-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-light);
    box-shadow: var(--shadow);
    font-size: 1.05rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.referenza-item:hover {
    border-left-color: var(--primary-dark);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   Chi Siamo - Tecnologie
   ============================================ */

.tech-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    align-items: center;
}

.tech-logos img {
    height: 60px;
    width: auto;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.tech-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.tech-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.tech-item {
    background: var(--white);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    color: var(--primary-dark);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tech-item:hover {
    background: var(--primary-light);
    color: var(--white);
    transform: translateY(-3px);
}

.tech-item > img {
    width: 24px;
}

/* ============================================
   Product Sections
   ============================================ */

.product-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 2rem;
}

.product-section.reverse {
    grid-template-columns: 1fr 1fr;
}

.product-section.reverse .product-image {
    order: 2;
}

.product-section.reverse .product-content {
    order: 1;
}

.product-image {
    position: relative;
}

.product-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.product-content h2 {
    display: flex;
    align-items: center;
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.copy-link-btn {
    flex-shrink: 0;
    margin-left: 0.6rem;
    opacity: 0;
    background: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    padding: 0.2rem 0.45rem;
    color: var(--primary-light);
    font-size: 0.7em;
    line-height: 1;
    transition: opacity 0.2s, background-color 0.15s, color 0.2s;
}

.product-content h2:hover .copy-link-btn {
    opacity: 1;
}

.copy-link-btn:hover {
    background-color: rgba(0, 0, 0, 0.07);
}

.copy-link-btn.copied {
    color: #22c55e;
}

@media (hover: none) {
    .copy-link-btn {
        opacity: 0.45;
    }
}

.product-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.product-content .highlight {
    background: var(--bg-light);
    padding: 1.5rem;
    border-left: 4px solid var(--primary-light);
    border-radius: 8px;
    margin-top: 1.5rem;
}

section:not(.bg-light) .product-content .highlight {
    background: var(--white);
}

.product-content .highlight h3 {
    color: var(--primary-dark);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* ============================================
   Quick Navigation
   ============================================ */

.quick-nav {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
    position: sticky;
    top: 150px;
}

.quick-nav h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.quick-nav ul {
    list-style: none;
}

.quick-nav li {
    margin-bottom: 0.8rem;
}

.quick-nav a {
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.quick-nav a:hover {
    background: var(--bg-light);
    color: var(--primary-dark);
    padding-left: 1rem;
}

.quick-nav i {
    color: var(--primary-light);
    font-size: 0.9rem;
}

/* ============================================
   Quick Nav - Pills (opzione 2)
   ============================================ */

.quick-nav-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    padding: 1.5rem 0 2.5rem;
}

.quick-nav-pills a {
    background: var(--white);
    color: var(--primary-dark);
    border: 2px solid var(--primary-light);
    border-radius: 999px;
    padding: 0.45rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.quick-nav-pills a:hover {
    background: var(--primary-light);
    color: var(--white);
}

.quick-nav-pills--hero {
    margin-top: 1.25rem;
    padding: 0;
}

.quick-nav-pills--hero a {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.6);
}

.quick-nav-pills--hero a:hover {
    background: var(--white);
    color: var(--primary-dark);
    border-color: var(--white);
}

/* ============================================
   Quick Nav - Cards (opzione 3)
   ============================================ */

.quick-nav-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    padding: 1.5rem 0 2.5rem;
}

.quick-nav-cards a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
    padding: 1.2rem 0.75rem;
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.25s ease;
    color: var(--text-dark);
}

.quick-nav-cards a:hover {
    border-color: var(--primary-light);
    box-shadow: 0 4px 16px rgba(30,141,189,0.18);
    transform: translateY(-3px);
    color: var(--primary-dark);
}

.quick-nav-cards a i {
    font-size: 1.5rem;
    color: var(--primary-light);
}

.quick-nav-cards a strong {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    color: var(--primary-dark);
}

.quick-nav-cards a small {
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.3;
}
