/*
Theme Name: Tavelcom
Theme URI: https://tavelcom.it/
Author: Tavelcom
Description: Tema aziendale per supporto tecnico, programmazione e sviluppo di tecnologie informatiche.
Version: 1.0.0
Text Domain: tavelcom
*/

:root {
	--ink: #172321;
	--muted: #64716e;
	--paper: #f7f9f6;
	--white: #fff;
	--line: #dce5df;
	--electric-blue: #1687f5;
	--blue-deep: #064b83;
	--blue-soft: #dceeff;
	--orange: #f36f4a;
	--cyan: #9de2d1;
	--sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.site-header { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; width: min(1320px, calc(100% - 64px)); margin: auto; padding: 25px 0; }
.brand { display: inline-flex; gap: 10px; align-items: center; color: var(--ink); text-decoration: none; font-size: 21px; font-weight: 800; letter-spacing: 0; }
.brand-image { display: block; width: 220px; max-width: min(55vw, 220px); height: auto; object-fit: contain; }
.nav-links { display: flex; flex-wrap: nowrap; align-items: center; gap: 3px; padding: 5px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: 0 7px 22px #1723210c; }
.nav-links a { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 0 15px; border-radius: 5px; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 700; transition: background .18s, color .18s, transform .18s; }
.nav-links a:not(.nav-contact):hover { background: #e8f4f1; color: var(--blue-deep); }
.nav-links a:focus-visible { outline: 2px solid var(--electric-blue); outline-offset: 2px; }
.nav-links .nav-contact { min-height: 42px; padding: 0 17px; border-radius: 5px; background: var(--ink); color: var(--white); }
.nav-links .nav-contact:hover { transform: translateY(-1px); background: var(--blue-deep); color: var(--white); }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--ink); font-size: 24px; cursor: pointer; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, .92fr) minmax(480px, 1.08fr); align-items: center; width: min(1320px, calc(100% - 64px)); min-height: 640px; margin: 0 auto; overflow: hidden; }
.hero-copy { position: relative; z-index: 2; padding: 38px 0 82px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 23px; color: var(--blue-deep); font-size: 11px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; }
.eyebrow::before { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); content: ""; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { max-width: 650px; margin-bottom: 22px; font-size: clamp(52px, 6vw, 82px); line-height: .98; letter-spacing: -3.8px; font-weight: 760; }
.hero h1 span { color: var(--electric-blue); }
.hero-copy > p:not(.eyebrow) { max-width: 455px; margin-bottom: 29px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.actions { display: flex; align-items: center; gap: 22px; }
.hero .actions { justify-content: center; margin-top: 6px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 19px; border: 1px solid var(--ink); border-radius: 4px; background: var(--ink); color: var(--white); text-decoration: none; font-size: 13px; font-weight: 750; transition: background .2s, color .2s, transform .2s; }
.button:hover { transform: translateY(-2px); background: var(--electric-blue); color: var(--white); }
.button-help { display: grid; grid-template-columns: 42px minmax(0, 1fr) 22px; align-items: center; gap: 12px; width: min(390px, 100%); min-height: 68px; padding: 9px 16px; border-color: #1473bd; border-radius: 6px; background: #1473bd; color: var(--white); text-align: left; box-shadow: 0 10px 24px #1473bd3b; }
.button-help { animation: app-cta-pulse 2.2s ease-in-out infinite; }
.button-help:hover { border-color: #0c5794; background: #0c5794; color: var(--white); }
.button-help-icon { display: grid; width: 42px; aspect-ratio: 1; place-items: center; border-radius: 8px; background: #ffffff22; color: var(--white); font-size: 25px; animation: app-download-bob 1.4s ease-in-out infinite; }
.button-help-copy { display: flex; flex-direction: column; gap: 3px; }
.button-help-copy strong { font-size: 17px; }
.button-help-copy small { color: #eaf5ff; font-size: 12px; font-weight: 600; }
.button-help-arrow { justify-self: end; font-size: 18px; }
.text-link { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 4px; font-size: 13px; font-weight: 700; }
.hero-visual { position: relative; min-height: 540px; isolation: isolate; }
.visual-orbit { position: absolute; z-index: -2; top: 50%; left: 50%; width: 460px; height: 460px; border: 1px solid #dfe8df; border-radius: 50%; transform: translate(-50%, -50%); }
.visual-orbit::before, .visual-orbit::after { position: absolute; border: 1px solid #e6ece6; border-radius: 50%; content: ""; }
.visual-orbit::before { inset: 45px; }
.visual-orbit::after { inset: 95px; }
.orbit-dot { position: absolute; top: 78px; right: 51px; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 8px #f36f4a1f; }
.connection { position: absolute; z-index: -1; height: 1px; background: #99b4a1; transform-origin: left center; }
.connection-one { top: 53%; left: 27%; width: 50%; transform: rotate(-17deg); }
.connection-two { top: 51%; left: 39%; width: 42%; transform: rotate(17deg); }
.device { position: absolute; z-index: 1; display: flex; flex-direction: column; border: 5px solid #253531; background: #fff; box-shadow: 0 22px 55px #1723211c; }
.device-screen { position: relative; display: flex; flex: 1; flex-direction: column; overflow: hidden; padding: 13px; background: #f5f8f4; }
.phone { top: 154px; left: 4%; width: 130px; height: 255px; border-width: 5px; border-radius: 22px; animation: drift-phone 6s ease-in-out infinite; }
.phone::before { position: absolute; z-index: 2; top: 5px; left: 50%; width: 42px; height: 8px; border-radius: 0 0 8px 8px; background: #253531; content: ""; transform: translateX(-50%); }
.tablet { top: 202px; right: 3%; width: 235px; height: 176px; border-radius: 17px; animation: drift-tablet 7s ease-in-out infinite; }
.laptop { top: 65px; left: 31%; width: 270px; height: 183px; border-radius: 11px 11px 3px 3px; animation: drift-laptop 6.5s ease-in-out infinite; }
.laptop::after { position: absolute; right: -15px; bottom: -11px; left: -15px; height: 9px; border-radius: 2px 2px 8px 8px; background: #253531; content: ""; }
.device-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; color: #64716e; font-size: 7px; font-weight: 800; letter-spacing: .8px; }
.device-label strong { color: var(--blue-deep); font-size: 8px; }
.screen-title { margin: 0 0 9px; color: var(--ink); font-size: 11px; font-weight: 800; }
.screen-copy { margin: 0 0 13px; color: var(--muted); font-size: 7px; line-height: 1.5; }
.screen-app { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; color: var(--blue-deep); font-size: 7px; font-weight: 800; letter-spacing: .4px; }
.screen-app-icon { display: grid; width: 19px; height: 19px; flex: 0 0 19px; place-items: center; border-radius: 5px; background: var(--electric-blue); color: var(--white); font-size: 9px; font-weight: 850; }
.screen-update { display: flex; align-items: center; gap: 6px; margin-top: auto; padding: 7px; border-radius: 4px; background: var(--blue-soft); color: var(--blue-deep); font-size: 7px; font-weight: 750; }
.status-dot { flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: #67b578; }
.progress-track { height: 4px; margin-top: 7px; overflow: hidden; border-radius: 4px; background: #dce5df; }
.progress-fill { width: 100%; height: 100%; border-radius: inherit; background: var(--electric-blue); transform: scaleX(.24); transform-origin: left; transition: transform 1.8s cubic-bezier(.2,.8,.2,1); }
.is-updated .progress-fill { transform: scaleX(1); }
.sync-hub { position: absolute; z-index: 2; top: 47%; left: 49%; display: grid; width: 67px; height: 67px; place-items: center; border: 7px solid var(--paper); border-radius: 50%; background: var(--electric-blue); box-shadow: 0 4px 20px #1723211c; color: var(--white); font-size: 24px; transform: translate(-50%, -50%); }
.sync-hub.is-syncing { animation: pulse .7s ease-in-out infinite alternate; }
.sync-note { position: absolute; right: 1%; bottom: 76px; color: var(--muted); font-size: 10px; font-weight: 700; }
.sync-trigger { position: absolute; bottom: 31px; left: 50%; display: inline-flex; align-items: center; gap: 8px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); color: var(--ink); font: inherit; font-size: 11px; font-weight: 750; cursor: pointer; transform: translateX(-50%); transition: border-color .2s, background .2s; }
.sync-trigger:hover { border-color: var(--electric-blue); background: var(--blue-soft); }
.sync-trigger:disabled { cursor: default; opacity: .8; }
.services { padding: 83px max(32px, calc((100% - 1320px) / 2)) 90px; background: var(--white); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 35px; }
.section-head .eyebrow { margin-bottom: 13px; }
.section-head h2, .contact-copy h2 { max-width: 580px; margin-bottom: 0; font-size: clamp(34px, 4vw, 48px); line-height: 1.06; letter-spacing: -1.7px; }
.section-head > p { max-width: 340px; margin-bottom: 3px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.service { min-height: 230px; padding: 28px 30px 0 0; }
.service + .service { padding-left: 30px; border-left: 1px solid var(--line); }
.service:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
.service-number { display: block; margin-bottom: 39px; color: var(--blue-deep); font-size: 12px; font-weight: 800; }
.service h3 { margin-bottom: 10px; font-size: 20px; letter-spacing: -.4px; }
.service p { max-width: 310px; margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.contact-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 30px; padding: 70px max(32px, calc((100% - 1320px) / 2)); overflow: hidden; background: var(--electric-blue); }
.contact-content { position: relative; z-index: 1; }
.contact-copy .eyebrow { color: #07365f; }
.contact-copy h2 { max-width: 700px; }
.contact-copy h2 { color: var(--white); }
.contact-action { margin-top: 24px; }
.contact-action p { max-width: 285px; margin: 0 0 20px; color: #eef7ff; font-size: 14px; line-height: 1.6; }
.contact-action .button { border-color: var(--ink); background: var(--ink); }
.contact-visual { position: relative; min-height: 285px; opacity: .62; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.code-laptop { position: absolute; top: 31px; left: 2%; width: min(76%, 390px); }
.mac-screen { position: relative; padding: 0 0 9px; overflow: hidden; border: 5px solid #273735; border-radius: 11px 11px 4px 4px; background: #1d292a; box-shadow: 0 15px 32px #17232125; }
.mac-toolbar { display: flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; background: #e6ece7; }
.mac-toolbar > span { width: 6px; height: 6px; border-radius: 50%; background: #e87563; }
.mac-toolbar > span:nth-child(2) { background: #e4bb5a; }
.mac-toolbar > span:nth-child(3) { background: #78ba7a; }
.mac-toolbar b { margin: 0 auto; color: #71807a; font-size: 7px; font-weight: 600; }
.code-editor { display: flex; min-height: 132px; padding: 13px 10px; }
.code-sidebar { display: flex; width: 22px; flex-direction: column; gap: 10px; padding-top: 2px; border-right: 1px solid #3a4745; }
.code-sidebar i { width: 8px; height: 6px; border-radius: 2px; background: #70827a; }
.code-lines { padding-left: 9px; }
.code-lines p { margin: 0 0 8px; color: #d3ded7; font: 8px/1.1 Consolas, monospace; white-space: nowrap; }
.code-lines em { display: inline-block; width: 20px; color: #71817a; font-style: normal; }
.code-purple { color: #c6a5e8; }
.code-blue { color: #8bc7ec; }
.code-green { color: #a9d892; }
.code-yellow { color: #e8d28a; }
.build-status { display: flex; align-items: center; gap: 6px; padding: 0 11px; color: #c6d9cd; font-size: 7px; }
.build-status .status-dot { width: 5px; height: 5px; }
.build-status > span:last-child { margin-left: auto; color: #9de2d1; }
.mac-base { width: 108%; height: 9px; margin-left: -4%; border-radius: 2px 2px 8px 8px; background: linear-gradient(#bac7c0, #7d8c85); }
.code-flow { position: absolute; top: 47%; left: 72%; color: var(--white); font-size: 29px; font-weight: 400; }
.app-phone { position: absolute; top: 43px; right: 4%; width: 112px; height: 213px; padding: 5px; border: 4px solid #273735; border-radius: 20px; background: #fff; box-shadow: 0 15px 30px #17232124; }
.app-screen { position: relative; height: 100%; padding: 20px 8px 8px; overflow: hidden; border-radius: 12px; background: #f3f7f3; }
.app-notch { position: absolute; top: 0; left: 50%; width: 37px; height: 9px; border-radius: 0 0 8px 8px; background: #273735; transform: translateX(-50%); }
.app-brand { margin: 0 0 15px; color: var(--blue-deep); font-size: 13px; font-weight: 900; }
.app-brand span { color: var(--orange); }
.app-greeting { margin: 0 0 12px; color: var(--ink); font-size: 9px; font-weight: 800; }
.app-card { position: relative; display: flex; min-height: 72px; flex-direction: column; justify-content: center; gap: 6px; padding: 9px; border-radius: 7px; background: #aad7ff; color: var(--ink); }
.app-card span { font-size: 7px; }
.app-card b { max-width: 65px; font-size: 8px; }
.app-card i { position: absolute; right: 8px; bottom: 8px; font-size: 13px; font-style: normal; }
.app-tabs { display: flex; justify-content: space-around; margin-top: 16px; color: #6a7972; font-size: 11px; }
.tools-page { min-height: 62vh; width: min(1000px, calc(100% - 48px)); margin: auto; padding: 90px 0 110px; }
.tools-intro { max-width: 700px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.tools-intro .eyebrow { margin-bottom: 18px; }
.tools-intro h1 { margin-bottom: 14px; font-size: clamp(42px, 6vw, 64px); line-height: 1; letter-spacing: -2px; }
.tools-intro > p:last-child, .tools-content { color: var(--muted); font-size: 15px; line-height: 1.7; }
.tools-content { padding-top: 25px; }
.tools-content a { color: #1473bd; font-weight: 700; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(1320px, calc(100% - 64px)); margin: auto; padding: 25px 0; color: var(--muted); font-size: 11px; }
.footer-brand { color: var(--ink); font-weight: 800; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@keyframes drift-phone { 50% { transform: translateY(-9px) rotate(-1deg); } }
@keyframes drift-tablet { 50% { transform: translateY(8px) rotate(1deg); } }
@keyframes drift-laptop { 50% { transform: translateY(-7px); } }
@keyframes pulse { to { box-shadow: 0 0 0 10px #1687f555, 0 4px 20px #1723211c; } }
@keyframes app-cta-pulse { 0%, 100% { box-shadow: 0 10px 24px #1473bd3b; } 50% { box-shadow: 0 13px 32px #1473bd78; } }
@keyframes app-download-bob { 0%, 100% { transform: translateY(-1px); } 50% { transform: translateY(3px); } }
@media (max-width: 900px) {
	.hero { grid-template-columns: 1fr; min-height: auto; }
	.hero-copy { padding: 52px 0 10px; }
	.hero h1 { max-width: 700px; font-size: clamp(52px, 10vw, 76px); }
	.hero-visual { width: min(100%, 620px); min-height: 500px; margin: 0 auto; }
	.visual-orbit { width: min(440px, 88vw); height: min(440px, 88vw); }
	.services { padding-top: 66px; padding-bottom: 70px; }
}
@media (max-width: 640px) {
	.site-header, .hero, .site-footer { width: calc(100% - 40px); }
	.site-header { padding: 19px 0; }
	.menu-toggle { display: block; }
	.nav-links { position: absolute; top: calc(100% + 8px); right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 9px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: 0 12px 28px #17232113; }
	.nav-links.is-open { display: flex; flex-direction: column; }
	.nav-links a { padding: 13px 4px; }
	.nav-links .nav-contact { margin: 4px 0 8px; padding: 12px 17px; text-align: center; }
	.hero-copy { padding: 26px 0 0; }
	.eyebrow { margin-bottom: 12px; font-size: 10px; }
	.hero h1 { margin-bottom: 13px; font-size: clamp(40px, 11vw, 46px); line-height: .96; letter-spacing: -1.9px; }
	.hero-copy > p:not(.eyebrow) { max-width: 360px; margin-bottom: 14px; font-size: 14px; line-height: 1.45; }
	.actions { align-items: center; flex-direction: row; flex-wrap: wrap; gap: 12px; }
	.actions .button { min-height: 43px; padding-right: 15px; padding-left: 15px; }
	.actions .button-help { min-height: 64px; padding: 8px 13px; }
	.hero-visual { min-height: 300px; margin-top: 0; }
	.phone { top: 86px; left: 2%; width: 105px; height: 211px; transform: scale(.72); transform-origin: top left; animation: none; }
	.tablet { top: 117px; right: 1%; width: 185px; height: 144px; transform: scale(.72); transform-origin: top right; animation: none; }
	.laptop { top: 10px; left: 24%; width: 208px; height: 151px; transform: scale(.72); transform-origin: top left; animation: none; }
	.device-screen { padding: 10px; }
	.visual-orbit { width: min(300px, 88vw); height: min(300px, 88vw); }
	.visual-orbit::before { inset: 30px; }
	.visual-orbit::after { inset: 62px; }
	.sync-hub { top: 47%; left: 49%; width: 50px; height: 50px; font-size: 19px; }
	.sync-note { display: none; }
	.sync-trigger { bottom: 0; }
	.services { padding: 58px 20px 60px; }
	.section-head { align-items: flex-start; flex-direction: column; gap: 16px; }
	.section-head h2, .contact-copy h2 { font-size: 36px; }
	.service-grid { grid-template-columns: 1fr; }
	.service { min-height: auto; padding: 22px 0 24px; }
	.service + .service { padding: 22px 0 24px; border-top: 1px solid var(--line); border-left: 0; }
	.service-number { margin-bottom: 20px; }
	.contact-band { grid-template-columns: 1fr; gap: 23px; padding: 52px 20px; }
	.contact-action { justify-self: start; }
	.site-footer { align-items: flex-start; flex-direction: column; gap: 8px; padding: 20px 0; }
}
@media (max-width: 360px) {
	.hero h1 { font-size: 36px; }
	.hero-copy > p:not(.eyebrow) { font-size: 13px; }
	.hero-visual { min-height: 270px; }
	.phone { top: 77px; transform: scale(.62); }
	.tablet { top: 105px; transform: scale(.62); }
	.laptop { left: 24%; transform: scale(.62); }
	.sync-hub { width: 44px; height: 44px; font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.reveal { opacity: 1; transform: none; }
}