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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    min-height: 100vh;
    overflow-x: hidden;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
    opacity: 0.3;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 4px dashed #ff6b6b;
}

h1 {
    font-family: 'Comic Neue', cursive;
    font-size: 4rem;
    color: #ff6b6b;
    margin-bottom: 10px;
    text-shadow: 3px 3px 0 #ffe66d;
}

h1 i {
    margin: 0 15px;
    color: #4ecdc4;
}

.subtitle {
    font-size: 1.5rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

.subtitle strong {
    color: #ff6b6b;
    text-decoration: underline;
}

/* Hero */
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 60px;
    background: linear-gradient(90deg, #ffecd2 0%, #fcb69f 100%);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.2);
}

.hero-content {
    flex: 1;
    min-width: 300px;
    padding-right: 30px;
}

.hero h2 {
    font-size: 3rem;
    color: #333;
    margin-bottom: 20px;
}

.hero h2 i {
    color: #ff6b6b;
    margin-right: 15px;
}

.hero-text {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.emoji-row {
    display: flex;
    gap: 20px;
    font-size: 3rem;
    margin-top: 20px;
}

.hero-image {
    flex: 0 0 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-container {
    width: 300px;
    text-align: center;
}

.profile-photo {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 8px solid white;
}

.photo-caption {
    margin-top: 15px;
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
}

/* Sezioni */
section {
    margin-bottom: 60px;
}

h3 {
    font-size: 2.5rem;
    color: #4ecdc4;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

h3 i {
    margin-right: 15px;
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 8px solid #ff6b6b;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 3rem;
    color: #4ecdc4;
    margin-bottom: 20px;
}

.card h4 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
}

.card p {
    color: #666;
    line-height: 1.6;
}

/* Messaggio */
.message {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    padding: 40px;
    border-radius: 25px;
    text-align: center;
}

blockquote {
    font-size: 1.8rem;
    font-style: italic;
    color: #333;
    margin: 30px 0;
    padding: 0 20px;
    position: relative;
}

blockquote::before,
blockquote::after {
    content: '"';
    font-size: 4rem;
    color: #ff6b6b;
    opacity: 0.5;
    position: absolute;
}

blockquote::before {
    top: -20px;
    left: 0;
}

blockquote::after {
    bottom: -40px;
    right: 0;
}

.signature {
    font-size: 1.3rem;
    color: #555;
    font-weight: 600;
    margin-top: 40px;
}

/* Photos */
.photos {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px;
    border-radius: 25px;
    text-align: center;
}

.photo-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
}

.photo-item {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

.photo-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.photo-item p {
    padding: 20px;
    font-size: 1.1rem;
    color: #555;
}

.photo-note {
    margin-top: 20px;
    font-size: 1rem;
    color: #777;
    font-style: italic;
}

.photo-note i {
    color: #4ecdc4;
    margin-right: 10px;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.gallery-item {
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item i {
    font-size: 4rem;
    margin-bottom: 15px;
    display: block;
}

/* Contact */
.contact {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 25px;
}

.contact p {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

.social {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.social-btn i {
    margin-right: 10px;
    font-size: 1.3rem;
}

/* Footer */
footer {
    text-align: center;
    padding-top: 40px;
    border-top: 2px dashed #ccc;
    color: #777;
    font-size: 1.1rem;
}

footer i.fa-heart {
    animation: heartbeat 1.5s infinite;
}

.footer-note {
    font-size: 0.9rem;
    margin-top: 10px;
    color: #999;
}

/* Animazioni */
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
    }
    .hero {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        padding-right: 0;
        margin-bottom: 30px;
    }
    .hero-image {
        flex: 0 0 auto;
        margin-top: 30px;
    }
    .photo-container {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .emoji-row {
        justify-content: center;
    }
    .cards {
        grid-template-columns: 1fr;
    }
    .photo-gallery {
        flex-direction: column;
        align-items: center;
    }
    .photo-item {
        min-width: 100%;
    }
    .social {
        flex-direction: column;
        align-items: center;
    }
    .social-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}