/* 
   SwipeLab - Digital Marketing Agency
   Stylesheet
*/

/* Importa i font da Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700;800&display=swap');

/* Variabili CSS */
:root {
    --primary-color: #5b45ff;
    --secondary-color: #fe4a85;
    --gradient-primary: linear-gradient(135deg, #5b45ff 0%, #7367f0 100%);
    --gradient-secondary: linear-gradient(135deg, #fe4a85 0%, #ff6a64 100%);
    --dark-color: #121c42;
    --text-color: #4f5579;
    --light-color: #f8f9fa;
    --white-color: #ffffff;
    --shadow: 0 5px 20px rgba(91, 69, 255, 0.1);
    --transition: all 0.3s ease;
}

/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-color);
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 0 15px;
    margin: 0 auto;
}

section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-header h2 span {
    color: var(--primary-color);
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
}

/* Bottoni */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 16px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.btn:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 100%;
    transition: all .3s;
    z-index: -1;
}

.btn:hover:before {
    width: 100%;
}

.btn-primary {
    color: var(--white-color);
    background: var(--gradient-primary);
}

.btn-primary:before {
    background: var(--gradient-secondary);
}

.btn-secondary {
    color: var(--white-color);
    background: var(--gradient-secondary);
}

.btn-secondary:before {
    background: var(--gradient-primary);
}

.btn-light {
    color: var(--primary-color);
    background: var(--white-color);
}

.btn-light:before {
    background: var(--dark-color);
}

.btn-light:hover {
    color: var(--white-color) !important;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 0;
    z-index: 999;
    transition: var(--transition);
}

.header.sticky {
    padding: 15px 0;
    background-color: var(--white-color);
    box-shadow: var(--shadow);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--white-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header.sticky .logo a {
    color: var(--dark-color);
}

.logo a span {
    color: var(--secondary-color);
}

.nav ul {
    display: flex;
}

.nav ul li {
    margin-left: 30px;
}

.nav ul li a {
    color: var(--white-color);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.header.sticky .nav ul li a {
    color: var(--dark-color);
}

.nav ul li a:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav ul li a:hover:before,
.nav ul li a.active:before {
    width: 100%;
}

.nav ul li a:hover,
.nav ul li a.active {
    color: var(--secondary-color);
}

.menu-toggle {
    display: none;
    color: var(--white-color);
    font-size: 24px;
    cursor: pointer;
}

.header.sticky .menu-toggle {
    color: var(--dark-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    padding: 0;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    color: var(--white-color);
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 48px;
    color: var(--white-color);
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.hero-shape {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('public/images/hero-shape.svg') no-repeat;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* Services Section */
.services {
    background-color: var(--light-color);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white-color);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--gradient-primary);
    transition: all 0.5s;
    z-index: -1;
}

.service-card:hover:before {
    height: 100%;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 25px;
    color: var(--primary-color);
    font-size: 28px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--white-color);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    transition: var(--transition);
}

.service-card p {
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-card:hover h3,
.service-card:hover p {
    color: var(--white-color);
}

.read-more {
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.service-card:hover .read-more {
    color: var(--white-color);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
    z-index: 1;
}

.about-image:before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    background: var(--gradient-secondary);
    width: 100%;
    height: 100%;
    z-index: -1;
    border-radius: 10px;
}

.about-image img {
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.about-text h2 {
    text-align: left;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
}

/* CTA Section */
.cta {
    background: var(--gradient-secondary);
    color: var(--white-color);
    text-align: center;
    padding: 80px 0;
}

.cta-content h2 {
    color: var(--white-color);
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-content p {
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: #acacac;
    padding-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.footer-about {
    grid-column: span 2;
}

.footer .logo a {
    color: var(--white-color);
    font-size: 24px;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-about p {
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white-color);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.footer h3 {
    color: var(--white-color);
    font-size: 18px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 10px;
}

.footer-links ul li a,
.footer-services ul li a {
    color: #acacac;
    transition: var(--transition);
}

.footer-links ul li a:hover,
.footer-services ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-contact p i {
    color: var(--secondary-color);
    font-size: 18px;
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* Responsive */
@media (max-width: 991px) {
    section {
        padding: 80px 0;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: 2;
    }
    
    .about-text {
        order: 1;
    }
    
    .footer-about {
        grid-column: span 1;
    }
}

@media (max-width: 767px) {
    .header {
        padding: 15px 0;
        background-color: var(--white-color);
        box-shadow: var(--shadow);
    }
    
    .logo a {
        color: var(--dark-color);
    }
    
    .menu-toggle {
        display: block;
        color: var(--dark-color);
    }
    
    .nav {
        position: fixed;
        top: 75px;
        left: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--white-color);
        padding: 30px;
        box-shadow: var(--shadow);
        transition: var(--transition);
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav ul {
        flex-direction: column;
    }
    
    .nav ul li {
        margin: 15px 0;
    }
    
    .nav ul li a {
        color: var(--dark-color);
    }
    
    .hero {
        height: auto;
        padding: 150px 0 100px;
    }
    
    .hero-shape {
        display: none;
    }
    
    .hero-btns {
        flex-direction: column;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
}

/* Animazioni */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--light-color);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    border-bottom-color: var(--secondary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Page Header */
.page-header {
    padding: 150px 0 80px;
    background: var(--gradient-primary);
    text-align: center;
    color: var(--white-color);
}

.page-header h1 {
    color: var(--white-color);
    font-size: 40px;
    margin-bottom: 15px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a:hover {
    color: var(--white-color);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

/* Services Page */
.services-page {
    padding: 80px 0;
}

.service-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.service-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.service-image img {
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.service-details h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.service-details p {
    margin-bottom: 25px;
}

.service-features {
    margin-bottom: 30px;
}

.service-features li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.service-features li i {
    color: var(--primary-color);
    margin-right: 10px;
    margin-top: 5px;
}

/* Servizio SEO Page */
.service-intro {
    padding: 80px 0;
    background-color: var(--light-color);
}

.service-intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.service-intro-content h2 {
    font-size: 36px;
    margin-bottom: 25px;
}

.service-intro-content h2 span {
    color: var(--primary-color);
}

.service-intro-content p {
    margin-bottom: 20px;
}

.service-details {
    padding: 80px 0;
}

.service-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-feature {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.service-feature:hover {
    transform: translateY(-10px);
}

.service-feature i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-feature h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.why-choose-us {
    padding: 80px 0;
    background-color: var(--light-color);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.why-choose-item {
    display: flex;
    align-items: flex-start;
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.why-choose-item:hover {
    transform: translateY(-10px);
}

.why-choose-icon {
    width: 70px;
    height: 70px;
    background-color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 28px;
    margin-right: 20px;
    flex-shrink: 0;
}

.why-choose-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* Clients Section */
.clients {
    padding: 80px 0;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.client-logo {
    background-color: var(--white-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.client-logo:hover {
    transform: translateY(-10px);
}

.client-logo img {
    max-width: 100%;
    max-height: 80px;
    filter: grayscale(100%);
    transition: var(--transition);
}

.client-logo:hover img {
    filter: grayscale(0%);
}

/* Responsive for Service Pages */
@media (max-width: 991px) {
    .service-item {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .why-choose-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .service-features-grid {
        grid-template-columns: 1fr;
    }
    
    .service-feature {
        padding: 20px;
    }
    
    .why-choose-item {
        flex-direction: column;
        text-align: center;
    }
    
    .why-choose-icon {
        margin: 0 auto 20px;
    }
} 