/* =============================================
   TourOp - Gestionale Turismo
   ============================================= */

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1746b8;
    --primary-dark: #10358f;
    --primary-light: #edf1ff;
    --accent: #3868df;
    --accent-dark: #2452c2;
    --text: #1a1a2e;
    --text-light: #64748b;
    --text-white: #ffffff;
    --bg: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --border: #e2e8f0;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #182d65 100%);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

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

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.938rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(23, 70, 184, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--text-white);
}


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

.btn-white:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    color: var(--text-white);
    border-color: var(--text-white);
}

.btn-outline-white:hover {
    background: var(--text-white);
    color: var(--primary);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* --- Section Helpers --- */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.813rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.125rem;
}

/* =============================================
   HEADER
   ============================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.logo:hover .logo-icon svg {
    transform: translateY(-1px) rotate(-2deg);
}


.logo-icon {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.logo-icon svg {
    width: 32px;
    height: 32px;
    display: block;
    filter: drop-shadow(0 7px 14px rgba(23, 70, 184, 0.18));
    transition: transform var(--transition), filter var(--transition);
}

.logo-wordmark {
    display: inline-flex;
    align-items: baseline;
    color: #1746b8;
    font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.58rem;
    font-weight: 760;
    line-height: 1;
    letter-spacing: 0;
}

.logo-wordmark-tour,
.logo-wordmark-o,
.logo-wordmark-p {
    color: #1746b8;
}

.logo-wordmark-o {
    margin-left: -0.01em;
    margin-right: -0.01em;
    color: #1746b8;
    font-size: 1em;
    font-weight: 760;
    transform: none;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-menu a {
    font-weight: 500;
    font-size: 0.938rem;
    color: var(--text-light);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width var(--transition);
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

/* =============================================
   HERO
   ============================================= */
.hero {
    position: relative;
    padding: 140px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(112deg, rgba(255,255,255,0.92) 0%, rgba(234,239,255,0.78) 52%, rgba(226,233,255,0.7) 100%),
        linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(56,104,223,0.08) 100%);
    z-index: -1;
}

.hero-bg::before,
.hero-bg::after {
    content: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 32px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
}

.highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: nowrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.813rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Hero dashboard image */
.hero-image {
    position: relative;
    isolation: isolate;
    perspective: 1100px;
    margin-left: 18px;
    margin-right: -96px;
}

.hero-image::before,
.hero-image::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.hero-image::before {
    inset: -14px -12px -16px 12px;
    background: linear-gradient(135deg, rgba(255,255,255,0.72), rgba(56,104,223,0.1));
    border: 1px solid rgba(255,255,255,0.72);
    border-radius: 24px;
    transform: translate(8px, 8px);
    box-shadow: 0 22px 58px rgba(23, 70, 184, 0.1);
}

.hero-image::after {
    left: 30px;
    right: 78px;
    bottom: -18px;
    height: 18px;
    background: linear-gradient(90deg, rgba(23,70,184,0.18), rgba(56,104,223,0.38), rgba(23,70,184,0));
    border-radius: 999px;
    filter: blur(10px);
}

.hero-dashboard-frame {
    position: relative;
    padding: 8px;
    background: linear-gradient(145deg, rgba(255,255,255,0.96), rgba(228,235,255,0.72));
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 22px;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.16), 0 8px 24px rgba(23, 70, 184, 0.14);
    overflow: hidden;
    transform: rotateY(-7deg) rotateX(2.5deg) rotateZ(0.6deg) translateY(0);
    transform-origin: center;
    transition: transform 0.6s ease, box-shadow 0.6s ease;
    will-change: transform;
}

.hero-dashboard-frame::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 16px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.7);
    pointer-events: none;
    z-index: 1;
}

.hero-dashboard-frame:hover {
    transform: rotateY(-1.5deg) rotateX(0.8deg) rotateZ(0) translateY(-8px) scale(1.018);
    box-shadow: 0 34px 90px rgba(15, 23, 42, 0.18), 0 14px 34px rgba(23, 70, 184, 0.18);
}

.hero-dashboard-img {
    display: block;
    width: 100%;
    aspect-ratio: 12 / 7;
    object-fit: cover;
    border-radius: 16px;
}



/* =============================================
   FEATURES (Flip Cards)
   ============================================= */
.features {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* Flip container */
.feature-card-flip {
    perspective: 800px;
    height: 300px;
}

.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}

.feature-card-flip:hover .flip-inner {
    transform: rotateY(180deg);
}

.flip-front,
.flip-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--radius);
    overflow: hidden;
}

/* Front */
.flip-front {
    padding: 36px;
    border: 1px solid var(--border);
    background: var(--bg);
    display: flex;
    flex-direction: column;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.4s ease, background 0.4s ease;
}

.feature-card-flip:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
}

.feature-icon svg {
    width: 26px;
    height: 26px;
}

.flip-front h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.flip-front p {
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Back */
.flip-back {
    transform: rotateY(180deg);
    background: var(--gradient);
    color: var(--text-white);
    display: flex;
    flex-direction: column;
}

.flip-back-img {
    height: 120px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 12px 24px;
    position: relative;
    overflow: hidden;
}

.flip-back-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.05) 0%,
        rgba(0, 0, 0, 0.5) 100%
    );
}

.flip-back-img::after {
    content: attr(data-label);
    position: relative;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0,0,0,0.25);
    padding: 4px 12px;
    border-radius: 4px;
}

.flip-back h3 {
    font-size: 1rem;
    font-weight: 700;
    padding: 16px 24px 8px;
}

.flip-back ul {
    list-style: none;
    padding: 0 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.flip-back ul li {
    font-size: 0.813rem;
    opacity: 0.92;
    padding-left: 16px;
    position: relative;
}

.flip-back ul li::before {
    content: '>';
    position: absolute;
    left: 0;
    font-weight: 700;
}

/* =============================================
   BENEFITS
   ============================================= */
.benefits {
    padding: 100px 0;
    background: var(--bg-light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: stretch;
}

.benefit-card {
    position: relative;
    padding: 40px 36px;
    border-radius: var(--radius-lg);
    background: var(--bg);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.benefit-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.benefit-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.benefit-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    background: var(--gradient);
    color: var(--text-white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    white-space: nowrap;
}

.benefit-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.benefit-icon svg {
    width: 28px;
    height: 28px;
}

.benefit-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.benefit-card > p {
    color: var(--text-light);
    font-size: 0.938rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.benefit-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.benefit-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
}

.benefit-list li::before {
    content: '';
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    background: var(--primary-light);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230066cc' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 12px;
    background-repeat: no-repeat;
    background-position: center;
}

/* =============================================
   VIDEO SECTION
   ============================================= */
.video-section {
    padding: 100px 0;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.video-card {
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.video-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    background: var(--bg-dark);
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    padding: 20px 24px 8px;
}

.video-card p {
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.6;
    padding: 0 24px 24px;
}

@media (max-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   DEMO SECTION
   ============================================= */
.demo {
    padding: 100px 0;
    background: var(--gradient-dark);
    color: var(--text-white);
}

.demo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.demo-text h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.demo-text p {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 32px;
    line-height: 1.7;
}

.demo .section-tag {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-white);
}

.demo-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Mock Brochure */
.demo-image-placeholder {
    display: flex;
    justify-content: center;
}

.mock-brochure {
    width: 260px;
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: rotate(3deg);
    transition: transform 0.4s ease;
}

.mock-brochure:hover {
    transform: rotate(0deg);
}

.brochure-header {
    background: var(--gradient);
    padding: 24px;
}

.brochure-logo {
    color: var(--text-white);
    font-weight: 700;
    font-size: 1.125rem;
}

.brochure-content {
    padding: 24px;
}

.brochure-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 16px;
}

.brochure-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.brochure-lines .line {
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
}

.brochure-lines .line.short {
    width: 65%;
}

.brochure-image-mock {
    height: 100px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-light) 0%, #e8edff 100%);
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials {
    padding: 100px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.testimonial-card {
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg);
    transition: all var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.testimonial-content {
    margin-bottom: 24px;
    position: relative;
}

.testimonial-content::before {
    content: '\201C';
    font-size: 4rem;
    line-height: 1;
    color: var(--primary-light);
    position: absolute;
    top: -20px;
    left: -5px;
    font-family: Georgia, serif;
}

.testimonial-content p {
    font-size: 0.938rem;
    line-height: 1.7;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.813rem;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info strong {
    font-size: 0.875rem;
    font-weight: 600;
}

.author-info span {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* =============================================
   CONTACT
   ============================================= */
.contact {
    padding: 100px 0;
    background: var(--bg-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.contact-info > p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 36px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.938rem;
    font-weight: 500;
    color: var(--text);
}

.contact-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

.contact-form-wrapper {
    background: var(--bg);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.938rem;
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
    background: var(--bg);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(23, 70, 184, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.checkbox-group {
    margin-bottom: 28px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.813rem;
    color: var(--text-light);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 2px;
    accent-color: var(--primary);
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: underline;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(140px, 0.5fr);
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.7;
    margin-top: 16px;
    margin-bottom: 24px;
}

.footer-brand .logo {
    color: var(--text-white);
}

.footer-brand .logo-wordmark-tour,
.footer-brand .logo-wordmark-o,
.footer-brand .logo-wordmark-p {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: var(--text-white);
}

.footer-links h4,
.footer-company h4 {
    color: var(--text-white);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.875rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--text-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.813rem;
}

/* Company identity and direct contacts */
.contact-info, .contact-form-wrapper { min-width: 0; }
.contact-commercial { padding: 20px; background: var(--bg); border-radius: var(--radius); }
.contact-commercial strong, .contact-commercial a, .contact-person a { display: block; }
.contact-commercial a, .contact-person a, .footer-company a { overflow-wrap: anywhere; }
.contact-commercial a, .contact-person a { color: var(--primary); }
.contact-commercial a:hover, .contact-person a:hover, .footer-company a:hover { text-decoration: underline; }
.contact-person { padding-top: 20px; border-top: 1px solid var(--border); }
.contact-person h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-person p { color: var(--text-light); margin-bottom: 8px; }
.contact-person a { font-size: 0.938rem; margin-top: 6px; }
.form-note { font-size: 0.875rem; color: var(--text-light); line-height: 1.6; margin-bottom: 24px; }
.form-status:empty { display: none; }
.form-status { margin: 16px 0 0; }
.footer-company { font-size: 0.875rem; line-height: 1.7; }
.footer-company p, .footer-company address { margin-bottom: 12px; }
.footer-company address { font-style: normal; }
.footer-company strong, .footer-solution strong { color: var(--text-white); }

/* =============================================
   ANIMATIONS (repeat on scroll)
   ============================================= */

/* Default: fade up */
.anim {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.anim.anim-up { transform: translateY(40px); }
.anim.anim-down { transform: translateY(-40px); }
.anim.anim-left { transform: translateX(-50px); }
.anim.anim-right { transform: translateX(50px); }
.anim.anim-scale { transform: scale(0.85); }
.anim.anim-rotate { transform: rotate(-5deg) scale(0.9); }

.anim.visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1) rotate(0);
}

/* Benefit card: lift + glow on hover */
.benefit-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 16px 48px rgba(23, 70, 184, 0.15);
}

/* Video card: zoom thumbnail on hover */
.video-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.video-card:hover .video-embed {
    filter: brightness(1.05);
}

/* Testimonial/referenze: subtle tilt on hover */
.testimonial-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover {
    transform: translateY(-4px) rotate(-0.5deg);
    box-shadow: var(--shadow-lg);
}

/* Section headers: clip reveal */
.section-header.anim h2 {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.section-header.anim.visible h2 {
    clip-path: inset(0 0% 0 0);
}

/* Stagger children for grids */
.anim[data-delay] {
    transition-delay: var(--anim-delay, 0s);
}

/* =============================================
   FORM SUCCESS
   ============================================= */
.form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-success svg {
    color: #28c840;
    margin-bottom: 16px;
}

.form-success h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.form-success p {
    color: var(--text-light);
    font-size: 0.938rem;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-cta {
        flex-wrap: wrap;
    }

    .features-grid,
    .benefits-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .nav-menu,
    .nav .btn {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg);
        padding: 24px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        gap: 16px;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 24px;
    }

    .hero-image {
        order: -1;
        margin-left: 0;
        margin-right: 0;
    }

    .hero-image::before {
        inset: -14px -10px -16px 12px;
        border-radius: 24px 42px 24px 24px;
    }

    .hero-image::after,
    .hero-bg::after {
        display: none;
    }

    .hero-bg::before {
        top: 88px;
        right: -28vw;
        width: 92vw;
        height: 360px;
        opacity: 0.72;
    }

    .hero-dashboard-frame,
    .hero-dashboard-frame:hover {
        transform: none;
    }

    .features-grid,
    .benefits-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .feature-card-flip {
        height: 280px;
    }

    /* Tap to flip on mobile */
    .feature-card-flip:hover .flip-inner {
        transform: none;
    }
    .feature-card-flip.flipped .flip-inner {
        transform: rotateY(180deg);
    }

    .demo-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .demo-actions {
        justify-content: center;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.75rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }
}

/* Keep off-screen entrance animations within narrow viewports. */
@media (max-width: 1200px) {
    .anim.anim-left:not(.visible),
    .anim.anim-right:not(.visible) {
        transform: translateY(40px);
    }
}

/* Direct contact form feedback and spam trap. */
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.contact-form button:disabled { opacity: 0.65; cursor: wait; }
.form-status.is-error { color: #b42318; }

/* Shared original TourOp wordmark, also used on Zero Studio. */
.brand-logo{display:block;width:210px;height:auto;max-width:100%;transition:transform var(--transition)}
.logo:hover .brand-logo{transform:translateY(-1px)}
.footer-brand .brand-logo{filter:none;width:230px}
@media(max-width:600px){.brand-logo{width:165px}}
